Skip to content

Commit 96f7f3b

Browse files
satoshai-devclaude
andauthored
chore: clean up redundant package.json fields and scripts (#25)
* chore: clean up redundant package.json fields and scripts Remove redundant `main`, `module`, `types` top-level fields that are already covered by the `exports` field. Remove duplicate `test:unit` script that was identical to `test`. Add explicit `dts: false` to the CLI tsup entry for clarity. Closes #14 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: add changeset Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b2d9b90 commit 96f7f3b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.changeset/clean-package-json.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@satoshai/abi-cli": patch
3+
---
4+
5+
Clean up redundant package.json fields, remove duplicate test:unit script, add explicit dts: false to CLI tsup entry

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: pnpm build
3838

3939
- name: Test
40-
run: pnpm test:unit
40+
run: pnpm test
4141

4242
- name: Changeset check
4343
run: npx changeset status --since=origin/main

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"bin": {
1212
"abi-cli": "./dist/cli.js"
1313
},
14-
"main": "./dist/index.cjs",
15-
"module": "./dist/index.js",
16-
"types": "./dist/index.d.ts",
1714
"exports": {
1815
".": {
1916
"import": {
@@ -33,7 +30,6 @@
3330
"build": "tsup",
3431
"dev": "tsup --watch",
3532
"test": "vitest run",
36-
"test:unit": "vitest run",
3733
"test:watch": "vitest",
3834
"typecheck": "tsc --noEmit",
3935
"lint": "eslint src",

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export default defineConfig([
1616
entry: ['src/cli.ts'],
1717
format: ['esm'],
1818
define: { __VERSION__: JSON.stringify(pkg.version) },
19+
dts: false,
1920
banner: { js: '#!/usr/bin/env node' },
2021
sourcemap: true,
2122
splitting: false,

0 commit comments

Comments
 (0)