|
1 | 1 | { |
2 | | - "name": "import-meta-resolve", |
| 2 | + "name": "@dual-bundle/import-meta-resolve", |
3 | 3 | "version": "4.0.0", |
4 | | - "description": "Resolve things like Node.js — ponyfill for `import.meta.resolve`", |
| 4 | + "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.", |
5 | 5 | "license": "MIT", |
6 | 6 | "keywords": [ |
7 | 7 | "resolve", |
8 | 8 | "node", |
9 | 9 | "esm", |
10 | | - "module" |
| 10 | + "module", |
| 11 | + "import", |
| 12 | + "import-meta-resolve" |
11 | 13 | ], |
12 | | - "repository": "wooorm/import-meta-resolve", |
| 14 | + "repository": "un-es/import-meta-resolve", |
13 | 15 | "bugs": "https://github.com/wooorm/import-meta-resolve/issues", |
14 | 16 | "funding": { |
15 | 17 | "type": "github", |
16 | 18 | "url": "https://github.com/sponsors/wooorm" |
17 | 19 | }, |
18 | 20 | "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", |
| 21 | + "maintainers": [ |
| 22 | + "JounQin <admin@1stg.me> (https://www.1stG.me)" |
| 23 | + ], |
19 | 24 | "contributors": [ |
20 | 25 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" |
21 | 26 | ], |
22 | 27 | "sideEffects": false, |
23 | 28 | "type": "module", |
24 | | - "main": "index.js", |
| 29 | + "main": "index.cjs", |
| 30 | + "module": "index.js", |
25 | 31 | "types": "index.d.ts", |
| 32 | + "exports": { |
| 33 | + "types": "./index.d.ts", |
| 34 | + "require": "./index.cjs", |
| 35 | + "default": "./index.js" |
| 36 | + }, |
26 | 37 | "files": [ |
27 | 38 | "lib/", |
28 | 39 | "index.d.ts", |
| 40 | + "index.cjs", |
29 | 41 | "index.js" |
30 | 42 | ], |
31 | 43 | "devDependencies": { |
32 | 44 | "@types/node": "^20.0.0", |
33 | 45 | "@types/semver": "^7.0.0", |
34 | 46 | "c8": "^8.0.0", |
| 47 | + "esbuild": "^0.20.1", |
35 | 48 | "prettier": "^3.0.0", |
36 | 49 | "remark-cli": "^11.0.0", |
37 | 50 | "remark-preset-wooorm": "^9.0.0", |
|
43 | 56 | "scripts": { |
44 | 57 | "prepack": "npm run generate && npm run build && npm run format", |
45 | 58 | "generate": "node --conditions development script.js", |
46 | | - "build": "tsc --build --clean && tsc --build && type-coverage", |
| 59 | + "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js", |
47 | 60 | "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", |
48 | 61 | "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js", |
49 | 62 | "test-coverage": "c8 --check-coverage --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov npm run test-api", |
|
79 | 92 | [ |
80 | 93 | "remark-lint-maximum-heading-length", |
81 | 94 | false |
| 95 | + ], |
| 96 | + [ |
| 97 | + "remark-lint-no-multiple-toplevel-headings", |
| 98 | + false |
82 | 99 | ] |
83 | 100 | ] |
84 | 101 | }, |
|
0 commit comments