mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Updates the guide for writing `ng add` schematics to include the new authoring utilities. I've also removed the `NodePackageInstallTask` because it's redundant. PR Close #50667
28 lines
754 B
JSON
28 lines
754 B
JSON
// #docplaster
|
|
// #docregion collection
|
|
{
|
|
"name": "my-lib",
|
|
"version": "0.0.1",
|
|
// #enddocregion collection
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.schematics.json",
|
|
"postbuild": "copyfiles schematics/*/schema.json schematics/*/files/** schematics/collection.json ../../dist/my-lib/"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/common": "^16.1.0",
|
|
"@angular/core": "^16.1.0"
|
|
},
|
|
// #docregion collection
|
|
"schematics": "./schematics/collection.json",
|
|
// #enddocregion collection
|
|
// #docregion ng-add
|
|
"ng-add": {
|
|
"save": "devDependencies"
|
|
},
|
|
// #enddocregion ng-add
|
|
"devDependencies": {
|
|
"copyfiles": "file:../../node_modules/copyfiles",
|
|
"typescript": "file:../../node_modules/typescript"
|
|
}
|
|
// #docregion collection
|
|
}
|