Skip to content

Commit

Permalink
fix(misc): properly add extra dependencies to packages (#19334)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Sep 26, 2023
1 parent c229729 commit 5cc87bf
Show file tree
Hide file tree
Showing 26 changed files with 107 additions and 95 deletions.
8 changes: 4 additions & 4 deletions packages/angular/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@
"outputs": ["{workspaceRoot}/build/packages/angular"],
"dependsOn": ["build-ng", "build-base", "^build"],
"options": {
"commands": [
"node ./scripts/copy-readme.js angular",
"node ./scripts/add-dependency-to-build.js angular @nrwl/angular"
],
"command": "node ./scripts/copy-readme.js angular",
"parallel": false
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js angular @nrwl/angular"
},
"lint": {}
},
"implicitDependencies": []
Expand Down
8 changes: 4 additions & 4 deletions packages/cypress/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/cypress"],
"options": {
"commands": [
"node ./scripts/copy-readme.js cypress",
"node ./scripts/add-dependency-to-build.js cypress @nrwl/cypress"
]
"command": "node ./scripts/copy-readme.js cypress"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js cypress @nrwl/cypress"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/detox/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/detox"],
"options": {
"commands": [
"node ./scripts/copy-readme.js detox",
"node ./scripts/add-dependency-to-build.js detox @nrwl/detox"
]
"command": "node ./scripts/copy-readme.js detox"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js detox @nrwl/detox"
}
}
}
8 changes: 4 additions & 4 deletions packages/devkit/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/devkit"],
"options": {
"commands": [
"node ./scripts/copy-readme.js devkit",
"node ./scripts/add-dependency-to-build.js devkit @nrwl/devkit"
]
"command": "node ./scripts/copy-readme.js devkit"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js devkit @nrwl/devkit"
},
"lint": {}
}
}
3 changes: 3 additions & 0 deletions packages/esbuild/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
]
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js esbuild @nrwl/esbuild"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/eslint-plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/eslint-plugin"],
"options": {
"commands": [
"node ./scripts/copy-readme.js eslint-plugin",
"node ./scripts/add-dependency-to-build.js eslint-plugin @nrwl/eslint-plugin-nx"
]
"command": "node ./scripts/copy-readme.js eslint-plugin"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js eslint-plugin @nrwl/eslint-plugin-nx"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/expo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/expo"],
"options": {
"commands": [
"node ./scripts/copy-readme.js expo",
"node ./scripts/add-dependency-to-build.js expo @nrwl/expo"
]
"command": "node ./scripts/copy-readme.js expo"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js expo @nrwl/expo"
}
},
"tags": []
Expand Down
8 changes: 4 additions & 4 deletions packages/express/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/express"],
"options": {
"commands": [
"node ./scripts/copy-readme.js express",
"node ./scripts/add-dependency-to-build.js express @nrwl/express"
]
"command": "node ./scripts/copy-readme.js express"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js express @nrwl/express"
},
"lint": {}
},
"implicitDependencies": ["node"]
Expand Down
8 changes: 4 additions & 4 deletions packages/jest/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/jest"],
"options": {
"commands": [
"node ./scripts/copy-readme.js jest",
"node ./scripts/add-dependency-to-build.js jest @nrwl/jest"
]
"command": "node ./scripts/copy-readme.js jest"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js jest @nrwl/jest"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/js/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/js"],
"options": {
"commands": [
"node ./scripts/copy-readme.js js",
"node ./scripts/add-dependency-to-build.js js @nrwl/js"
]
"command": "node ./scripts/copy-readme.js js"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js js @nrwl/js"
}
},
"tags": []
Expand Down
8 changes: 4 additions & 4 deletions packages/linter/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/linter"],
"options": {
"commands": [
"node ./scripts/copy-readme.js linter",
"node ./scripts/add-dependency-to-build.js linter @nrwl/linter"
]
"command": "node ./scripts/copy-readme.js linter"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js linter @nrwl/linter"
},
"lint": {}
},
"implicitDependencies": ["eslint-plugin"]
Expand Down
8 changes: 4 additions & 4 deletions packages/nest/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/nest"],
"options": {
"commands": [
"node ./scripts/copy-readme.js nest",
"node ./scripts/add-dependency-to-build.js nest @nrwl/nest"
]
"command": "node ./scripts/copy-readme.js nest"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js nest @nrwl/nest"
},
"lint": {}
},
"implicitDependencies": ["node", "linter"]
Expand Down
8 changes: 4 additions & 4 deletions packages/next/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/next"],
"options": {
"commands": [
"node ./scripts/copy-readme.js next",
"node ./scripts/add-dependency-to-build.js next @nrwl/next"
]
"command": "node ./scripts/copy-readme.js next"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js next @nrwl/next"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/node/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/node"],
"options": {
"commands": [
"node ./scripts/copy-readme.js node",
"node ./scripts/add-dependency-to-build.js node @nrwl/node"
]
"command": "node ./scripts/copy-readme.js node"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js node @nrwl/node"
},
"lint": {}
}
}
6 changes: 3 additions & 3 deletions packages/nx/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@
},
{
"command": "node ./scripts/copy-readme.js nx"
},
{
"command": "node ./scripts/add-dependency-to-build.js nx @nrwl/tao"
}
],
"parallel": false
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js nx @nrwl/tao"
},
"lint": {},
"test": {},
"test-native": {}
Expand Down
8 changes: 4 additions & 4 deletions packages/plugin/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/plugin"],
"options": {
"commands": [
"node ./scripts/copy-readme.js plugin",
"node ./scripts/add-dependency-to-build.js plugin @nrwl/nx-plugin"
]
"command": "node ./scripts/copy-readme.js plugin"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js plugin @nrwl/nx-plugin"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/react-native/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/react-native"],
"options": {
"commands": [
"node ./scripts/copy-readme.js react-native",
"node ./scripts/add-dependency-to-build.js react-native @nrwl/react-native"
]
"command": "node ./scripts/copy-readme.js react-native"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js react-native @nrwl/react-native"
}
}
}
8 changes: 4 additions & 4 deletions packages/react/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/react"],
"options": {
"commands": [
"node ./scripts/copy-readme.js react",
"node ./scripts/add-dependency-to-build.js react @nrwl/react"
]
"command": "node ./scripts/copy-readme.js react"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js react @nrwl/react"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/rollup/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/rollup"],
"options": {
"commands": [
"node ./scripts/copy-readme.js rollup",
"node ./scripts/add-dependency-to-build.js rollup @nrwl/rollup"
]
"command": "node ./scripts/copy-readme.js rollup"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js rollup @nrwl/rollup"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/storybook/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/storybook"],
"options": {
"commands": [
"node ./scripts/copy-readme.js storybook",
"node ./scripts/add-dependency-to-build.js storybook @nrwl/storybook"
]
"command": "node ./scripts/copy-readme.js storybook"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js storybook @nrwl/storybook"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/vite/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/vite"],
"options": {
"commands": [
"node ./scripts/copy-readme.js vite",
"node ./scripts/add-dependency-to-build.js vite @nrwl/vite"
]
"command": "node ./scripts/copy-readme.js vite"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js vite @nrwl/vite"
},
"lint": {
"executor": "@nx/linter:eslint",
"options": {
Expand Down
8 changes: 4 additions & 4 deletions packages/web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/web"],
"options": {
"commands": [
"node ./scripts/copy-readme.js web",
"node ./scripts/add-dependency-to-build.js web @nrwl/web"
]
"command": "node ./scripts/copy-readme.js web"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js web @nrwl/web"
},
"lint": {}
}
}
8 changes: 4 additions & 4 deletions packages/webpack/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@
"executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/build/packages/webpack"],
"options": {
"commands": [
"node ./scripts/copy-readme.js webpack",
"node ./scripts/add-dependency-to-build.js webpack @nrwl/webpack"
]
"command": "node ./scripts/copy-readme.js webpack"
}
},
"add-extra-dependencies": {
"command": "node ./scripts/add-dependency-to-build.js webpack @nrwl/webpack"
},
"lint": {}
}
}
Loading

0 comments on commit 5cc87bf

Please sign in to comment.