Skip to content

Commit a87cc04

Browse files
committed
chore(scripts): refactor workspace script syntax
1 parent 0dbb75e commit a87cc04

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
name: Set build environment variables
5858
run: node ./tools/cli/loadenv.cjs -gc=test
5959
- id: check-build
60-
name: Check build:all
60+
name: Check builds
6161
run: yarn prepack --tarball --env=test
6262
- id: env-post
6363
name: Post Set build environment variables

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
#
55
# - https://typicode.github.io/husky
66

7-
yarn test:all --lastCommit --no-cache
7+
yarn test --lastCommit --no-cache

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@
3030
"check:upgrades": "yarn upgrade-interactive",
3131
"fix:format": "prettier --write .",
3232
"fix:style": "yarn check:style --fix --cache",
33-
"test": "yarn workspace @flex-development/$0 test",
34-
"test:all": "bash tools/scripts/jest.sh",
35-
"build": "yarn workspace @flex-development/$0 build",
36-
"release": "yarn workspace @flex-development/$0 release"
33+
"test": "bash tools/scripts/jest.sh",
34+
"test:exceptions": "yarn workspace @flex-development/exceptions test",
35+
"build": "yarn workspaces foreach -iv --topological-dev run build",
36+
"build:exceptions": "yarn workspace @flex-development/exceptions build",
37+
"release:exceptions": "yarn workspace @flex-development/exceptions release"
3738
},
3839
"devDependencies": {
3940
"@babel/core": "7.15.8",

tools/cli/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const options: IGreaseOptions = {
154154
postchangelog: `yarn pack -o %s-%v.tgz ${(argv.d && '-n') || ''}`.trim(),
155155
postcommit: 'git pnv',
156156
postgreaser: 'yarn clean:build',
157-
prerelease: `yarn test ${$WNS}`
157+
prerelease: `yarn test:${$WNS}`
158158
},
159159
// `continuous-deployment` workflow will create new tag
160160
skip: { tag: true },

0 commit comments

Comments
 (0)