package.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  3. "bugs": "https://github.com/wooorm/import-meta-resolve/issues",
  4. "maintainers": [
  5. "JounQin <admin@1stg.me> (https://www.1stG.me)"
  6. ],
  7. "contributors": [
  8. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  9. ],
  10. "description": "A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.",
  11. "devDependencies": {
  12. "@changesets/cli": "^2.29.6",
  13. "@types/node": "^24.0.0",
  14. "@types/semver": "^7.0.0",
  15. "c8": "^10.0.0",
  16. "esbuild": "^0.25.9",
  17. "f-ck": "^2.0.0",
  18. "prettier": "^3.0.0",
  19. "remark-cli": "^12.0.0",
  20. "remark-preset-wooorm": "^11.0.0",
  21. "semver": "^7.0.0",
  22. "type-coverage": "^2.0.0",
  23. "typescript": "^5.0.0",
  24. "xo": "^1.0.0"
  25. },
  26. "files": [
  27. "index.d.ts.map",
  28. "index.d.ts",
  29. "index.cjs",
  30. "index.js",
  31. "lib/"
  32. ],
  33. "funding": {
  34. "type": "github",
  35. "url": "https://github.com/sponsors/JounQin"
  36. },
  37. "keywords": [
  38. "esm",
  39. "module",
  40. "node",
  41. "resolve"
  42. ],
  43. "license": "MIT",
  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",
  52. "prettier": {
  53. "bracketSpacing": false,
  54. "semi": false,
  55. "singleQuote": true,
  56. "tabWidth": 2,
  57. "trailingComma": "none",
  58. "useTabs": false
  59. },
  60. "remarkConfig": {
  61. "plugins": [
  62. "remark-preset-wooorm",
  63. [
  64. "remark-lint-maximum-heading-length",
  65. false
  66. ],
  67. [
  68. "remark-lint-no-multiple-toplevel-headings",
  69. false
  70. ]
  71. ]
  72. },
  73. "repository": "un-es/import-meta-resolve",
  74. "scripts": {
  75. "build": "tsc --build --clean && tsc --build && type-coverage && esbuild --bundle --outfile=index.cjs --platform=node --format=cjs index.js",
  76. "format": "remark --frail --quiet --output -- . && prettier --write --log-level warn -- . && xo --fix",
  77. "generate": "node --conditions development script.js",
  78. "prepack": "npm run generate && npm run build && npm run format",
  79. "test-api": "node --experimental-import-meta-resolve test/baseline.js && node --experimental-import-meta-resolve test/baseline-async.js && node test/index.js",
  80. "test-coverage": "c8 --branches 75 --functions 75 --lines 75 --statements 75 --reporter lcov -- npm run test-api",
  81. "test": "npm run generate && npm run build && npm run format && npm run test-coverage"
  82. },
  83. "sideEffects": false,
  84. "typeCoverage": {
  85. "atLeast": 100,
  86. "strict": true,
  87. "ignoreFiles": [
  88. "lib/errors.d.ts"
  89. ]
  90. },
  91. "types": "index.d.ts",
  92. "type": "module",
  93. "version": "4.2.1"
  94. }