Skip to content

Commit f20b031

Browse files
committed
fix the creation of types
1 parent bb8e06e commit f20b031

File tree

4 files changed

+12
-57
lines changed

4 files changed

+12
-57
lines changed

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,17 @@ To develop the CLI locally:
5959

6060
```sh
6161
npm i
62-
npm run build
63-
npm run serve
62+
npm run dev
6463
```
6564

66-
When you make changes, make sure to rebuild:
65+
The application will be rebuild automatically when you make changes, and the browser will refresh.
6766

68-
```sh
69-
npm run build
70-
```
67+
### Library and application
68+
69+
Hyperparam is an application that relies on node.js scripts in the `bin/` directory and serves the static web application built in the `dist/` directory.
7170

72-
Then refresh the browser.
71+
The `hyperparam` package also includes a library that can be used in other applications. The library is in the `lib/` directory. For example:
72+
73+
```js
74+
import { asyncBufferFrom, AsyncBufferFrom, parquetDataFrame } from "hyperparam";
75+
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"lib"
2828
],
2929
"scripts": {
30-
"build:ts": "tsc -b",
30+
"build:types": "tsc -b",
3131
"build:lib": "vite build -c vite.lib.config.ts",
3232
"build:app": "vite build -c vite.app.config.ts",
33-
"build": "run-s build:ts build:lib build:app",
33+
"build": "run-s build:lib build:types build:app",
3434
"coverage": "vitest run -c vite.lib.config.ts --coverage --coverage.include=src --coverage.include=bin",
3535
"dev": "run-p -l watch:ts watch:vite watch:serve",
3636
"lint": "eslint .",

packages/cli/package.json

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

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
"rootDir": "src",
2121
"outDir": "./lib",
22-
"noEmit": true,
2322
"emitDeclarationOnly": true,
2423
"declaration": true
2524
},

0 commit comments

Comments
 (0)