Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<a href="https://www.npmjs.com/package/@coderrob/typescript-type-guards">
<img src="https://img.shields.io/npm/v/%40coderrob%2Ftypescript-type-guards?logo=npm&logoColor=white" alt="npm version" />
</a>
<a href="https://www.npmjs.com/package/@coderrob/typescript-type-guards">
<img src="https://img.shields.io/npm/dm/%40coderrob%2Ftypescript-type-guards?logo=npm&logoColor=white" alt="npm downloads" />
</a>
<a href="https://github.com/Coderrob/typescript-type-guards/actions/workflows/ci.yml">
<img src="https://img.shields.io/github/actions/workflow/status/Coderrob/typescript-type-guards/ci.yml?branch=main&label=ci" alt="CI status" />
</a>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down Expand Up @@ -96,5 +96,5 @@
"sideEffects": false,
"type": "commonjs",
"types": "dist/index.d.ts",
"version": "1.0.0"
"version": "1.0.1"
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repo appears to use Changesets for versioning (see CONTRIBUTING.md "Changesets" section), but this PR manually edits version. Consider adding a changeset and letting npm run release:version update package.json/CHANGELOG, or at least ensure the version bump is reflected consistently (e.g., package-lock.json still reports 1.0.0).

Suggested change
"version": "1.0.1"
"version": "1.0.0"

Copilot uses AI. Check for mistakes.
}
10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -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',
Comment on lines +6 to +9
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minify: true changes the published JS output compared to the previous inline tsup invocation (which did not enable minification). If minification is not intended, drop this option; if it is intended, please call it out explicitly in the PR description / release notes since it affects consumer debugging and bundle characteristics.

Copilot uses AI. Check for mistakes.
});