Skip to content

Commit 4f87b58

Browse files
authored
chore: update build script to use tsup configuration file and bump version to 1.0.1 (#16)
* chore: update build script to use tsup configuration file and bump version to 1.0.1 * chore: remove npm downloads badge from README.md
1 parent 069d235 commit 4f87b58

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
<a href="https://www.npmjs.com/package/@coderrob/typescript-type-guards">
99
<img src="https://img.shields.io/npm/v/%40coderrob%2Ftypescript-type-guards?logo=npm&logoColor=white" alt="npm version" />
1010
</a>
11-
<a href="https://www.npmjs.com/package/@coderrob/typescript-type-guards">
12-
<img src="https://img.shields.io/npm/dm/%40coderrob%2Ftypescript-type-guards?logo=npm&logoColor=white" alt="npm downloads" />
13-
</a>
1411
<a href="https://github.com/Coderrob/typescript-type-guards/actions/workflows/ci.yml">
1512
<img src="https://img.shields.io/github/actions/workflow/status/Coderrob/typescript-type-guards/ci.yml?branch=main&label=ci" alt="CI status" />
1613
</a>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"url": "git+https://github.com/Coderrob/typescript-type-guards.git"
6767
},
6868
"scripts": {
69-
"build": "tsup src/index.ts --format cjs,esm --dts --clean --target es2020",
69+
"build": "tsup --config tsup.config.ts",
7070
"changeset": "changeset",
7171
"check:publint": "publint run --strict .",
7272
"check:types:package": "attw --pack .",
@@ -96,5 +96,5 @@
9696
"sideEffects": false,
9797
"type": "commonjs",
9898
"types": "dist/index.d.ts",
99-
"version": "1.0.0"
99+
"version": "1.0.1"
100100
}

tsup.config.ts

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

0 commit comments

Comments
 (0)