Skip to content

Commit 0d0d3cc

Browse files
committed
build: uses rimraf and copyfiles so that it also works on windows
1 parent b185d3a commit 0d0d3cc

File tree

2 files changed

+144
-1
lines changed

2 files changed

+144
-1
lines changed

src/package-lock.json

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"ngh": "angular-cli-ghpages"
99
},
1010
"scripts": {
11-
"build": "rm -rf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && cp ../README.md builders.json collection.json package.json angular-cli-ghpages dist && cp deploy/schema.json dist/deploy",
11+
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles ../README.md builders.json collection.json package.json angular-cli-ghpages dist && copyfiles deploy/schema.json dist/deploy",
1212
"test": "jest"
1313
},
1414
"schematics": "./collection.json",
@@ -52,8 +52,10 @@
5252
"@types/fs-extra": "^8.0.0",
5353
"@types/jest": "^24.0.16",
5454
"@types/node": "^12.6.9",
55+
"copyfiles": "^2.1.1",
5556
"jest": "^24.8.0",
5657
"json-schema-to-typescript": "^7.0.0",
58+
"rimraf": "^2.6.3",
5759
"ts-jest": "^24.0.2",
5860
"typescript": "^3.5.3"
5961
},

0 commit comments

Comments
 (0)