add exports
135d46fa
2 file(s) · +12 −0
| 3 | 3 | "version": "0.0.1", |
|
| 4 | 4 | "main": "dist/index.js", |
|
| 5 | 5 | "types": "dist/index.d.ts", |
|
| 6 | + | "exports": { |
|
| 7 | + | ".": { |
|
| 8 | + | "types": "./dist/index.d.ts", |
|
| 9 | + | "default": "./dist/index.js" |
|
| 10 | + | } |
|
| 11 | + | }, |
|
| 6 | 12 | "scripts": { |
|
| 7 | 13 | "build": "tsc", |
|
| 8 | 14 | "dev": "bun --watch run src/index.ts" |
| 3 | 3 | "version": "0.0.1", |
|
| 4 | 4 | "main": "dist/index.js", |
|
| 5 | 5 | "types": "dist/index.d.ts", |
|
| 6 | + | "exports": { |
|
| 7 | + | ".": { |
|
| 8 | + | "types": "./dist/index.d.ts", |
|
| 9 | + | "default": "./dist/index.js" |
|
| 10 | + | } |
|
| 11 | + | }, |
|
| 6 | 12 | "scripts": { |
|
| 7 | 13 | "build": "tsc", |
|
| 8 | 14 | "dev": "tsc --watch" |