Skip to content

Commit b5bfee3

Browse files
cmdcolinclaude
andcommitted
Standardize package.json, tsconfig, and build pipeline
- Simplified exports and removed redundant types declarations - Standardized build scripts to use pnpm consistently - Added main field for backwards compatibility - Removed redundant module field - Standardized tsconfig with strict TypeScript and es2022 target - Fixed type errors and infrastructure issues where applicable Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 878acfe commit b5bfee3

5 files changed

Lines changed: 490 additions & 554 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,11 @@ ix file, and find that you are looking for MyGene0001
6363
## See also
6464

6565
https://github.com/GMOD/trix-js for the client side library to do the searches
66+
67+
## Publishing
68+
69+
[Trusted publishing](https://docs.npmjs.com/about-trusted-publishing) via GitHub Actions.
70+
71+
```bash
72+
npm version patch # or minor/major
73+
```

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
"url": "https://github.com/GMOD/ixixx-js.git"
99
},
1010
"type": "module",
11-
"types": "./dist/index.d.ts",
11+
"main": "dist/index.js",
1212
"exports": {
13-
".": {
14-
"import": "./esm/index.js",
15-
"require": "./dist/index.js"
16-
}
13+
"import": "./esm/index.js",
14+
"require": "./dist/index.js"
1715
},
1816
"author": {
1917
"name": "Colin Diesh",
@@ -29,17 +27,17 @@
2927
"ixixxjs": "./dist/bin.js"
3028
},
3129
"scripts": {
30+
"test": "vitest",
31+
"clean": "rimraf dist esm",
3232
"format": "prettier --write .",
3333
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
34-
"clean": "rimraf dist esm",
35-
"prebuild": "yarn clean",
34+
"prebuild": "pnpm clean",
3635
"build:esm": "tsc --outDir esm",
3736
"build:es5": "tsc --module commonjs --moduleResolution bundler --outDir dist",
38-
"build": "yarn build:esm && yarn build:es5",
3937
"postbuild:es5": "echo '{\"type\": \"commonjs\"}' > dist/package.json",
40-
"test": "vitest",
41-
"preversion": "yarn lint && yarn test --run && yarn build",
42-
"postversion": "git push --follow-tags"
38+
"preversion": "pnpm lint && pnpm test --run && pnpm build",
39+
"postversion": "git push --follow-tags",
40+
"build": "pnpm build:esm && pnpm build:es5"
4341
},
4442
"dependencies": {
4543
"@jbrowse/quick-lru": "^7.3.5",
@@ -50,19 +48,22 @@
5048
"devDependencies": {
5149
"@eslint/js": "^10.0.1",
5250
"@types/command-exists": "^1.2.3",
53-
"@types/node": "^25.5.0",
51+
"@types/node": "^25.6.0",
5452
"@types/split2": "^4.2.3",
5553
"@types/tmp": "^0.2.6",
56-
"eslint": "^9.39.4",
54+
"eslint": "^10.2.1",
5755
"eslint-plugin-import": "^2.32.0",
5856
"eslint-plugin-unicorn": "^64.0.0",
59-
"prettier": "^3.8.1",
57+
"prettier": "^3.8.3",
6058
"rimraf": "^6.1.3",
61-
"typescript": "^6.0.2",
62-
"typescript-eslint": "^8.57.2",
63-
"vitest": "^4.1.2"
59+
"typescript": "^6.0.3",
60+
"typescript-eslint": "^8.59.0",
61+
"vitest": "^4.1.5"
6462
},
6563
"publishConfig": {
6664
"access": "public"
67-
}
65+
},
66+
"keywords": [
67+
"bioinformatics"
68+
]
6869
}

0 commit comments

Comments
 (0)