fix(tools): improve curriculum build, but with correct caching (#66323)

This commit is contained in:
Oliver Eyton-Williams
2026-03-10 09:32:50 +01:00
committed by GitHub
parent ecceedbbb6
commit fcdf03fe33
2 changed files with 5 additions and 1 deletions

View File

@@ -27,7 +27,7 @@
"author": "freeCodeCamp <team@freecodecamp.org>",
"scripts": {
"audit-challenges": "pnpm turbo setup && tsx ./src/challenge-auditor/index.ts",
"build": "tsc && tsx ./src/generate/build-curriculum",
"build": "node ./dist/generate/build-curriculum",
"type-check": "tsc --noEmit",
"create-empty-steps": "tsx --tsconfig ../tools/challenge-helper-scripts/tsconfig.json ../tools/challenge-helper-scripts/create-empty-steps",
"create-next-challenge": "tsx --tsconfig ../tools/challenge-helper-scripts/tsconfig.json ../tools/challenge-helper-scripts/create-next-challenge",
@@ -46,6 +46,7 @@
"reorder-tasks": "tsx --tsconfig ../tools/challenge-helper-scripts/tsconfig.json ../tools/challenge-helper-scripts/reorder-tasks",
"update-challenge-order": "tsx --tsconfig ../tools/challenge-helper-scripts/tsconfig.json ../tools/challenge-helper-scripts/update-challenge-order",
"update-step-titles": "tsx --tsconfig ../tools/challenge-helper-scripts/tsconfig.json ../tools/challenge-helper-scripts/update-step-titles",
"setup": "tsc",
"test": "NODE_OPTIONS='--max-old-space-size=7168' pnpm test-gen && vitest run",
"test:watch": "pnpm test-gen && vitest",
"test-gen": "tsx ./src/test/utils/generate-block-tests.ts",

View File

@@ -6,6 +6,9 @@
"outputs": ["dist/**", "generated/**"],
"env": ["FCC_*", "SHOW_UPCOMING_CHANGES", "CURRICULUM_LOCALE"]
},
"setup": {
"outputs": ["dist/**"]
},
"test": {
"passThroughEnv": ["VITEST_POOL_ID", "PUPPETEER_WS_ENDPOINT"],
"env": ["FCC_*", "CURRICULUM_LOCALE", "SHOW_UPCOMING_CHANGES"]