Skip to content

Commit f8d295d

Browse files
committed
ref(build): rename createTarball to build:npm
1 parent 0530087 commit f8d295d

File tree

22 files changed

+24
-28
lines changed

22 files changed

+24
-28
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ jobs:
298298
path: ${{ env.CACHED_BUILD_PATHS }}
299299
key: ${{ env.BUILD_CACHE_KEY }}
300300
- name: Pack
301-
run: yarn createTarball:changed
301+
run: yarn build:npm:changed
302302
- name: Archive artifacts
303303
uses: actions/upload-artifact@v2
304304
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
"build:watch": "lerna run --parallel build:watch",
1313
"build:dev:watch": "lerna run --parallel build:dev:watch",
1414
"build:types:watch": "ts-node scripts/build-types-watch.ts",
15+
"build:npm:changed": "lerna run build:npm --since",
1516
"circularDepCheck": "lerna run --parallel circularDepCheck",
1617
"clean": "lerna run --parallel clean && lerna clean --yes",
1718
"codecov": "codecov",
1819
"fix": "lerna run --parallel fix",
1920
"link:yarn": "lerna run --stream --concurrency 1 link:yarn",
2021
"lint": "lerna run --parallel lint",
2122
"lint:eslint": "lerna run --parallel lint:eslint",
22-
"createTarball:changed": "lerna run createTarball --since",
2323
"prepublishOnly": "lerna run --stream --concurrency 1 prepublishOnly",
2424
"postpublish": "make publish-docs && lerna run --stream --concurrency 1 postpublish",
2525
"test": "lerna run --ignore @sentry-internal/browser-integration-tests --stream --concurrency 1 --sort test"

packages/angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
4646
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
4747
"build:types:watch": "tsc -p tsconfig.types.json --watch",
48+
"build:npm": "npm pack",
4849
"circularDepCheck": "madge --circular src/index.ts",
4950
"clean": "rimraf dist esm build coverage",
5051
"fix": "run-s fix:eslint fix:prettier",
@@ -53,8 +54,7 @@
5354
"link:yarn": "yarn link",
5455
"lint": "run-s lint:prettier lint:eslint",
5556
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
56-
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
57-
"createTarball": "npm pack"
57+
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\""
5858
},
5959
"volta": {
6060
"extends": "../../package.json"

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +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",
6162
"circularDepCheck": "madge --circular src/index.ts",
6263
"clean": "rimraf build coverage .rpt2_cache",
6364
"fix": "run-s fix:eslint fix:prettier",
@@ -67,7 +68,6 @@
6768
"lint": "run-s lint:prettier lint:eslint",
6869
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
6970
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
70-
"createTarball": "npm pack ./build",
7171
"size:check": "run-p size:check:es5 size:check:es6",
7272
"size:check:es5": "cat build/bundles/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES5: \",$1,\"kB\";}'",
7373
"size:check:es6": "cat build/bundles/bundle.es6.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print \"ES6: \",$1,\"kB\";}'",

packages/core/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"build:dev:watch": "run-s build:watch",
3535
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
3636
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
37-
"build:types:watch": "tsc -p tsconfig.types.json --watch",
37+
"build:npm": "npm pack",
3838
"circularDepCheck": "madge --circular src/index.ts",
3939
"clean": "rimraf dist esm coverage",
4040
"fix": "run-s fix:eslint fix:prettier",
@@ -44,7 +44,6 @@
4444
"lint": "run-s lint:prettier lint:eslint",
4545
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
4646
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
47-
"createTarball": "npm pack",
4847
"test": "jest",
4948
"test:watch": "jest --watch",
5049
"version": "node ../../scripts/versionbump.js src/version.ts"

packages/ember/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
},
1919
"scripts": {
2020
"build": "ember build --environment=production",
21+
"build:npm": "run-s prepack && npm pack && run-s postpack",
2122
"link:yarn": "yarn link",
2223
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
2324
"lint:hbs": "ember-template-lint .",
2425
"lint:js": "eslint . --cache --cache-location '../../eslintcache/'",
25-
"createTarball": "run-s prepack && npm pack && run-s postpack",
2626
"prepack": "ember ts:precompile",
2727
"postpack": "ember ts:clean",
2828
"start": "ember serve",

packages/eslint-config-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"link:yarn": "yarn link",
4040
"lint": "prettier --check \"**/*.js\"",
4141
"fix": "prettier --write \"**/*.js\"",
42-
"createTarball": "npm pack",
42+
"build:npm": "npm pack",
4343
"circularDepCheck": "madge --circular src/index.js"
4444
},
4545
"volta": {

packages/eslint-plugin-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
3434
"lint:prettier": "prettier --check \"{src,test}/**/*.js\"",
3535
"test": "mocha test --recursive",
36-
"createTarball": "npm pack",
36+
"build:npm": "npm pack",
3737
"circularDepCheck": "madge --circular src/index.js"
3838
},
3939
"volta": {

packages/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
5353
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
5454
"build:types:watch": "tsc -p tsconfig.types.json --watch",
55+
"build:npm": "npm pack",
5556
"circularDepCheck": "madge --circular src/index.ts",
5657
"clean": "rimraf dist esm build coverage",
5758
"fix": "run-s fix:eslint fix:prettier",
@@ -61,7 +62,6 @@
6162
"lint": "run-s lint:prettier lint:eslint",
6263
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
6364
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
64-
"createTarball": "npm pack",
6565
"test": "jest",
6666
"test:watch": "jest --watch"
6767
},

packages/hub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"lint": "run-s lint:prettier lint:eslint",
4343
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
4444
"lint:prettier": "prettier --check \"{src,test}/**/*.ts\"",
45-
"createTarball": "npm pack",
45+
"build:npm": "npm pack",
4646
"test": "jest",
4747
"test:watch": "jest --watch"
4848
},

0 commit comments

Comments
 (0)