Skip to content

Commit 29a8d8d

Browse files
update gitignore
1 parent 76848d8 commit 29a8d8d

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ dist
130130
.pnp.*
131131

132132
# Extra
133-
tsconfig.json
134-
tsup.config.ts
133+
tsconfig.json

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"tpl-parser": "./dist/cli.js"
1010
},
1111
"scripts": {
12-
"build": "tsup"
12+
"build": "tsup --config tsup.config.ts"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -43,4 +43,4 @@
4343
"python-struct": "^1.1.3",
4444
"tpl-parser": "file:"
4545
}
46-
}
46+
}

tsup.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "tsup";
2+
3+
export default defineConfig({
4+
entry: ["./src/index.ts", "./src/cli.ts"],
5+
format: ["cjs", "esm"],
6+
dts: true,
7+
sourcemap: true,
8+
clean: true,
9+
shims: true,
10+
skipNodeModulesBundle: true,
11+
});

0 commit comments

Comments
 (0)