This PR modifies the populate-local-registry-storage inputs to invalidate the cache when the native task is updated (which includes OS/architecture information). This change addresses MacOS failures we've been encountering in our nightly GitHub Actions runs. The issue stems from incorrect cache restoration when running multiple OS and Node.js version combinations, which explains why native modules were consistently missing in most MacOS tests. Here is the result: https://github.com/nrwl/nx/actions/runs/15562011534
102 lines
2.8 KiB
JSON
102 lines
2.8 KiB
JSON
{
|
|
"name": "@nx/nx-source",
|
|
"$schema": "node_modules/nx/schemas/project-schema.json",
|
|
"targets": {
|
|
"local-registry": {
|
|
"executor": "@nx/js:verdaccio",
|
|
"options": {
|
|
"port": 4873,
|
|
"config": ".verdaccio/config.yml",
|
|
"storage": "build/local-registry/storage",
|
|
"clear": false
|
|
}
|
|
},
|
|
"populate-local-registry-storage": {
|
|
"cache": true,
|
|
"inputs": [
|
|
{
|
|
"input": "production",
|
|
"projects": ["tag:npm:public"]
|
|
},
|
|
"{workspaceRoot}/scripts/local-registry",
|
|
"native"
|
|
],
|
|
"dependsOn": [
|
|
"local-registry",
|
|
{
|
|
"target": "build",
|
|
"projects": ["tag:npm:public"]
|
|
}
|
|
],
|
|
"command": "node ./scripts/local-registry/run-populate-storage.mjs",
|
|
"outputs": ["{workspaceRoot}/build/local-registry/storage"]
|
|
},
|
|
"nx-release": {
|
|
"dependsOn": [
|
|
{
|
|
"target": "build",
|
|
"projects": ["tag:npm:public"]
|
|
}
|
|
],
|
|
"command": "ts-node -P ./scripts/tsconfig.release.json ./scripts/nx-release.ts"
|
|
},
|
|
"documentation": {
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"commands": [
|
|
"ts-node -P scripts/tsconfig.scripts.json ./scripts/documentation/generators/main.ts",
|
|
"pnpm check-documentation-map"
|
|
],
|
|
"parallel": false
|
|
},
|
|
"cache": true,
|
|
"inputs": [
|
|
"{workspaceRoot}/packages/**",
|
|
"{workspaceRoot}/docs/**",
|
|
"{workspaceRoot}/scripts/documentation/**",
|
|
"!{workspaceRoot}/docs/external-generated",
|
|
"!{workspaceRoot}/docs/generated",
|
|
"!{workspaceRoot}/packages/**/*.spec.ts",
|
|
"!{workspaceRoot}/packages/**/project.json",
|
|
"!{workspaceRoot}/packages/**/tsconfig.json",
|
|
"!{workspaceRoot}/packages/**/tsconfig.lib.json",
|
|
"!{workspaceRoot}/packages/**/tsconfig.spec.json",
|
|
"!{workspaceRoot}/packages/**/jest.config.{ts,js}",
|
|
"!{workspaceRoot}/packages/**/.eslintrc.json"
|
|
],
|
|
"dependsOn": [
|
|
{
|
|
"target": "build",
|
|
"projects": ["devkit", "typedoc-theme"]
|
|
}
|
|
],
|
|
"outputs": [
|
|
"{workspaceRoot}/docs/external-generated",
|
|
"{workspaceRoot}/docs/generated"
|
|
]
|
|
},
|
|
"check-format:quick": {
|
|
"parallelism": false
|
|
},
|
|
"lint": {
|
|
"dependsOn": ["@nx/nx-source:lint-pnpm-lock"],
|
|
"cache": true,
|
|
"inputs": ["{projectRoot}/pnpm-lock.yaml"]
|
|
},
|
|
"lint-pnpm-lock": {
|
|
"cache": true,
|
|
"inputs": ["{projectRoot}/pnpm-lock.yaml"]
|
|
},
|
|
"prepush": {
|
|
"dependsOn": [
|
|
"nx:format-native",
|
|
"nx:lint-native",
|
|
"documentation",
|
|
"check-commit",
|
|
"check-format:quick",
|
|
"check-lock-files"
|
|
]
|
|
}
|
|
}
|
|
}
|