|
12 | 12 | "publishConfig": { |
13 | 13 | "access": "public" |
14 | 14 | }, |
15 | | - "main": "dist/index.js", |
16 | | - "module": "esm/index.js", |
17 | | - "types": "build/types/index.d.ts", |
| 15 | + "main": "build/npm/dist/index.js", |
| 16 | + "module": "build/npm/esm/index.js", |
| 17 | + "types": "build/npm/types/index.d.ts", |
18 | 18 | "dependencies": { |
19 | 19 | "@sentry/types": "6.19.3", |
20 | 20 | "@sentry/utils": "6.19.3", |
|
25 | 25 | "chai": "^4.1.2" |
26 | 26 | }, |
27 | 27 | "scripts": { |
28 | | - "build": "run-p build:cjs build:esm build:types build:bundle", |
| 28 | + "build": "run-p build:cjs build:esm build:types build:bundle && ts-node ../../scripts/postbuild.ts", |
29 | 29 | "build:bundle": "bash scripts/buildBundles.sh", |
30 | 30 | "build:cjs": "tsc -p tsconfig.cjs.json", |
31 | 31 | "build:dev": "run-p build:cjs build:esm build:types", |
|
38 | 38 | "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", |
39 | 39 | "build:esm:watch": "tsc -p tsconfig.esm.json --watch", |
40 | 40 | "build:types:watch": "tsc -p tsconfig.types.json --watch", |
41 | | - "build:npm": "npm pack", |
| 41 | + "build:npm": "npm pack ./build/npm", |
42 | 42 | "circularDepCheck": "madge --circular src/index.ts", |
43 | 43 | "clean": "rimraf dist esm build coverage .rpt2_cache", |
44 | 44 | "fix": "run-s fix:eslint fix:prettier", |
|
0 commit comments