|
2 | 2 | "name": "parse-git-diff",
|
3 | 3 | "version": "0.0.9",
|
4 | 4 | "description": "A parser for git diff",
|
5 |
| - "main": "build/index.umd.js", |
6 |
| - "module": "build/index.module.js", |
7 |
| - "types": "build/index.d.ts", |
| 5 | + "main": "./build/cjs/index.js", |
| 6 | + "module": "./build/mjs/index.js", |
| 7 | + "types": "./build/types/index.d.ts", |
8 | 8 | "scripts": {
|
9 | 9 | "prepublish": "yarn build",
|
10 |
| - "build": "rimraf build && rollup -c rollup.config.js && tsc --declaration", |
| 10 | + "build": "rimraf build && tsc -p tsconfig.json && tsc -p tsconfig-esm.json", |
| 11 | + "postbuild": "bash fixup.sh", |
11 | 12 | "format": "prettier . --write",
|
12 | 13 | "test": "jest --coverage",
|
13 | 14 | "prebuild": "yarn check:all",
|
14 | 15 | "publish:demo": "gh-pages -d demo/build",
|
15 | 16 | "check:all": "prettier --check . && tsc --noEmit && yarn test",
|
16 | 17 | "build:readme": "node scripts/build-readme.js && yarn format"
|
17 | 18 | },
|
| 19 | + "exports": { |
| 20 | + ".": { |
| 21 | + "import": { |
| 22 | + "types": "./build/mjs/index.d.ts", |
| 23 | + "default": "./build/mjs/index.js" |
| 24 | + }, |
| 25 | + "require": { |
| 26 | + "types": "./build/cjs/index.d.ts", |
| 27 | + "default": "./build/cjs/index.js" |
| 28 | + } |
| 29 | + } |
| 30 | + }, |
18 | 31 | "repository": {
|
19 | 32 | "type": "git",
|
20 | 33 | "url": "git+https://github.com/yeonjuan/parse-git-diff.git"
|
|
34 | 47 | "jest": "^29.3.1",
|
35 | 48 | "md-replacer": "^0.0.4",
|
36 | 49 | "prettier": "^2.4.1",
|
37 |
| - "rimraf": "^4.0.5", |
| 50 | + "rimraf": "^5.0.1", |
38 | 51 | "rollup": "^2.58.0",
|
39 | 52 | "ts-jest": "^29.0.5",
|
40 | 53 | "tslib": "^2.3.1",
|
41 |
| - "typescript": "^4.4.3" |
| 54 | + "typescript": "^5.0.4" |
42 | 55 | },
|
43 | 56 | "files": [
|
44 |
| - "build", |
45 |
| - "tsconfig.json", |
46 |
| - "README.md", |
47 |
| - "yarn.lock", |
48 |
| - "package.json" |
| 57 | + "build" |
49 | 58 | ],
|
50 | 59 | "keywords": [
|
51 | 60 | "git",
|
|
0 commit comments