|
1 | 1 | { |
2 | 2 | "name": "@icebreakers/bar", |
3 | 3 | "type": "module", |
4 | | - "version": "0.1.2", |
5 | | - "description": "tsup(esbuild) build package template", |
| 4 | + "version": "0.1.3", |
| 5 | + "description": "tsup build package template", |
6 | 6 | "author": "ice breaker <1324318532@qq.com>", |
7 | 7 | "license": "MIT", |
8 | 8 | "repository": { |
|
16 | 16 | "keywords": [], |
17 | 17 | "sideEffects": false, |
18 | 18 | "exports": { |
19 | | - ".": "./src/index.ts" |
| 19 | + ".": { |
| 20 | + "types": "./dist/index.d.ts", |
| 21 | + "import": "./dist/index.mjs", |
| 22 | + "require": "./dist/index.cjs" |
| 23 | + } |
20 | 24 | }, |
| 25 | + "main": "./dist/index.cjs", |
| 26 | + "module": "./dist/index.mjs", |
| 27 | + "types": "./dist/index.d.ts", |
21 | 28 | "files": [ |
22 | 29 | "dist" |
23 | 30 | ], |
24 | 31 | "scripts": { |
25 | | - "dev": "tsup --watch --sourcemap", |
| 32 | + "dev": "unbuild --stub", |
| 33 | + "build:watch": "tsup --watch --sourcemap", |
26 | 34 | "build": "tsup", |
27 | 35 | "test": "vitest run", |
28 | 36 | "test:dev": "vitest", |
29 | 37 | "release": "pnpm publish", |
30 | 38 | "lint": "eslint .", |
31 | 39 | "lint:fix": "eslint . --fix" |
32 | 40 | }, |
33 | | - "publishConfig": { |
34 | | - "exports": { |
35 | | - ".": { |
36 | | - "types": "./dist/index.d.ts", |
37 | | - "import": "./dist/index.js", |
38 | | - "require": "./dist/index.cjs" |
39 | | - } |
40 | | - }, |
41 | | - "main": "./dist/index.cjs", |
42 | | - "module": "./dist/index.js", |
43 | | - "types": "./dist/index.d.ts" |
44 | | - } |
| 41 | + "publishConfig": {} |
45 | 42 | } |
0 commit comments