package.json 2.6 KB

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