|
15 | 15 | "types", |
16 | 16 | "types-ts3.8" |
17 | 17 | ], |
18 | | - "main": "build/cjs/index.js", |
19 | | - "module": "build/esm/index.js", |
20 | | - "types": "build/types/index.d.ts", |
| 18 | + "main": "build/npm/cjs/index.js", |
| 19 | + "module": "build/npm/esm/index.js", |
| 20 | + "types": "build/npm/types/index.d.ts", |
21 | 21 | "typesVersions": { |
22 | 22 | "<4.9": { |
23 | | - "build/types/index.d.ts": [ |
24 | | - "build/types-ts3.8/index.d.ts" |
| 23 | + "build/npm/types/index.d.ts": [ |
| 24 | + "build/npm/types-ts3.8/index.d.ts" |
25 | 25 | ] |
26 | 26 | } |
27 | 27 | }, |
|
33 | 33 | "@sentry/utils": "7.100.0" |
34 | 34 | }, |
35 | 35 | "scripts": { |
36 | | - "build": "run-p build:transpile build:types", |
| 36 | + "build": "run-p build:transpile build:types build:bundle", |
| 37 | + "build:bundle": "run-p build:bundle:es5 build:bundle:es6", |
| 38 | + "build:bundle:es5": "JS_VERSION=es5 rollup -c rollup.bundle.config.mjs", |
| 39 | + "build:bundle:es6": "JS_VERSION=es6 rollup -c rollup.bundle.config.mjs", |
37 | 40 | "build:dev": "yarn build", |
38 | 41 | "build:transpile": "rollup -c rollup.npm.config.mjs", |
39 | 42 | "build:types": "run-s build:types:core build:types:downlevel", |
40 | 43 | "build:types:core": "tsc -p tsconfig.types.json", |
41 | | - "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", |
| 44 | + "build:types:downlevel": "yarn downlevel-dts build/npm/types build/npm/types-ts3.8 --to ts3.8", |
42 | 45 | "build:watch": "run-p build:transpile:watch build:types:watch", |
43 | 46 | "build:dev:watch": "yarn build:watch", |
44 | 47 | "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch", |
45 | 48 | "build:types:watch": "tsc -p tsconfig.types.json --watch", |
46 | | - "build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build", |
| 49 | + "build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm", |
47 | 50 | "circularDepCheck": "madge --circular src/index.ts", |
48 | 51 | "clean": "rimraf build coverage sentry-core-*.tgz", |
49 | 52 | "fix": "eslint . --format stylish --fix", |
50 | 53 | "lint": "eslint . --format stylish", |
51 | 54 | "test": "jest", |
52 | 55 | "test:watch": "jest --watch", |
53 | 56 | "version": "node ../../scripts/versionbump.js src/version.ts", |
54 | | - "yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push --sig" |
| 57 | + "yalc:publish": "ts-node ../../scripts/prepack.ts --bundles && yalc publish build/npm --push --sig" |
55 | 58 | }, |
56 | 59 | "volta": { |
57 | 60 | "extends": "../../package.json" |
|
0 commit comments