diff --git a/README.md b/README.md index 65f12ac..7a5f036 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,6 @@ npm version - - npm downloads - CI status diff --git a/package.json b/package.json index 38cc6b4..36d512c 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "url": "git+https://github.com/Coderrob/typescript-type-guards.git" }, "scripts": { - "build": "tsup src/index.ts --format cjs,esm --dts --clean --target es2020", + "build": "tsup --config tsup.config.ts", "changeset": "changeset", "check:publint": "publint run --strict .", "check:types:package": "attw --pack .", @@ -96,5 +96,5 @@ "sideEffects": false, "type": "commonjs", "types": "dist/index.d.ts", - "version": "1.0.0" + "version": "1.0.1" } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..81b354f --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + clean: true, + dts: true, + entry: ['src/index.ts'], + format: ['cjs', 'esm'], + minify: true, + target: 'es2020', +});