Skip to content

Commit 7961d5f

Browse files
feat: add publint (#2)
1 parent 63e2bfa commit 7961d5f

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

package.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,28 @@
66
"license": "Apache-2.0",
77
"author": "ZenML",
88
"type": "module",
9-
"main": "index.js",
9+
"exports": {
10+
".": {
11+
"import": {
12+
"types": "./dist/index.d.ts",
13+
"default": "./dist/index.js"
14+
},
15+
"require": {
16+
"types": "./dist/index.d.cts",
17+
"default": "./dist/index.cjs"
18+
}
19+
}
20+
},
21+
"main": "./dist/index.cjs",
22+
"types": "./dist/index.d.ts",
23+
"files": [
24+
"dist"
25+
],
1026
"scripts": {
1127
"build-storybook": "storybook build",
1228
"format": "prettier -w src",
1329
"prepare": "husky install",
30+
"publint": "publint",
1431
"storybook": "storybook dev -p 6006"
1532
},
1633
"lint-staged": {
@@ -31,6 +48,7 @@
3148
"lint-staged": "^14.0.0",
3249
"postcss": "^8.4.28",
3350
"prettier": "^3.0.2",
51+
"publint": "^0.2.0",
3452
"storybook": "^7.3.1",
3553
"tailwindcss": "^3.3.3",
3654
"tsup": "^7.2.0",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)