Skip to content

Commit 8996ebd

Browse files
committed
Refactor package.json
1 parent d028934 commit 8996ebd

File tree

1 file changed

+39
-41
lines changed

1 file changed

+39
-41
lines changed

package.json

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
{
2-
"name": "import-meta-resolve",
3-
"version": "4.1.0",
4-
"description": "Resolve things like Node.js — ponyfill for `import.meta.resolve`",
5-
"license": "MIT",
6-
"keywords": [
7-
"resolve",
8-
"node",
9-
"esm",
10-
"module"
11-
],
12-
"repository": "wooorm/import-meta-resolve",
13-
"bugs": "https://github.com/wooorm/import-meta-resolve/issues",
14-
"funding": {
15-
"type": "github",
16-
"url": "https://github.com/sponsors/wooorm"
17-
},
182
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
3+
"bugs": "https://github.com/wooorm/import-meta-resolve/issues",
194
"contributors": [
205
"Titus Wormer <[email protected]> (https://wooorm.com)"
216
],
22-
"sideEffects": false,
23-
"type": "module",
24-
"main": "index.js",
25-
"types": "index.d.ts",
26-
"files": [
27-
"lib/",
28-
"index.d.ts",
29-
"index.js"
30-
],
7+
"description": "Resolve things like Node.js — ponyfill for `import.meta.resolve`",
318
"devDependencies": {
329
"@types/node": "^24.0.0",
3310
"@types/semver": "^7.0.0",
@@ -41,39 +18,60 @@
4118
"typescript": "^5.0.0",
4219
"xo": "^1.0.0"
4320
},
44-
"scripts": {
45-
"prepack": "npm run generate && npm run build && npm run format",
46-
"generate": "node --conditions development script.js",
47-
"build": "tsc --build --clean && tsc --build && type-coverage",
48-
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
49-
"test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
50-
"test-coverage": "c8 --check-coverage --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov npm run test-api",
51-
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
21+
"files": [
22+
"lib/",
23+
"index.d.ts",
24+
"index.js"
25+
],
26+
"funding": {
27+
"type": "github",
28+
"url": "https://github.com/sponsors/wooorm"
5229
},
30+
"keywords": [
31+
"esm",
32+
"module",
33+
"node",
34+
"resolve"
35+
],
36+
"license": "MIT",
37+
"main": "index.js",
38+
"name": "import-meta-resolve",
5339
"prettier": {
54-
"tabWidth": 2,
55-
"useTabs": false,
56-
"singleQuote": true,
5740
"bracketSpacing": false,
5841
"semi": false,
59-
"trailingComma": "none"
42+
"singleQuote": true,
43+
"tabWidth": 2,
44+
"trailingComma": "none",
45+
"useTabs": false
6046
},
6147
"remarkConfig": {
6248
"plugins": [
63-
"preset-wooorm",
49+
"remark-preset-wooorm",
6450
[
6551
"remark-lint-maximum-heading-length",
6652
false
6753
]
6854
]
6955
},
56+
"repository": "wooorm/import-meta-resolve",
57+
"scripts": {
58+
"build": "tsc --build --clean && tsc --build && type-coverage",
59+
"format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix",
60+
"generate": "node --conditions development script.js",
61+
"prepack": "npm run generate && npm run build && npm run format",
62+
"test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
63+
"test-coverage": "c8 --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov -- npm run test-api",
64+
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"
65+
},
66+
"sideEffects": false,
7067
"typeCoverage": {
7168
"atLeast": 100,
72-
"detail": true,
7369
"strict": true,
74-
"ignoreCatch": true,
7570
"ignoreFiles": [
7671
"lib/errors.d.ts"
7772
]
78-
}
73+
},
74+
"types": "index.d.ts",
75+
"type": "module",
76+
"version": "4.1.0"
7977
}

0 commit comments

Comments
 (0)