Skip to content

Commit

Permalink
fix: fixed package.json config for output
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Aug 18, 2021
1 parent e77ee3f commit da93d25
Show file tree
Hide file tree
Showing 14 changed files with 147 additions and 84 deletions.
17 changes: 11 additions & 6 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "Simple, unopinionated, lightweight and extensible state management for Vue 3",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
4 changes: 3 additions & 1 deletion core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import type {
StoreOptions,
} from './types';

export { EVENTS } from './constants';
export {
EVENTS,
} from './constants';

export * from './types';

Expand Down
19 changes: 12 additions & 7 deletions extensions/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official action extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official history extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/lazy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official lazy extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/reset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official reset extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/snapshot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official snapshot extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official storage extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/trace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official trace extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions extensions/transaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official transaction extension for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions packages/task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "Harlem task package",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions plugins/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official Vue devtools plugin for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
19 changes: 12 additions & 7 deletions plugins/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@
"author": "Andrew Courtice <[email protected]>",
"description": "The official server-side rendering plugin for Harlem",
"homepage": "https://harlemjs.com",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"exports": "./dist/index.js",
"unpkg": "./dist/index.global.js",
"types": "./dist/index.d.ts",
"source": "./src/index.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"unpkg": "dist/iife/index.js",
"jsdelivr": "dist/iife/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/index.js"
}
},
"keywords": [
"vue",
"state",
Expand Down
1 change: 1 addition & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default {
clean: true,
dts: true,
sourcemap: true,
legacyOutput: true,
target: 'es2020',
format: [
'esm',
Expand Down

0 comments on commit da93d25

Please sign in to comment.