Skip to content

Commit 1e21db6

Browse files
committed
distribute CSS files + allow importing from 'hyperparam'
1 parent 1cad00a commit 1e21db6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
},
1212
"type": "module",
1313
"exports": {
14+
".": {
15+
"types": "./lib/index.d.ts",
16+
"import": "./lib/index.js"
17+
},
1418
"./*": "./lib/*"
1519
},
1620
"bin": {
@@ -26,6 +30,7 @@
2630
"build:ts": "tsc -b",
2731
"build:vite": "vite build",
2832
"build": "run-s build:ts build:vite",
33+
"postbuild": "copyfiles -u 1 src/**/*.css lib/",
2934
"coverage": "vitest run --coverage --coverage.include=src --coverage.include=bin",
3035
"dev": "run-p -l watch:ts watch:vite watch:serve",
3136
"lint": "eslint .",
@@ -54,6 +59,7 @@
5459
"@types/react-dom": "19.0.3",
5560
"@vitejs/plugin-react": "4.3.4",
5661
"@vitest/coverage-v8": "3.0.7",
62+
"copyfiles": "2.4.1",
5763
"eslint": "9.21.0",
5864
"eslint-plugin-react": "7.37.4",
5965
"eslint-plugin-react-hooks": "5.1.0",

0 commit comments

Comments
 (0)