|
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": { |
9 | 12 | "@types/node": "^24.0.0", |
10 | 13 | "@types/semver": "^7.0.0", |
11 | 14 | "c8": "^10.0.0", |
| 15 | + "esbuild": "^0.25.9", |
12 | 16 | "f-ck": "^2.0.0", |
13 | 17 | "prettier": "^3.0.0", |
14 | 18 | "remark-cli": "^12.0.0", |
|
21 | 25 | "files": [ |
22 | 26 | "index.d.ts.map", |
23 | 27 | "index.d.ts", |
| 28 | + "index.cjs", |
24 | 29 | "index.js", |
25 | 30 | "lib/" |
26 | 31 | ], |
27 | 32 | "funding": { |
28 | 33 | "type": "github", |
29 | | - "url": "https://github.com/sponsors/wooorm" |
| 34 | + "url": "https://github.com/sponsors/JounQin" |
30 | 35 | }, |
31 | 36 | "keywords": [ |
32 | 37 | "esm", |
|
35 | 40 | "resolve" |
36 | 41 | ], |
37 | 42 | "license": "MIT", |
38 | | - "main": "index.js", |
39 | | - "name": "import-meta-resolve", |
| 43 | + "main": "index.cjs", |
| 44 | + "module": "index.js", |
| 45 | + "exports": { |
| 46 | + "types": "./index.d.ts", |
| 47 | + "require": "./index.cjs", |
| 48 | + "default": "./index.js" |
| 49 | + }, |
| 50 | + "name": "@dual-bundle/import-meta-resolve", |
40 | 51 | "prettier": { |
41 | 52 | "bracketSpacing": false, |
42 | 53 | "semi": false, |
|
51 | 62 | [ |
52 | 63 | "remark-lint-maximum-heading-length", |
53 | 64 | false |
| 65 | + ], |
| 66 | + [ |
| 67 | + "remark-lint-no-multiple-toplevel-headings", |
| 68 | + false |
54 | 69 | ] |
55 | 70 | ] |
56 | 71 | }, |
57 | | - "repository": "wooorm/import-meta-resolve", |
| 72 | + "repository": "un-es/import-meta-resolve", |
58 | 73 | "scripts": { |
59 | | - "build": "tsc --build --clean && tsc --build && type-coverage", |
| 74 | + "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js", |
60 | 75 | "format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix", |
61 | 76 | "generate": "node --conditions development script.js", |
62 | 77 | "prepack": "npm run generate && npm run build && npm run format", |
|
0 commit comments