File tree 9 files changed +13
-13
lines changed
9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
# Info: the paths in this file are specified so that they align with the file
2
2
# 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`.
4
4
5
5
*
6
6
Original file line number Diff line number Diff line change 44
44
"webpack" : " ^4.30.0"
45
45
},
46
46
"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" ,
48
48
"build:bundle" : " rollup --config" ,
49
49
"build:cjs" : " tsc -p tsconfig.cjs.json" ,
50
50
"build:dev" : " run-p build:cjs build:esm build:types" ,
58
58
"build:dev:watch" : " run-p build:cjs:watch build:esm:watch build:types:watch" ,
59
59
"build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
60
60
"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" ,
62
62
"circularDepCheck" : " madge --circular src/index.ts" ,
63
63
"clean" : " rimraf build coverage .rpt2_cache" ,
64
64
"fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 1
1
# Info: the paths in this file are specified so that they align with the file
2
2
# 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`.
4
4
5
5
*
6
6
Original file line number Diff line number Diff line change 25
25
"chai" : " ^4.1.2"
26
26
},
27
27
"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" ,
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 ./build/npm" ,
41
+ "build:npm" : " ts-node ../../scripts/prepack.ts && 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" ,
Original file line number Diff line number Diff line change 1
1
# Info: the paths in this file are specified so that they align with the file
2
2
# 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`.
4
4
5
5
*
6
6
Original file line number Diff line number Diff line change 29
29
"jsdom" : " ^16.2.2"
30
30
},
31
31
"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" ,
33
33
"build:bundle" : " rollup --config" ,
34
34
"build:cjs" : " tsc -p tsconfig.cjs.json" ,
35
35
"build:dev" : " run-p build:cjs build:esm build:types" ,
43
43
"build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
44
44
"build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
45
45
"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" ,
47
47
"clean" : " rimraf dist esm build coverage" ,
48
48
"circularDepCheck" : " madge --circular src/index.ts" ,
49
49
"fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 1
1
# Info: the paths in this file are specified so that they align with the file
2
2
# 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`.
4
4
5
5
*
6
6
Original file line number Diff line number Diff line change 29
29
"puppeteer" : " ^5.5.0"
30
30
},
31
31
"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" ,
33
33
"build:bundle" : " rollup --config" ,
34
34
"build:cjs" : " tsc -p tsconfig.cjs.json" ,
35
35
"build:dev" : " run-p build:cjs build:esm build:types" ,
43
43
"build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
44
44
"build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
45
45
"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" ,
47
47
"circularDepCheck" : " madge --circular src/index.ts" ,
48
48
"clean" : " rimraf dist esm build coverage *.js.map *.d.ts" ,
49
49
"fix" : " run-s fix:eslint fix:prettier" ,
Original file line number Diff line number Diff line change 81
81
process . exit ( 1 ) ;
82
82
}
83
83
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