@onivoro/isomorphic-common 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +11 -14
package/package.json CHANGED
@@ -1,30 +1,27 @@
1
1
  {
2
2
  "name": "@onivoro/isomorphic-common",
3
- "version": "0.3.0",
4
- "main": "dist/index.cjs.js",
5
- "module": "dist/index.esm.js",
3
+ "version": "0.3.2",
4
+ "main": "dist/cjs/index.js",
5
+ "module": "dist/esm/index.js",
6
+ "types": "dist/types/index.d.ts",
6
7
  "files": [
7
8
  "dist/*"
8
9
  ],
9
10
  "scripts": {
10
- "esb": "npx esbuild src/index.ts --bundle --platform=node --target=node16.20.2 > dist/index.cjs.js",
11
- "ts": "npx tsc --module es2022 --outDir esm/ && echo '{\"type\": \"module\"}' > dist/esm/package.json",
12
- "push": "npm publish --access public",
13
- "compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",
14
- "build:clean": "rm -rf ./build",
15
- "build": "npm run build:clean && npm run compile && npm run hack",
16
- "hack": "echo '{\"type\": \"module\"}' > dist/esm/package.json"
11
+ "build": "onx Build",
12
+ "push": "onx Publish"
17
13
  },
18
14
  "exports": {
19
15
  ".": {
20
- "types": "./dist/types/src/index.d.ts",
21
- "require": "./dist/cjs/src/index.js",
22
- "import": "./dist/esm/src/index.js",
16
+ "types": "./dist/types/index.d.ts",
17
+ "require": "./dist/cjs/index.js",
18
+ "import": "./dist/esm/index.js",
23
19
  "default": "./dist/esm/lib.js"
24
20
  }
25
21
  },
26
22
  "devDependencies": {
23
+ "@onivoro/cli": "^0.0.23",
27
24
  "@types/jest": "^29.5.12",
28
25
  "typescript": "^5.3.3"
29
26
  }
30
- }
27
+ }