|
1 | 1 | { |
2 | 2 | "name": "tinyqrc", |
3 | 3 | "description": "A tiny QR code generator, written in TypeScript.", |
4 | | - "version": "0.0.5", |
| 4 | + "version": "0.0.6", |
5 | 5 | "author": "Christo Todorov <[email protected]>", |
6 | 6 | "license": "MIT", |
7 | 7 | "repository": "https://github.com/chroxify/tinyqrc", |
|
13 | 13 | "qr-code-generator-typescript", |
14 | 14 | "qr-code-generator-typescript-library" |
15 | 15 | ], |
16 | | - "main": "./dist/index.js", |
17 | | - "module": "./dist/index.mjs", |
| 16 | + "main": "./dist/index.cjs", |
| 17 | + "module": "./dist/index.js", |
18 | 18 | "types": "./dist/index.d.ts", |
19 | 19 | "files": [ |
20 | 20 | "dist" |
21 | 21 | ], |
22 | 22 | "exports": { |
23 | 23 | ".": { |
24 | 24 | "types": "./dist/index.d.ts", |
25 | | - "import": "./dist/index.mjs", |
26 | | - "require": "./dist/index.js" |
27 | | - }, |
28 | | - "./constants": { |
29 | | - "types": "./dist/constants.d.ts", |
30 | | - "import": "./dist/constants.mjs", |
31 | | - "require": "./dist/constants.js" |
| 25 | + "import": "./dist/index.js", |
| 26 | + "require": "./dist/index.cjs" |
32 | 27 | } |
33 | 28 | }, |
34 | 29 | "scripts": { |
35 | | - "build": "tsc && tsc --module ESNext --outDir dist/esm && mv dist/esm/index.js dist/index.mjs && rm -rf dist/esm", |
36 | | - "dev": "tsc --watch", |
| 30 | + "build": "bun build ./src/index.ts --outdir dist --target node --minify --sourcemap && bun build ./src/index.ts --outdir dist --target node --minify --sourcemap --format cjs && bun build ./src/index.ts --outdir dist --target node --minify --sourcemap --format esm && bun run build:types", |
| 31 | + "build:types": "tsc --emitDeclarationOnly --declaration --outDir dist", |
| 32 | + "dev": "bun build ./src/index.ts --outdir dist --target node --watch", |
37 | 33 | "clean": "rm -rf dist", |
38 | 34 | "prepublishOnly": "bun run build" |
39 | 35 | }, |
|
0 commit comments