|
1 | 1 | { |
2 | 2 | "name": "@lightpanda/browser", |
3 | | - "version": "0.0.1", |
| 3 | + "version": "1.0.0", |
4 | 4 | "description": "Lightpanda for Node.js", |
5 | 5 | "main": "./dist/index.js", |
6 | 6 | "module": "./dist/index.mjs", |
7 | | - "types": "./dist/index.d.ts", |
| 7 | + "types": "./dist/types/index.d.ts", |
| 8 | + "type": "module", |
8 | 9 | "scripts": { |
9 | | - "dev": "tsup src/index.ts --target node22 --format cjs,esm --dts --watch", |
10 | | - "build": "tsup src/index.ts --target node22 --format cjs,esm --minify terser && yarn dlx --package=typescript tsc --emitDeclarationOnly --declaration", |
11 | | - "postinstall": "npx tsup scripts/postinstall.ts --target node22 && node dist/postinstall.js", |
| 10 | + "dev": "tsup index.ts --target node22 --format cjs,esm --dts --watch", |
| 11 | + "build:index": "tsup index.ts --target node22 --format cjs,esm --minify terser", |
| 12 | + "build:decl": "yarn dlx --package=typescript tsc --emitDeclarationOnly --declaration --declarationDir dist/types", |
| 13 | + "build:cli": "tsup cli/install.ts --target node22 --format cjs,esm --minify terser -d dist/cli", |
| 14 | + "build:postinstall": "tsup scripts/postinstall.ts --target node22 --format cjs,esm --minify terser -d dist/scripts", |
| 15 | + "build": "yarn build:index && yarn build:decl && yarn build:cli && yarn build:postinstall", |
| 16 | + "postinstall": "node dist/scripts/postinstall.js || true", |
12 | 17 | "lint": "biome ci . --diagnostic-level=error", |
13 | 18 | "typecheck": "yarn dlx --package=typescript tsc --noEmit" |
14 | 19 | }, |
| 20 | + "bin": { |
| 21 | + "lightpanda": "./dist/cli/install.js" |
| 22 | + }, |
15 | 23 | "repository": { |
16 | 24 | "type": "git", |
17 | 25 | "url": "https://github.com/lightpanda-io/node-packages/tree/main/packages/browser" |
|
0 commit comments