package.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "package-json-from-dist",
  3. "version": "1.0.1",
  4. "description": "Load the local package.json from either src or dist folder",
  5. "main": "./dist/commonjs/index.js",
  6. "exports": {
  7. "./package.json": "./package.json",
  8. ".": {
  9. "import": {
  10. "types": "./dist/esm/index.d.ts",
  11. "default": "./dist/esm/index.js"
  12. },
  13. "require": {
  14. "types": "./dist/commonjs/index.d.ts",
  15. "default": "./dist/commonjs/index.js"
  16. }
  17. }
  18. },
  19. "files": [
  20. "dist"
  21. ],
  22. "scripts": {
  23. "preversion": "npm test",
  24. "postversion": "npm publish",
  25. "prepublishOnly": "git push origin --follow-tags",
  26. "prepare": "tshy",
  27. "pretest": "npm run prepare",
  28. "presnap": "npm run prepare",
  29. "test": "tap",
  30. "snap": "tap",
  31. "format": "prettier --write . --log-level warn",
  32. "typedoc": "typedoc"
  33. },
  34. "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
  35. "license": "BlueOak-1.0.0",
  36. "repository": {
  37. "type": "git",
  38. "url": "git+https://github.com/isaacs/package-json-from-dist.git"
  39. },
  40. "devDependencies": {
  41. "@types/node": "^20.12.12",
  42. "prettier": "^3.2.5",
  43. "tap": "^18.5.3",
  44. "typedoc": "^0.24.8",
  45. "typescript": "^5.1.6",
  46. "tshy": "^1.14.0"
  47. },
  48. "prettier": {
  49. "semi": false,
  50. "printWidth": 70,
  51. "tabWidth": 2,
  52. "useTabs": false,
  53. "singleQuote": true,
  54. "jsxSingleQuote": false,
  55. "bracketSameLine": true,
  56. "arrowParens": "avoid",
  57. "endOfLine": "lf",
  58. "experimentalTernaries": true
  59. },
  60. "tshy": {
  61. "exports": {
  62. "./package.json": "./package.json",
  63. ".": "./src/index.ts"
  64. }
  65. },
  66. "types": "./dist/commonjs/index.d.ts",
  67. "type": "module"
  68. }