package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "isexe",
  3. "version": "3.1.1",
  4. "description": "Minimal module to check if a file is executable.",
  5. "main": "./dist/cjs/index.js",
  6. "module": "./dist/mjs/index.js",
  7. "types": "./dist/cjs/index.js",
  8. "files": [
  9. "dist"
  10. ],
  11. "exports": {
  12. ".": {
  13. "import": {
  14. "types": "./dist/mjs/index.d.ts",
  15. "default": "./dist/mjs/index.js"
  16. },
  17. "require": {
  18. "types": "./dist/cjs/index.d.ts",
  19. "default": "./dist/cjs/index.js"
  20. }
  21. },
  22. "./posix": {
  23. "import": {
  24. "types": "./dist/mjs/posix.d.ts",
  25. "default": "./dist/mjs/posix.js"
  26. },
  27. "require": {
  28. "types": "./dist/cjs/posix.d.ts",
  29. "default": "./dist/cjs/posix.js"
  30. }
  31. },
  32. "./win32": {
  33. "import": {
  34. "types": "./dist/mjs/win32.d.ts",
  35. "default": "./dist/mjs/win32.js"
  36. },
  37. "require": {
  38. "types": "./dist/cjs/win32.d.ts",
  39. "default": "./dist/cjs/win32.js"
  40. }
  41. },
  42. "./package.json": "./package.json"
  43. },
  44. "devDependencies": {
  45. "@types/node": "^20.4.5",
  46. "@types/tap": "^15.0.8",
  47. "c8": "^8.0.1",
  48. "mkdirp": "^0.5.1",
  49. "prettier": "^2.8.8",
  50. "rimraf": "^2.5.0",
  51. "sync-content": "^1.0.2",
  52. "tap": "^16.3.8",
  53. "ts-node": "^10.9.1",
  54. "typedoc": "^0.24.8",
  55. "typescript": "^5.1.6"
  56. },
  57. "scripts": {
  58. "preversion": "npm test",
  59. "postversion": "npm publish",
  60. "prepublishOnly": "git push origin --follow-tags",
  61. "prepare": "tsc -p tsconfig/cjs.json && tsc -p tsconfig/esm.json && bash ./scripts/fixup.sh",
  62. "pretest": "npm run prepare",
  63. "presnap": "npm run prepare",
  64. "test": "c8 tap",
  65. "snap": "c8 tap",
  66. "format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
  67. "typedoc": "typedoc --tsconfig tsconfig/esm.json ./src/*.ts"
  68. },
  69. "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
  70. "license": "ISC",
  71. "tap": {
  72. "coverage": false,
  73. "node-arg": [
  74. "--enable-source-maps",
  75. "--no-warnings",
  76. "--loader",
  77. "ts-node/esm"
  78. ],
  79. "ts": false
  80. },
  81. "prettier": {
  82. "semi": false,
  83. "printWidth": 75,
  84. "tabWidth": 2,
  85. "useTabs": false,
  86. "singleQuote": true,
  87. "jsxSingleQuote": false,
  88. "bracketSameLine": true,
  89. "arrowParens": "avoid",
  90. "endOfLine": "lf"
  91. },
  92. "repository": "https://github.com/isaacs/isexe",
  93. "engines": {
  94. "node": ">=16"
  95. }
  96. }