chore(nx): replace yarn workspaces with nx run-many and pack command

This commit is contained in:
Jack Westbrook
2025-03-03 11:52:50 +01:00
parent ac18fe202d
commit 6c545e9aaa
2 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -11,6 +11,13 @@
"targetDefaults": {
"build": {
"outputs": ["{projectRoot}/dist"]
},
"pack": {
"executor": "nx:run-commands",
"options": {
"command": "yarn pack --out \"../../npm-artifacts/%s-%v.tgz\"",
"cwd": "{projectRoot}"
}
}
},
"release": {
@@ -19,7 +26,6 @@
"grafanaPackages": {
"projects": [
"@grafana/data",
"@grafana/e2e",
"@grafana/e2e-selectors",
"@grafana/flamegraph",
"@grafana/prometheus",
+2 -2
View File
@@ -35,8 +35,8 @@
"lint:fix": "yarn lint:ts --fix",
"packages:build": "nx run-many -t build --projects='tag:scope:package'",
"packages:clean": "rimraf ./npm-artifacts && nx run-many -t clean --projects='tag:scope:package' --maxParallel=100",
"packages:prepare": "nx release version --no-git-commit --no-git-tag --no-stage-changes --group fixed",
"packages:pack": "mkdir -p ./npm-artifacts && yarn workspaces foreach --no-private --include='@grafana/*' -A exec yarn pack --out \"../../npm-artifacts/%s-%v.tgz\"",
"packages:prepare": "nx release version --no-git-commit --no-git-tag --no-stage-changes --group grafanaPackages",
"packages:pack": "mkdir -p ./npm-artifacts && nx run-many -t pack --projects='tag:scope:package'",
"packages:typecheck": "nx run-many -t typecheck --projects='tag:scope:package'",
"prettier:check": "prettier --check --list-different=false --log-level=warn \"**/*.{ts,tsx,scss,md,mdx,json,js}\"",
"prettier:checkDocs": "prettier --check --list-different=false --log-level=warn \"docs/**/*.md\" \"*.md\" \"packages/**/*.{ts,tsx,scss,md,mdx,json}\"",