|
5 | 5 | "type": "module", |
6 | 6 | "sideEffects": false, |
7 | 7 | "files": [ |
8 | | - "lib/" |
| 8 | + "lib", |
| 9 | + "es", |
| 10 | + "package.json", |
| 11 | + "README.md" |
9 | 12 | ], |
10 | 13 | "bin": { |
11 | | - "badge": "/lib/cli.js" |
| 14 | + "badge": "./es/cli.js" |
12 | 15 | }, |
13 | | - "main": "lib/index.js", |
14 | | - "module": "lib/index.js", |
15 | | - "types": "./lib/index.d.ts", |
16 | | - "typings": "lib/index.d.ts", |
| 16 | + "main": "./lib/index.js", |
| 17 | + "module": "./es/index.js", |
| 18 | + "types": "./es/index.d.ts", |
17 | 19 | "exports": { |
18 | 20 | ".": { |
19 | | - "import": "./lib/index.js", |
20 | | - "types": "./lib/index.d.ts" |
| 21 | + "require": "./lib/index.js", |
| 22 | + "import": "./es/index.js", |
| 23 | + "types": "./es/index.d.ts" |
21 | 24 | } |
22 | 25 | }, |
23 | 26 | "scripts": { |
24 | 27 | "prepare": "husky install", |
25 | | - "build:clean": "tsc --build --clean", |
26 | | - "build:es": "tsc", |
27 | | - "build:watch": "tsc --watch", |
28 | | - "build": "npm run build:clean && npm run build:es", |
| 28 | + "build": "rollup -c", |
29 | 29 | "release": "npm run build && rltb" |
30 | 30 | }, |
31 | 31 | "repository": { |
|
45 | 45 | }, |
46 | 46 | "homepage": "https://github.com/nmsn/badge#readme", |
47 | 47 | "devDependencies": { |
| 48 | + "@rollup/plugin-commonjs": "^25.0.2", |
| 49 | + "@rollup/plugin-json": "^6.0.0", |
| 50 | + "@rollup/plugin-node-resolve": "^15.1.0", |
48 | 51 | "@types/inquirer": "^9.0.3", |
49 | 52 | "@types/node": "^20.2.6", |
50 | 53 | "@typescript-eslint/eslint-plugin": "^5.59.9", |
|
56 | 59 | "lint-staged": "^13.2.2", |
57 | 60 | "prettier": "2.8.8", |
58 | 61 | "release-toolbox": "0.2.0", |
| 62 | + "rollup": "^3.26.2", |
| 63 | + "rollup-plugin-clear": "^2.0.7", |
| 64 | + "rollup-plugin-typescript2": "^0.35.0", |
59 | 65 | "tslib": "^2.5.3", |
60 | 66 | "typescript": "^5.1.3" |
61 | 67 | }, |
|
0 commit comments