Skip to content

Commit 1cad00a

Browse files
committed
rework npm scripts + export lib + remove obsolete component
1 parent 14a1ef0 commit 1cad00a

File tree

3 files changed

+14
-52
lines changed

3 files changed

+14
-52
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ package-lock.json
3131
/coverage/
3232

3333
/lib
34+
tsconfig.tsbuildinfo

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,8 @@
1010
"url": "git+https://github.com/hyparam/hyperparam-cli.git"
1111
},
1212
"type": "module",
13-
"types": "lib/index.d.ts",
1413
"exports": {
15-
".": {
16-
"types": "./lib/index.d.ts",
17-
"import": "./dist/index.min.js"
18-
},
19-
"./components.css": "./dist/components.css"
14+
"./*": "./lib/*"
2015
},
2116
"bin": {
2217
"hyp": "bin/cli.js",
@@ -28,18 +23,22 @@
2823
"lib"
2924
],
3025
"scripts": {
31-
"build": "tsc -b && vite build",
26+
"build:ts": "tsc -b",
27+
"build:vite": "vite build",
28+
"build": "run-s build:ts build:vite",
3229
"coverage": "vitest run --coverage --coverage.include=src --coverage.include=bin",
33-
"dev:vite": "vite",
34-
"dev:serve": "npm run serve",
35-
"dev:url": "npm run dev:serve -- https://hyperparam.blob.core.windows.net/hyperparam/starcoderdata-js-00000-of-00065.parquet",
30+
"dev": "run-p -l watch:ts watch:vite watch:serve",
3631
"lint": "eslint .",
3732
"prepublishOnly": "npm run build",
38-
"preview:vite": "vite preview",
3933
"serve": "node bin/cli.js",
4034
"preserve": "npm run build",
4135
"test": "vitest run",
42-
"typecheck": "tsc --noEmit"
36+
"typecheck": "tsc --noEmit",
37+
"url": "run-p -l watch:ts watch:vite watch:url",
38+
"watch:ts": "tsc --watch",
39+
"watch:vite": "vite build --watch",
40+
"watch:serve": "nodemon bin/cli.js",
41+
"watch:url": "nodemon bin/cli.js https://hyperparam.blob.core.windows.net/hyperparam/starcoderdata-js-00000-of-00065.parquet"
4342
},
4443
"dependencies": {
4544
"hightable": "0.11.0",
@@ -61,6 +60,8 @@
6160
"eslint-plugin-react-refresh": "0.4.19",
6261
"globals": "15.14.0",
6362
"jsdom": "26.0.0",
63+
"nodemon": "3.1.9",
64+
"npm-run-all": "4.1.5",
6465
"typescript": "5.7.3",
6566
"typescript-eslint": "8.25.0",
6667
"vite": "6.2.0",

src/components/DemoApp.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)