Skip to content

Commit 148ee3f

Browse files
committed
change postbuild.ts to prepack.ts
add postbuild->prepack changes to `@sentry/browser` add postbuild->prepack changes to `@sentry/integrations` add postbuild->prepack changes to `@sentry/tracing` add postbuild->prepack changes to `@sentry/wasm`
1 parent ffbbe23 commit 148ee3f

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

packages/browser/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

packages/browser/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
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",
@@ -58,7 +58,7 @@
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",

packages/integrations/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

packages/integrations/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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",
@@ -38,7 +38,7 @@
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",

packages/tracing/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

packages/tracing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
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",
@@ -43,7 +43,7 @@
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",

packages/wasm/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

packages/wasm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
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",
@@ -43,7 +43,7 @@
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",

scripts/postbuild.ts renamed to scripts/prepack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@ try {
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`);

0 commit comments

Comments
 (0)