|
1 | 1 | { |
2 | 2 | "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", |
3 | 3 | "bugs": "https://github.com/wooorm/import-meta-resolve/issues", |
| 4 | + "maintainers": [ |
| 5 | + "JounQin <admin@1stg.me> (https://www.1stG.me)" |
| 6 | + ], |
4 | 7 | "contributors": [ |
5 | 8 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" |
6 | 9 | ], |
7 | | - "description": "Resolve things like Node.js — ponyfill for `import.meta.resolve`", |
| 10 | + "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.", |
8 | 11 | "devDependencies": { |
| 12 | + "@changesets/cli": "^2.29.6", |
9 | 13 | "@types/node": "^24.0.0", |
10 | 14 | "@types/semver": "^7.0.0", |
11 | 15 | "c8": "^10.0.0", |
| 16 | + "esbuild": "^0.25.9", |
12 | 17 | "f-ck": "^2.0.0", |
13 | 18 | "prettier": "^3.0.0", |
14 | 19 | "remark-cli": "^12.0.0", |
|
21 | 26 | "files": [ |
22 | 27 | "index.d.ts.map", |
23 | 28 | "index.d.ts", |
| 29 | + "index.cjs", |
24 | 30 | "index.js", |
25 | 31 | "lib/" |
26 | 32 | ], |
27 | 33 | "funding": { |
28 | 34 | "type": "github", |
29 | | - "url": "https://github.com/sponsors/wooorm" |
| 35 | + "url": "https://github.com/sponsors/JounQin" |
30 | 36 | }, |
31 | 37 | "keywords": [ |
32 | 38 | "esm", |
|
35 | 41 | "resolve" |
36 | 42 | ], |
37 | 43 | "license": "MIT", |
38 | | - "main": "index.js", |
39 | | - "name": "import-meta-resolve", |
| 44 | + "main": "index.cjs", |
| 45 | + "module": "index.js", |
| 46 | + "exports": { |
| 47 | + "types": "./index.d.ts", |
| 48 | + "require": "./index.cjs", |
| 49 | + "default": "./index.js" |
| 50 | + }, |
| 51 | + "name": "@dual-bundle/import-meta-resolve", |
40 | 52 | "prettier": { |
41 | 53 | "bracketSpacing": false, |
42 | 54 | "semi": false, |
|
51 | 63 | [ |
52 | 64 | "remark-lint-maximum-heading-length", |
53 | 65 | false |
| 66 | + ], |
| 67 | + [ |
| 68 | + "remark-lint-no-multiple-toplevel-headings", |
| 69 | + false |
54 | 70 | ] |
55 | 71 | ] |
56 | 72 | }, |
57 | | - "repository": "wooorm/import-meta-resolve", |
| 73 | + "repository": "un-es/import-meta-resolve", |
58 | 74 | "scripts": { |
59 | | - "build": "tsc --build --clean && tsc --build && type-coverage", |
| 75 | + "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js", |
60 | 76 | "format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix", |
61 | 77 | "generate": "node --conditions development script.js", |
62 | 78 | "prepack": "npm run generate && npm run build && npm run format", |
|
74 | 90 | }, |
75 | 91 | "types": "index.d.ts", |
76 | 92 | "type": "module", |
77 | | - "version": "4.2.0" |
| 93 | + "version": "4.2.1" |
78 | 94 | } |
0 commit comments