From 75e117a386d3c3dc073ea05ac3d216e89f0016c3 Mon Sep 17 00:00:00 2001 From: Fine Archs Date: Tue, 5 Sep 2023 19:21:49 +0900 Subject: [PATCH 1/2] divide npm build into parts --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2846ed08..be7c24ca 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,11 @@ "peg": "peggy --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", "peg-debug": "peggy --trace --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", "peg-copy": "copyfiles -f src/parser/parser.js built/parser/", - "build": "npm run peg && tsc --outDir built/esm && tsc --module commonjs --outDir built/cjs && tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true", + "ts": "npm run ts-esm && npm run ts-cjs && npm run dts", + "ts-esm": "tsc --outDir built/esm", + "ts-cjs": "tsc --module commonjs --outDir built/cjs", + "ts-dts": "tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true", + "build": "npm run peg && npm run ts", "build-debug": "npm run peg-debug && tsc", "api": "npx api-extractor run --local --verbose", "api-prod": "npx api-extractor run --verbose", From f956e13a25d1681b9cefd976c215246a8aedd685 Mon Sep 17 00:00:00 2001 From: Fine Archs Date: Tue, 5 Sep 2023 19:34:59 +0900 Subject: [PATCH 2/2] correct omission --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be7c24ca..0f98405a 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "peg": "peggy --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", "peg-debug": "peggy --trace --format es --cache -o src/parser/parser.js --allowed-start-rules Preprocess,Main src/parser/parser.peggy && npm run peg-copy", "peg-copy": "copyfiles -f src/parser/parser.js built/parser/", - "ts": "npm run ts-esm && npm run ts-cjs && npm run dts", + "ts": "npm run ts-esm && npm run ts-cjs && npm run ts-dts", "ts-esm": "tsc --outDir built/esm", "ts-cjs": "tsc --module commonjs --outDir built/cjs", "ts-dts": "tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true",