File tree Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11# Info: the paths in this file are specified so that they align with the file
22# structure in `./build` where this file is copied to. This is done by the
3- # postbuild script `sentry-javascript/scripts/postbuild .ts`.
3+ # prepack script `sentry-javascript/scripts/prepack .ts`.
44
55*
66
Original file line number Diff line number Diff line change 4444 "webpack" : " ^4.30.0"
4545 },
4646 "scripts" : {
47- "build" : " run-p build:cjs build:esm build:bundle build:types && ts-node ../../scripts/postbuild.ts " ,
47+ "build" : " run-p build:cjs build:esm build:bundle build:types" ,
4848 "build:bundle" : " rollup --config" ,
4949 "build:cjs" : " tsc -p tsconfig.cjs.json" ,
5050 "build:dev" : " run-p build:cjs build:esm build:types" ,
5858 "build:dev:watch" : " run-p build:cjs:watch build:esm:watch build:types:watch" ,
5959 "build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
6060 "build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
61- "build:npm" : " npm pack ./build/npm" ,
61+ "build:npm" : " ts-node ../../scripts/prepack.ts && npm pack ./build/npm" ,
6262 "circularDepCheck" : " madge --circular src/index.ts" ,
6363 "clean" : " rimraf build coverage .rpt2_cache" ,
6464 "fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 11# Info: the paths in this file are specified so that they align with the file
22# structure in `./build` where this file is copied to. This is done by the
3- # postbuild script `sentry-javascript/scripts/postbuild .ts`.
3+ # prepack script `sentry-javascript/scripts/prepack .ts`.
44
55*
66
Original file line number Diff line number Diff line change 2525 "chai" : " ^4.1.2"
2626 },
2727 "scripts" : {
28- "build" : " run-p build:cjs build:esm build:types build:bundle && ts-node ../../scripts/postbuild.ts " ,
28+ "build" : " run-p build:cjs build:esm build:types build:bundle" ,
2929 "build:bundle" : " bash scripts/buildBundles.sh" ,
3030 "build:cjs" : " tsc -p tsconfig.cjs.json" ,
3131 "build:dev" : " run-p build:cjs build:esm build:types" ,
3838 "build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
3939 "build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
4040 "build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
41- "build:npm" : " npm pack ./build/npm" ,
41+ "build:npm" : " ts-node ../../scripts/prepack.ts && npm pack ./build/npm" ,
4242 "circularDepCheck" : " madge --circular src/index.ts" ,
4343 "clean" : " rimraf dist esm build coverage .rpt2_cache" ,
4444 "fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 11# Info: the paths in this file are specified so that they align with the file
22# structure in `./build` where this file is copied to. This is done by the
3- # postbuild script `sentry-javascript/scripts/postbuild .ts`.
3+ # prepack script `sentry-javascript/scripts/prepack .ts`.
44
55*
66
Original file line number Diff line number Diff line change 2929 "jsdom" : " ^16.2.2"
3030 },
3131 "scripts" : {
32- "build" : " run-p build:cjs build:esm build:types build:bundle && ts-node ../../scripts/postbuild.ts " ,
32+ "build" : " run-p build:cjs build:esm build:types build:bundle" ,
3333 "build:bundle" : " rollup --config" ,
3434 "build:cjs" : " tsc -p tsconfig.cjs.json" ,
3535 "build:dev" : " run-p build:cjs build:esm build:types" ,
4343 "build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
4444 "build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
4545 "build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
46- "build:npm" : " npm pack ./build/npm" ,
46+ "build:npm" : " ts-node ../../scripts/prepack.ts && npm pack ./build/npm" ,
4747 "clean" : " rimraf dist esm build coverage" ,
4848 "circularDepCheck" : " madge --circular src/index.ts" ,
4949 "fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 11# Info: the paths in this file are specified so that they align with the file
22# structure in `./build` where this file is copied to. This is done by the
3- # postbuild script `sentry-javascript/scripts/postbuild .ts`.
3+ # prepack script `sentry-javascript/scripts/prepack .ts`.
44
55*
66
Original file line number Diff line number Diff line change 2929 "puppeteer" : " ^5.5.0"
3030 },
3131 "scripts" : {
32- "build" : " run-p build:cjs build:esm build:bundle build:types && ts-node ../../scripts/postbuild.ts -skipBundleCopy " ,
32+ "build" : " run-p build:cjs build:esm build:bundle build:types" ,
3333 "build:bundle" : " rollup --config" ,
3434 "build:cjs" : " tsc -p tsconfig.cjs.json" ,
3535 "build:dev" : " run-p build:cjs build:esm build:types" ,
4343 "build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
4444 "build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
4545 "build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
46- "build:npm" : " npm pack ./build/npm" ,
46+ "build:npm" : " ts-node ../../scripts/prepack.ts -skipBundleCopy && npm pack ./build/npm" ,
4747 "circularDepCheck" : " madge --circular src/index.ts" ,
4848 "clean" : " rimraf dist esm build coverage *.js.map *.d.ts" ,
4949 "fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 8181 process . exit ( 1 ) ;
8282}
8383
84- console . log ( `\nSuccessfully finished postbuild commands for ${ pkgJson . name } ` ) ;
84+ console . log ( `\nSuccessfully finished prepack commands for ${ pkgJson . name } \n ` ) ;
You can’t perform that action at this time.
0 commit comments