diff --git a/package.json b/package.json index 2846ed08..0f98405a 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 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", + "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",