Skip to content

Commit

Permalink
build: Ensure every package has build:dev & build:dev:watch (#6838)
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Jan 18, 2023
1 parent 8b3a576 commit 53776fc
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 32 deletions.
7 changes: 4 additions & 3 deletions packages/angular/package.json
Expand Up @@ -43,8 +43,9 @@
"scripts": {
"build": "yarn build:transpile",
"build:transpile": "ng build --prod",
"build:dev": "run-s build",
"build:watch": "run-p build:transpile:watch",
"build:dev": "yarn build",
"build:watch": "yarn build:transpile:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "ng build --prod --watch",
"build:tarball": "npm pack ./build",
"circularDepCheck": "madge --circular src/index.ts",
Expand All @@ -55,7 +56,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
"test": "run-s test:unit",
"test": "yarn test:unit",
"test:unit": "jest",
"test:unit:watch": "jest --watch"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/browser/package.json
Expand Up @@ -45,10 +45,12 @@
},
"scripts": {
"build": "run-p build:transpile build:bundle build:types",
"build:dev": "yarn build",
"build:bundle": "rollup --config rollup.bundle.config.js",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:bundle:watch build:types:watch",
"build:dev:watch": "yarn build:watch",
"build:bundle:watch": "rollup --config rollup.bundle.config.js --watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Expand Up @@ -22,11 +22,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
2 changes: 1 addition & 1 deletion packages/ember/package.json
Expand Up @@ -17,7 +17,7 @@
"test": "tests"
},
"scripts": {
"build": "ember build --environment=production",
"build:uncached": "ember build --environment=production",
"build:tarball": "ember ts:precompile && npm pack && ember ts:clean",
"clean": "yarn rimraf sentry-ember-*.tgz",
"lint": "run-p lint:js lint:hbs lint:ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby/package.json
Expand Up @@ -36,13 +36,13 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:plugin": "tsc -p tsconfig.plugin.json",
"build:transpile": "run-p build:rollup build:plugin",
"build:rollup": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
4 changes: 2 additions & 2 deletions packages/hub/package.json
Expand Up @@ -23,11 +23,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/package.json
Expand Up @@ -31,7 +31,7 @@
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
Expand Down
6 changes: 3 additions & 3 deletions packages/nextjs/package.json
Expand Up @@ -47,11 +47,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "ts-node scripts/buildRollup.ts",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "nodemon --ext ts --watch src scripts/buildRollup.ts",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand All @@ -63,7 +63,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
"test": "run-s test:unit",
"test": "yarn test:unit",
"test:all": "run-s test:unit test:integration test:build",
"test:build": "yarn ts-node test/buildProcess/runTest.ts",
"test:unit": "jest",
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/test/integration/package.json
Expand Up @@ -6,7 +6,7 @@
"build": "next build",
"predebug": "source ../integration_test_utils.sh && link_monorepo_packages '../../..' && yarn build",
"start": "next start",
"pretest": "run-s build",
"pretest": "yarn build",
"test": "playwright test"
},
"dependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/node/package.json
Expand Up @@ -34,11 +34,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
6 changes: 3 additions & 3 deletions packages/opentelemetry-node/package.json
Expand Up @@ -37,11 +37,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand All @@ -53,7 +53,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
"test": "run-s test:jest",
"test": "yarn test:jest",
"test:jest": "jest",
"test:watch": "jest --watch"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Expand Up @@ -52,11 +52,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
6 changes: 3 additions & 3 deletions packages/remix/package.json
Expand Up @@ -45,11 +45,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand All @@ -61,7 +61,7 @@
"lint": "run-s lint:prettier lint:eslint",
"lint:eslint": "eslint . --cache --cache-location '../../eslintcache/' --format stylish",
"lint:prettier": "prettier --check \"{src,test,scripts}/**/*.ts\"",
"test": "run-s test:unit",
"test": "yarn test:unit",
"test:integration": "run-s test:integration:clean test:integration:prepare test:integration:client test:integration:server",
"test:integration:ci": "run-s test:integration:clean test:integration:prepare test:integration:client:ci test:integration:server",
"test:integration:prepare": "(cd test/integration && yarn)",
Expand Down
2 changes: 1 addition & 1 deletion packages/serverless/package.json
Expand Up @@ -44,7 +44,7 @@
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts --bundles && npm pack ./build/npm",
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte/package.json
Expand Up @@ -32,11 +32,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Expand Up @@ -17,11 +17,11 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "rollup -c rollup.npm.config.js",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Expand Up @@ -26,12 +26,12 @@
},
"scripts": {
"build": "run-p build:transpile build:types",
"build:dev": "run-s build",
"build:dev": "yarn build",
"build:transpile": "yarn ts-node scripts/buildRollup.ts",
"build:transpile:uncached": "yarn ts-node scripts/buildRollup.ts",
"build:types": "tsc -p tsconfig.types.json",
"build:watch": "run-p build:transpile:watch build:types:watch",
"build:dev:watch": "run-s build:watch",
"build:dev:watch": "yarn build:watch",
"build:transpile:watch": "rollup -c rollup.npm.config.js --watch",
"build:types:watch": "tsc -p tsconfig.types.json --watch",
"build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build",
Expand Down

0 comments on commit 53776fc

Please sign in to comment.