package.json 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "async-function",
  3. "version": "1.0.0",
  4. "description": "A function that returns the normally hidden `AsyncFunction` constructor",
  5. "main": "./legacy.js",
  6. "jsnext:main": "./index.mjs",
  7. "module": "./index.mjs",
  8. "exports": {
  9. ".": [
  10. {
  11. "module-sync": "./require.mjs",
  12. "import": "./index.mjs",
  13. "default": "./index.js"
  14. },
  15. "./index.js"
  16. ],
  17. "./package.json": "./package.json"
  18. },
  19. "scripts": {
  20. "prepack": "npmignore --auto --commentLines=autogenerated",
  21. "prepublish": "not-in-publish || npm run prepublishOnly",
  22. "prepublishOnly": "safe-publish-latest",
  23. "pretest": "npm run --silent lint",
  24. "test": "npm run tests-only",
  25. "posttest": "npx npm@\">=10.2\" audit --production",
  26. "tests-only": "nyc tape 'test/**/*.js'",
  27. "prelint": "evalmd README.md",
  28. "lint": "eslint --ext=js,mjs .",
  29. "postlint": "tsc && attw -P",
  30. "version": "auto-changelog && git add CHANGELOG.md",
  31. "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
  32. },
  33. "repository": {
  34. "type": "git",
  35. "url": "git+https://github.com/ljharb/async-function.git"
  36. },
  37. "keywords": [
  38. "async",
  39. "await",
  40. "function",
  41. "native"
  42. ],
  43. "author": "Jordan Harbamd <ljharb@gmail.com>",
  44. "license": "MIT",
  45. "bugs": {
  46. "url": "https://github.com/ljharb/async-function/issues"
  47. },
  48. "homepage": "https://github.com/ljharb/async-function#readme",
  49. "devDependencies": {
  50. "@arethetypeswrong/cli": "^0.17.3",
  51. "@ljharb/eslint-config": "^21.1.1",
  52. "@ljharb/tsconfig": "^0.2.3",
  53. "@types/semver": "^6.2.7",
  54. "@types/tape": "^5.8.1",
  55. "auto-changelog": "^2.5.0",
  56. "eslint": "=8.8.0",
  57. "evalmd": "^0.0.19",
  58. "get-proto": "^1.0.1",
  59. "in-publish": "^2.0.1",
  60. "npmignore": "^0.3.1",
  61. "nyc": "^10.3.2",
  62. "safe-publish-latest": "^2.0.0",
  63. "semver": "^6.3.1",
  64. "tape": "^5.9.0",
  65. "typescript": "next"
  66. },
  67. "engines": {
  68. "node": ">= 0.4"
  69. },
  70. "auto-changelog": {
  71. "output": "CHANGELOG.md",
  72. "template": "keepachangelog",
  73. "unreleased": false,
  74. "commitLimit": false,
  75. "backfillLimit": false,
  76. "hideCredit": true
  77. },
  78. "publishConfig": {
  79. "ignore": [
  80. ".github/workflows"
  81. ]
  82. },
  83. "testling": {
  84. "files": "test/index.js"
  85. }
  86. }