Skip to content

Commit

Permalink
Fix nx release config
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Schürz committed Jan 19, 2025
1 parent 40c9388 commit e379a3a
Showing 1 changed file with 40 additions and 9 deletions.
49 changes: 40 additions & 9 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "master",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
Expand All @@ -12,7 +15,9 @@
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s"
],
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"]
"sharedGlobals": [
"{workspaceRoot}/.github/workflows/ci.yml"
]
},
"release": {
"projects": [
Expand All @@ -22,7 +27,13 @@
"packages/ruleset-osu",
"packages/ruleset-mania",
"packages/multiplayer"
]
],
"version": {
"generatorOptions": {
"packageRoot": "dist/packages/{projectName}",
"currentVersionResolver": "git-tag"
}
}
},
"plugins": [
{
Expand Down Expand Up @@ -50,20 +61,40 @@
}
},
"targetDefaults": {
"nx-release-publish": {
"options": {
"packageRoot": "dist/packages/{projectName}"
}
},
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"@nx/js:swc": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
},
"@nx/esbuild:esbuild": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["production", "^production"]
"dependsOn": [
"^build"
],
"inputs": [
"production",
"^production"
]
}
}
}

0 comments on commit e379a3a

Please sign in to comment.