mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Use the cross-platform `copyfiles` package instead of using `cp` which fails on Windows machines when copying files in the `postbuild` script of the "schematics-for-libraries" example. PR Close #30966
28 lines
752 B
JSON
28 lines
752 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": "^7.2.0",
|
|
"@angular/core": "^7.2.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
|
|
}
|