Skip to content

Commit 072e915

Browse files
committed
ci: build i18n-utils before unit tests
The create package's tests spawn bin/run.js, which in dev mode loads src/index.ts via tsx and imports @modern-js/i18n-utils — whose dist is not present in the ut jobs (they only build build:required packages before running rstest). Add @modern-js/i18n-utils to build:required; verified by reproducing the CI failure locally (rm i18n-utils dist → same ERR_MODULE_NOT_FOUND → build:required → 6/6 pass).
1 parent 8663dfb commit 072e915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"prepare-build": "cross-env NX_DAEMON=false NX_REJECT_UNKNOWN_LOCAL_CACHE=0 nx run-many -t build -p @modern-js/* --exclude=@modern-js/main-doc,@modern-js/module-tools-docs --maxParallel=4",
2424
"prepare": "npm run prepare-build && husky install",
2525
"prepare-build-continue": "cross-env NX_DAEMON=false NX_REJECT_UNKNOWN_LOCAL_CACHE=0 nx run-many -t build -p @modern-js/* --exclude=@modern-js/main-doc,@modern-js/module-tools-docs --nxBail=false --maxParallel=4 || echo 'Build completed with some failures, continuing...'",
26-
"build:required": "cross-env NX_DAEMON=false nx run-many -t build -p @modern-js/builder @modern-js/bff-core @modern-js/utils",
26+
"build:required": "cross-env NX_DAEMON=false nx run-many -t build -p @modern-js/builder @modern-js/bff-core @modern-js/utils @modern-js/i18n-utils",
2727
"lint": "biome check",
2828
"change": "changeset add",
2929
"bump": "changeset version",

0 commit comments

Comments
 (0)