Skip to content

Commit d1cb559

Browse files
committed
chore(lint): adds publint
1 parent 1a55817 commit d1cb559

File tree

2 files changed

+95
-50
lines changed

2 files changed

+95
-50
lines changed

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626
"types": "./dist/index.d.ts",
2727
"exports": {
2828
".": {
29+
"import.types": "./dist/index.d.ts",
30+
"require.types": "./dist/index.d.cts",
2931
"require": "./dist/index.cjs",
30-
"import": "./dist/index.js",
31-
"types": "./dist/index.d.ts"
32+
"import": "./dist/index.js"
3233
}
3334
},
3435
"files": [
@@ -38,10 +39,11 @@
3839
],
3940
"scripts": {
4041
"prepare": "husky",
41-
"build": "tsup",
42+
"build": "tsup && publint",
4243
"watch": "npm run build -- --watch lib",
4344
"lint": "eslint lib",
4445
"lint:fix": "eslint lib --fix",
46+
"lint:package": "publint",
4547
"test:unit": "vitest --run --coverage",
4648
"test:watch": "vitest",
4749
"release": "standard-version",
@@ -74,6 +76,7 @@
7476
"jsonc-eslint-parser": "^2.4.0",
7577
"lint-staged": "^15.2.10",
7678
"prettier": "^3.3.3",
79+
"publint": "^0.2.10",
7780
"standard-version": "^9.5.0",
7881
"tsup": "^8.2.4",
7982
"typescript": "^5.5.4",

pnpm-lock.yaml

Lines changed: 89 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)