Skip to content

Commit 3089693

Browse files
committed
Adjust build script
1 parent c331612 commit 3089693

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"scripts": {
2424
"build": "npm run build:cjs && npm run build:esm",
25-
"build:cjs": "tsc --module commonjs",
25+
"build:cjs": "tsc --module commonjs --outDir dist",
2626
"build:esm": "tsc --module esnext --outDir dist/esm && mv dist/esm/binary_parser.js dist/esm/binary_parser.mjs",
2727
"fmt": "prettier --write \"{lib,example,test,benchmark}/**/*.{ts,js}\"",
2828
"check-fmt": "prettier --list-different \"{lib,example,test,benchmark}/**/*.{ts,js}\"",
@@ -43,7 +43,7 @@
4343
],
4444
"author": {
4545
"name": "Keichi Takahashi",
46-
"email": "keichi.t@me.com",
46+
"email": "hello@keichi.dev",
4747
"url": "https://keichi.dev/"
4848
},
4949
"license": "MIT",

tsconfig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
"declaration": true,
55
"declarationMap": true,
66
"sourceMap": true,
7-
"outDir": "dist",
87
"strict": true,
98
"noUnusedLocals": true,
109
"noUnusedParameters": true,
1110
"noImplicitReturns": true,
1211
"noFallthroughCasesInSwitch": true,
1312
"types": ["node", "mocha"],
1413
"esModuleInterop": true
15-
}
14+
},
15+
"files": [
16+
"lib/binary_parser.ts"
17+
]
1618
}

0 commit comments

Comments
 (0)