chore(nx): replace yarn workspaces with nx run-many and pack command
This commit is contained in:
@@ -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
@@ -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}\"",
|
||||
|
||||
Reference in New Issue
Block a user