53e95233c3
Cleans up the dependencies used in the shared dev-infra package configuration. With the recent benchmarking utilities that have been added, a lot of peer dependencies have been added. We decided that we don't want to list every used dependencies as peer dependency as that could result in unnecessary churn/noise for consumers of the dev-infra package. Additionally, not all parts of the dev-infra package are necessarily used. Due to this, we want to apply the following rules for the package dependencies: 1. If a dependency is only used in a shipped Bazel macro/rule that can be optionally consumed, omit it from `package.json`. Bazel reports the missing dependency on its own, so we want to avoid adding it to the package json file. 2. Otherwise, if the dependency is large and commonly used (like buildifier), add it to the `peerDependencies`. If not, add it to the dependencies that are always brought in. We consider it as acceptable to bring in a few small dependencies that might not be used or not. Making all of those option would complicate the use of the dev-infra package. ds PR Close #37594
61 lines
1.5 KiB
JSON
61 lines
1.5 KiB
JSON
{
|
|
"name": "@angular/dev-infra-private",
|
|
"version": "0.0.0",
|
|
"description": "INTERNAL USE ONLY - Angular internal DevInfra tooling/scripts - INTERNAL USE ONLY",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"bin": {
|
|
"ng-dev": "./cli.js",
|
|
"ts-circular-deps": "./ts-circular-dependencies/index.js"
|
|
},
|
|
"dependencies": {
|
|
"@angular/benchpress": "0.2.0",
|
|
"@octokit/graphql": "<from-root>",
|
|
"brotli": "<from-root>",
|
|
"chalk": "<from-root>",
|
|
"cli-progress": "<from-root>",
|
|
"glob": "<from-root>",
|
|
"inquirer": "<from-root>",
|
|
"minimatch": "<from-root>",
|
|
"multimatch": "<from-root>",
|
|
"node-uuid": "<from-root>",
|
|
"semver": "<from-root>",
|
|
"shelljs": "<from-root>",
|
|
"tslib": "<from-root>",
|
|
"typed-graphqlify": "<from-root>",
|
|
"yaml": "<from-root>",
|
|
"yargs": "<from-root>"
|
|
},
|
|
"peerDependencies": {
|
|
"@bazel/buildifier": "<from-root>",
|
|
"clang-format": "<from-root>",
|
|
"protractor": "<from-root>",
|
|
"selenium-webdriver": "<from-root>",
|
|
"ts-node": "<from-root>",
|
|
"typescript": "<from-root>"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@bazel/buildifier": {
|
|
"optional": true
|
|
},
|
|
"clang-format": {
|
|
"optional": true
|
|
},
|
|
"protractor": {
|
|
"optional": true
|
|
},
|
|
"selenium-webdriver": {
|
|
"optional": true
|
|
},
|
|
"ts-node": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"bazelWorkspaces": {
|
|
"npm_angular_dev_infra_private": {
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"rootPath": "."
|
|
}
|
|
}
|
|
}
|