Skip to content

Commit 57f4832

Browse files
authored
ref(build): Add central build directory to packages without CDN bundles (Part 2) (#4868)
1 parent b1f4fbc commit 57f4832

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+86
-172
lines changed

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# The paths in this file are specified so that they align with the file structure in `./build` after this file is copied
2+
# into it by the prepack script `scripts/prepack.ts`.
3+
4+
*
5+
6+
# TODO remove bundles (which in the tarball are inside `build`) in v7
7+
!/build/**/*
8+
9+
!/dist/**/*
10+
!/esm/**/*
11+
!/types/**/*

.size-limit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ module.exports = [
3939
},
4040
{
4141
name: '@sentry/react - Webpack (gzipped + minified)',
42-
path: 'packages/react/esm/index.js',
42+
path: 'packages/react/build/esm/index.js',
4343
import: '{ init }',
4444
gzip: true,
4545
limit: '100 KB',
4646
},
4747
{
4848
name: '@sentry/nextjs Client - Webpack (gzipped + minified)',
49-
path: 'packages/nextjs/esm/index.client.js',
49+
path: 'packages/nextjs/build/esm/index.client.js',
5050
import: '{ init }',
5151
gzip: true,
5252
limit: '100 KB',

packages/browser/.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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": "ts-node ../../scripts/prepack.ts && npm pack ./build/npm",
61+
"build:npm": "ts-node ../../scripts/prepack.ts --bundles && 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/core/.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
3636
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
3737
"build:types:watch": "tsc -p tsconfig.types.json --watch",
38-
"build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build",
38+
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
3939
"circularDepCheck": "madge --circular src/index.ts",
4040
"clean": "rimraf dist esm build coverage",
4141
"fix": "run-s fix:eslint fix:prettier",

packages/gatsby/.npmignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Info: the paths in this file are specified so that they align with the file
2-
# structure in `./build` where this file is copied to. This is done by the
3-
# prepack script `sentry-javascript/scripts/prepack.ts`.
1+
# The paths in this file are specified so that they align with the file structure in `./build` after this file is copied
2+
# into it by the prepack script `scripts/prepack.ts`.
43

54
*
65

packages/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
4747
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
4848
"build:types:watch": "tsc -p tsconfig.types.json --watch",
49-
"build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build",
49+
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
5050
"circularDepCheck": "madge --circular src/index.ts",
5151
"clean": "rimraf dist esm build coverage",
5252
"fix": "run-s fix:eslint fix:prettier",

packages/hub/.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/hub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
3434
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
3535
"build:types:watch": "tsc -p tsconfig.types.json --watch",
36-
"build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build",
36+
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
3737
"circularDepCheck": "madge --circular src/index.ts",
3838
"clean": "rimraf dist esm coverage",
3939
"fix": "run-s fix:eslint fix:prettier",

0 commit comments

Comments
 (0)