mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
`ng_package` rule has an implicitly optional depedency on terser a48573efe8/packages/bazel/src/ng_package/ng_package.bzl (L36)
When using this rule without terser being available we get the below error;
```
ERROR: /home/circleci/ng/modules/express-engine/BUILD.bazel:22:1: every rule of type ng_package implicitly depends upon the target '@npm//terser/bin:terser', but this target could not be found because of: no such package '@npm//terser/bin': BUILD file not found in directory 'terser/bin' of external repository @npm. Add a BUILD file to a directory to mark it as a package.
ERROR: Analysis of target '//modules/express-engine:npm_package' failed; build aborted: no such package '@npm//terser/bin': BUILD file not found in directory 'terser/bin' of external repository @npm. Add a BUILD file to a directory to mark it as a package.
```
PR Close #33891
60 lines
1.5 KiB
JSON
60 lines
1.5 KiB
JSON
{
|
|
"name": "@angular/bazel",
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"description": "Angular - bazel build rules",
|
|
"author": "angular",
|
|
"license": "MIT",
|
|
"bin": {
|
|
"api-extractor": "./src/api-extractor/index.js",
|
|
"ngc-wrapped": "./src/ngc-wrapped/index.js",
|
|
"packager": "./src/ng_package/packager.js",
|
|
"xi18n": "./src/ngc-wrapped/extract_i18n.js",
|
|
"modify_tsconfig": "./src/modify_tsconfig.js"
|
|
},
|
|
"typings": "./src/ngc-wrapped/index.d.ts",
|
|
"bazelBin": {
|
|
"ngc-wrapped": {
|
|
"additionalAttributes": {
|
|
"configuration_env_vars": "[\"compile\"]"
|
|
}
|
|
}
|
|
},
|
|
"bazelWorkspaces": {
|
|
"npm_angular_bazel": {
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"rootPath": "."
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@microsoft/api-extractor": "^7.3.9",
|
|
"shelljs": "0.8.2",
|
|
"tsickle": "^0.37.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/compiler-cli": "0.0.0-PLACEHOLDER",
|
|
"@bazel/typescript": "0.*",
|
|
"terser": "^4.3.1",
|
|
"typescript": ">=3.6 <3.7",
|
|
"rollup": ">=1.20.0",
|
|
"rollup-plugin-commonjs": ">=9.0.0",
|
|
"rollup-plugin-node-resolve": ">=4.2.0",
|
|
"rollup-plugin-sourcemaps": ">=0.4.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"terser": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/angular/angular.git"
|
|
},
|
|
"builders": "./src/builders/builders.json",
|
|
"schematics": "./src/schematics/collection.json",
|
|
"ng-update": {
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
|
},
|
|
"publishConfig":{
|
|
"registry":"https://wombat-dressing-room.appspot.com"
|
|
}
|
|
}
|