Skip to content

Commit

Permalink
chore: fix cannot require version module
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed May 23, 2022
1 parent 2de054b commit 8ee3a1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fast-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ jobs:
steps.cache-yarn-cache.outputs.cache-hit != 'true' ||
steps.cache-node-modules.outputs.cache-hit != 'true'
- name: jest
run: echo $CHUNKS | jq '.[${{ matrix.chunk }}] | .[] | @text' | xargs yarn jest
run: echo $CHUNKS | jq '.[${{ matrix.chunk }}] | .[] | @text' | xargs yarn run version && yarn jest
env:
CHUNKS: ${{ needs.setup.outputs['test-chunks'] }}
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"scripts": {
"bootstrap": "node ./scripts/bootstrap.js",
"build": "node ./scripts/gen_version.js && npm run build-lib && webpack && node ./scripts/gen_less_entry.js",
"build": "npm run version && npm run build-lib && webpack && node ./scripts/gen_less_entry.js",
"build-lib": "cross-env BUILD_TYPE=lib father-build && cross-env BUILD_TYPE=es father-build",
"changelog": "node ./scripts/changelogs.js",
"check-deps": "node ./scripts/checkDeps.js",
Expand All @@ -18,16 +18,16 @@
"prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\" --loglevel warn",
"release": "npm run test && node ./scripts/release.js",
"site": "node ./scripts/preDeploy && cross-env SITE_DEPLOY='TRUE' dumi build",
"start": "node ./scripts/gen_version.js && dumi dev",
"start": "npm run version && dumi dev",
"sync:tnpm": "node -e 'require(\"./scripts/syncTNPM\")()'",
"test": "node ./scripts/gen_version.js && jest",
"test:coverage": "node ./scripts/gen_version.js && jest --coverage",
"test:update": "node ./scripts/gen_version.js && jest --updateSnapshot",
"test": "npm run version && jest",
"test:coverage": "npm run version && jest --coverage",
"test:update": "pnpm run version && jest --updateSnapshot",
"tsc": "tsc --noEmit",
"tsc:duplicate": "tsc -p ./tests/tsconfig.duplicate.json",
"update:deps": "yarn upgrade-interactive --latest",
"webpack": "webpack",
"version":"node ./scripts/gen_version.js"
"webpack": "npm run version && webpack",
"version": "node ./scripts/gen_version.js"
},
"browserslist": [
"last 2 versions",
Expand Down

0 comments on commit 8ee3a1d

Please sign in to comment.