package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {
  2. "name": "foreground-child",
  3. "version": "3.3.0",
  4. "description": "Run a child as if it's the foreground process. Give it stdio. Exit when it exits.",
  5. "main": "./dist/commonjs/index.js",
  6. "types": "./dist/commonjs/index.d.ts",
  7. "exports": {
  8. "./watchdog": {
  9. "import": {
  10. "source": "./src/watchdog.ts",
  11. "types": "./dist/esm/watchdog.d.ts",
  12. "default": "./dist/esm/watchdog.js"
  13. },
  14. "require": {
  15. "source": "./src/watchdog.ts",
  16. "types": "./dist/commonjs/watchdog.d.ts",
  17. "default": "./dist/commonjs/watchdog.js"
  18. }
  19. },
  20. "./proxy-signals": {
  21. "import": {
  22. "source": "./src/proxy-signals.ts",
  23. "types": "./dist/esm/proxy-signals.d.ts",
  24. "default": "./dist/esm/proxy-signals.js"
  25. },
  26. "require": {
  27. "source": "./src/proxy-signals.ts",
  28. "types": "./dist/commonjs/proxy-signals.d.ts",
  29. "default": "./dist/commonjs/proxy-signals.js"
  30. }
  31. },
  32. "./package.json": "./package.json",
  33. ".": {
  34. "import": {
  35. "source": "./src/index.ts",
  36. "types": "./dist/esm/index.d.ts",
  37. "default": "./dist/esm/index.js"
  38. },
  39. "require": {
  40. "source": "./src/index.ts",
  41. "types": "./dist/commonjs/index.d.ts",
  42. "default": "./dist/commonjs/index.js"
  43. }
  44. }
  45. },
  46. "files": [
  47. "dist"
  48. ],
  49. "engines": {
  50. "node": ">=14"
  51. },
  52. "dependencies": {
  53. "cross-spawn": "^7.0.0",
  54. "signal-exit": "^4.0.1"
  55. },
  56. "scripts": {
  57. "preversion": "npm test",
  58. "postversion": "npm publish",
  59. "prepublishOnly": "git push origin --follow-tags",
  60. "prepare": "tshy",
  61. "pretest": "npm run prepare",
  62. "presnap": "npm run prepare",
  63. "test": "tap",
  64. "snap": "tap",
  65. "format": "prettier --write . --log-level warn",
  66. "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
  67. },
  68. "prettier": {
  69. "experimentalTernaries": true,
  70. "semi": false,
  71. "printWidth": 75,
  72. "tabWidth": 2,
  73. "useTabs": false,
  74. "singleQuote": true,
  75. "jsxSingleQuote": false,
  76. "bracketSameLine": true,
  77. "arrowParens": "avoid",
  78. "endOfLine": "lf"
  79. },
  80. "tap": {
  81. "typecheck": true
  82. },
  83. "repository": {
  84. "type": "git",
  85. "url": "git+https://github.com/tapjs/foreground-child.git"
  86. },
  87. "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
  88. "license": "ISC",
  89. "devDependencies": {
  90. "@types/cross-spawn": "^6.0.2",
  91. "@types/node": "^18.15.11",
  92. "@types/tap": "^15.0.8",
  93. "prettier": "^3.3.2",
  94. "tap": "^19.2.5",
  95. "tshy": "^1.15.1",
  96. "typedoc": "^0.24.2",
  97. "typescript": "^5.0.2"
  98. },
  99. "funding": {
  100. "url": "https://github.com/sponsors/isaacs"
  101. },
  102. "tshy": {
  103. "exports": {
  104. "./watchdog": "./src/watchdog.ts",
  105. "./proxy-signals": "./src/proxy-signals.ts",
  106. "./package.json": "./package.json",
  107. ".": "./src/index.ts"
  108. }
  109. },
  110. "type": "module"
  111. }