Alan Agius d7f7826363 build: publish ts-api-guardian rule in the npm package (#29977)
With this change downstream users will no longer need to build ts-api-guardian from source as now the bazel rule is available in the npm package.

This can be used by installing ts-api-guardian as a devDependency and changing the load syntax from:
```
load("@angular//tools/ts-api-guardian:index.bzl", "ts_api_guardian_test")
```

to:
```
load("@npm_ts_api_guardian//:index.bzl", "ts_api_guardian_test")
```

**Note**: downstream users should also clean their `WORKSPACE` and remove the dependencies of angular workspace.

PR Close #29977
2019-04-19 10:59:23 -07:00

55 lines
1.4 KiB
JSON

{
"name": "ts-api-guardian",
"version": "0.4.1",
"description": "Guards the API of TypeScript libraries!",
"main": "lib/main.js",
"typings": "lib/main.d.ts",
"bazelWorkspaces": {
"npm_ts_api_guardian": {
"version": "0.4.1",
"rootPath": "."
}
},
"bin": {
"ts-api-guardian": "./bin/ts-api-guardian"
},
"directories": {
"test": "test"
},
"peerDependencies": {
"typescript": "~3.4.0"
},
"dependencies": {
"chalk": "^2.3.1",
"diff": "^3.5.0",
"minimist": "^1.2.0"
},
"devDependencies": {
"@types/chai": "^4.1.2",
"@types/diff": "^3.5.1",
"@types/jasmine": "^2.8.8",
"@types/minimist": "^1.2.0",
"@types/node": "^10.9.4",
"chai": "^4.1.2",
"jasmine": "^3.1.0",
"source-map-support": "^0.5.9",
"typescript": "~3.4.2"
},
"repository": {},
"keywords": [
"typescript"
],
"contributors": [
"Alan Agius <alan.agius4@gmail.com> (https://github.com/alan-agius4/)",
"Alex Eagle <alexeagle@google.com> (https://angular.io/)",
"Martin Probst <martinprobst@google.com> (https://angular.io/)",
"Victor Savkin <vsavkin@google.com> (https://victorsavkin.com)",
"Igor Minar <iminar@google.com> (https://angular.io/)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/angular/angular/issues"
},
"homepage": "https://github.com/angular/angular/tools/ts-api-guardian"
}