diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b93b34709ccf..5908a2c65667 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -298,7 +298,7 @@ jobs: path: ${{ env.CACHED_BUILD_PATHS }} key: ${{ env.BUILD_CACHE_KEY }} - name: Pack - run: yarn pack:changed + run: yarn build:npm - name: Archive artifacts uses: actions/upload-artifact@v2 with: diff --git a/package.json b/package.json index a333974ca7d0..0cb310507efa 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "build:watch": "lerna run --parallel build:watch", "build:dev:watch": "lerna run --parallel build:dev:watch", "build:types:watch": "ts-node scripts/build-types-watch.ts", + "build:npm": "lerna run --parallel build:npm", "circularDepCheck": "lerna run --parallel circularDepCheck", "clean": "lerna run --parallel clean && lerna clean --yes", "codecov": "codecov", @@ -19,7 +20,6 @@ "link:yarn": "lerna run --stream --concurrency 1 link:yarn", "lint": "lerna run --parallel lint", "lint:eslint": "lerna run --parallel lint:eslint", - "pack:changed": "lerna run pack --since", "prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly", "postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish", "test": "lerna run --ignore @sentry-internal/browser-integration-tests --stream --concurrency 1 --sort test" diff --git a/packages/angular/package.json b/packages/angular/package.json index 1c9b6a806322..07337f7b4e89 100644 --- a/packages/angular/package.json +++ b/packages/angular/package.json @@ -45,6 +45,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build coverage", "fix": "run-s fix:eslint fix:prettier", @@ -53,8 +54,7 @@ "link:yarn": "yarn link", "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", - "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack" + "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"" }, "volta": { "extends": "../../package.json" diff --git a/packages/browser/package.json b/packages/browser/package.json index d8d16b4c87f0..45709509d1a8 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -58,6 +58,7 @@ "build:dev:watch": "run-p build:cjs:watch build:esm:watch build:types:watch", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack ./build", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build coverage .rpt2_cache", "fix": "run-s fix:eslint fix:prettier", @@ -67,7 +68,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack ./build", "size:check": "run-p size:check:es5 size:check:es6", "size:check:es5": "cat build/bundles/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'", "size:check:es6": "cat build/bundles/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'", diff --git a/packages/core/package.json b/packages/core/package.json index 1f2bff527a33..b5f868906686 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -34,7 +34,7 @@ "build:dev:watch": "run-s build:watch", "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm coverage", "fix": "run-s fix:eslint fix:prettier", @@ -44,7 +44,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch", "version": "node ../../scripts/versionbump.js src/version.ts" diff --git a/packages/ember/package.json b/packages/ember/package.json index 170ee1cb3952..8b53589c693f 100644 --- a/packages/ember/package.json +++ b/packages/ember/package.json @@ -18,13 +18,11 @@ }, "scripts": { "build": "ember build --environment=production", + "build:npm": "ember ts:precompile && npm pack && ember ts:clean", "link:yarn": "yarn link", "lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*", "lint:hbs": "ember-template-lint .", "lint:js": "eslint . --cache --cache-location '../../eslintcache/'", - "pack": "npm pack", - "prepack": "ember ts:precompile", - "postpack": "ember ts:clean", "start": "ember serve", "test": "ember try:each", "test:all": "node ./scripts/run-CI-tests.js" diff --git a/packages/eslint-config-sdk/package.json b/packages/eslint-config-sdk/package.json index f6d079032474..e40f0eb4cad0 100644 --- a/packages/eslint-config-sdk/package.json +++ b/packages/eslint-config-sdk/package.json @@ -39,7 +39,7 @@ "link:yarn": "yarn link", "lint": "prettier --check \"**/*.js\"", "fix": "prettier --write \"**/*.js\"", - "pack": "npm pack", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.js" }, "volta": { diff --git a/packages/eslint-plugin-sdk/package.json b/packages/eslint-plugin-sdk/package.json index a15755fa1ca3..ffd305ddd688 100644 --- a/packages/eslint-plugin-sdk/package.json +++ b/packages/eslint-plugin-sdk/package.json @@ -33,7 +33,7 @@ "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.js\"", "test": "mocha test --recursive", - "pack": "npm pack", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.js" }, "volta": { diff --git a/packages/gatsby/package.json b/packages/gatsby/package.json index 08a5f6a9f3d7..9ee76158aa75 100644 --- a/packages/gatsby/package.json +++ b/packages/gatsby/package.json @@ -52,6 +52,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build coverage", "fix": "run-s fix:eslint fix:prettier", @@ -61,7 +62,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/hub/package.json b/packages/hub/package.json index 6fb1bd17482e..5896357d7bbd 100644 --- a/packages/hub/package.json +++ b/packages/hub/package.json @@ -42,7 +42,7 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", + "build:npm": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/integrations/package.json b/packages/integrations/package.json index 7b7b7dd094b5..a04b2d06d567 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -38,6 +38,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build coverage .rpt2_cache", "fix": "run-s fix:eslint fix:prettier", @@ -47,7 +48,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/minimal/package.json b/packages/minimal/package.json index 9407c6a811f3..b6ffddc01590 100644 --- a/packages/minimal/package.json +++ b/packages/minimal/package.json @@ -42,7 +42,7 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", + "build:npm": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 2c1b8795ceb0..d6c60e7e1df7 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -54,7 +54,7 @@ "build:dev:watch": "run-s build:watch", "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.client.ts && madge --circular --exclude 'config/types\\.ts' src/index.server.ts # see https://github.com/pahen/madge/issues/306", "clean": "rimraf dist esm coverage *.js *.js.map *.d.ts", "fix": "run-s fix:eslint fix:prettier", @@ -64,7 +64,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "run-s test:unit", "test:all": "run-s test:unit test:integration", "test:unit": "jest", diff --git a/packages/node/package.json b/packages/node/package.json index a929c9d908b9..b7fc110664bb 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -46,6 +46,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm coverage", "fix": "run-s fix:eslint fix:prettier", @@ -55,7 +56,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "run-s test:jest test:express test:webpack test:release-health", "test:express": "node test/manual/express-scope-separation/start.js", "test:jest": "jest", diff --git a/packages/react/package.json b/packages/react/package.json index 2f3158afe4b0..cb35fae8949b 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -61,7 +61,7 @@ "build:dev:watch": "run-s build:watch", "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build coverage", "fix": "run-s fix:eslint fix:prettier", @@ -71,7 +71,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/serverless/package.json b/packages/serverless/package.json index 251473fc78ab..885079f63641 100644 --- a/packages/serverless/package.json +++ b/packages/serverless/package.json @@ -51,7 +51,7 @@ "build:dev:watch": "run-s build:watch", "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", - "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build dist-awslambda-layer coverage", "fix": "run-s fix:eslint fix:prettier", @@ -61,7 +61,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/tracing/package.json b/packages/tracing/package.json index b0074e0932da..7f18bfafbc8e 100644 --- a/packages/tracing/package.json +++ b/packages/tracing/package.json @@ -43,6 +43,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "clean": "rimraf dist esm build coverage", "circularDepCheck": "madge --circular src/index.ts", "fix": "run-s fix:eslint fix:prettier", @@ -52,7 +53,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/types/package.json b/packages/types/package.json index 4d385952ced4..913db1701b93 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -28,14 +28,14 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "link:yarn": "yarn link", "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", "fix": "run-s fix:eslint fix:prettier", "fix:eslint": "eslint . --format stylish --fix", - "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"", - "pack": "npm pack" + "fix:prettier": "prettier --write \"{src,test}/**/*.ts\"" }, "volta": { "extends": "../../package.json" diff --git a/packages/typescript/package.json b/packages/typescript/package.json index 292559df80de..8b0e7a74aa4f 100644 --- a/packages/typescript/package.json +++ b/packages/typescript/package.json @@ -20,7 +20,7 @@ }, "scripts": { "link:yarn": "yarn link", - "pack": "npm pack" + "build:npm": "npm pack" }, "volta": { "extends": "../../package.json" diff --git a/packages/utils/package.json b/packages/utils/package.json index 1c4f370ad52d..d45ed8f3daab 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -36,6 +36,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm coverage *.js *.js.map *.d.ts", "fix": "run-s fix:eslint fix:prettier", @@ -45,7 +46,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch", "test:package": "node test/types/index.js" diff --git a/packages/vue/package.json b/packages/vue/package.json index a6d407467a17..6dc5069dc8f2 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -45,6 +45,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm build coverage", "fix": "run-s fix:eslint fix:prettier", @@ -54,7 +55,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "jest", "test:watch": "jest --watch" }, diff --git a/packages/wasm/package.json b/packages/wasm/package.json index 5b198ab52fc7..a3c93346a7c9 100644 --- a/packages/wasm/package.json +++ b/packages/wasm/package.json @@ -42,6 +42,7 @@ "build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", "build:esm:watch": "tsc -p tsconfig.esm.json --watch", "build:types:watch": "tsc -p tsconfig.types.json --watch", + "build:npm": "npm pack", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf dist esm coverage *.js.map *.d.ts", "fix": "run-s fix:eslint fix:prettier", @@ -51,7 +52,6 @@ "lint": "run-s lint:prettier lint:eslint", "lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish", "lint:prettier": "prettier --check \"{src,test}/**/*.ts\"", - "pack": "npm pack", "test": "node test/scripts/ensure-browser-bundle.js && cross-env PORT=1337 jest", "test:watch": "jest --watch" },