chore: fix incremental builds (#9849)

This commit is contained in:
Nikolay Vitkov 2023-03-14 16:10:28 +01:00 committed by GitHub
parent 0ead82e29e
commit 219d248c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,6 @@
"version": "0.1.0", "version": "0.1.0",
"description": "Puppeteer Angular schematics", "description": "Puppeteer Angular schematics",
"scripts": { "scripts": {
"build:tsc": "wireit",
"build": "wireit", "build": "wireit",
"clean": "tsc -b --clean && rm -rf lib && rm -rf test/build", "clean": "tsc -b --clean && rm -rf lib && rm -rf test/build",
"dev:test": "npm run test --watch", "dev:test": "npm run test --watch",
@ -13,32 +12,17 @@
}, },
"wireit": { "wireit": {
"build": { "build": {
"command": "node tools/copySchemaFiles.js", "command": "tsc -b && node tools/copySchemaFiles.js",
"files": [
"src/**/files/**",
"src/**/*.json"
],
"output": [
"lib/**/files/**",
"lib/**/*.json"
],
"dependencies": [
"build:tsc"
]
},
"build:tsc": {
"command": "tsc -b",
"clean": "if-file-deleted", "clean": "if-file-deleted",
"files": [ "files": [
"**/tsconfig.*.json", "tsconfig.json",
"**/tsconfig.json", "tsconfig.spec.json",
"src/**/*.ts", "src/**",
"!src/**/files/**" "test/src/**"
], ],
"output": [ "output": [
"lib/**/*.{ts,js}", "lib/**",
"lib/**/*.{ts,js}.map", "test/build/**"
"!lib/**/files/**"
] ]
}, },
"test": { "test": {