package.json 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. {
  2. "name": "laster-tool",
  3. "version": "1.0.1",
  4. "description": "Template project for writing node package with napi-rs",
  5. "main": "index.js",
  6. "repository": "git@github.com:napi-rs/package-template.git",
  7. "license": "MIT",
  8. "keywords": [
  9. "napi-rs",
  10. "NAPI",
  11. "N-API",
  12. "Rust",
  13. "node-addon",
  14. "node-addon-api"
  15. ],
  16. "files": [
  17. "index.d.ts",
  18. "index.js",
  19. "laster-tool.win32-x64-msvc.node"
  20. ],
  21. "napi": {
  22. "name": "laster-tool",
  23. "triples": {
  24. "defaults": true,
  25. "additional": [
  26. "x86_64-unknown-linux-musl",
  27. "aarch64-unknown-linux-gnu",
  28. "i686-pc-windows-msvc",
  29. "armv7-unknown-linux-gnueabihf",
  30. "aarch64-apple-darwin",
  31. "aarch64-linux-android",
  32. "x86_64-unknown-freebsd",
  33. "aarch64-unknown-linux-musl",
  34. "aarch64-pc-windows-msvc",
  35. "armv7-linux-androideabi"
  36. ]
  37. }
  38. },
  39. "engines": {
  40. "node": ">= 10"
  41. },
  42. "publishConfig": {
  43. "registry": "https://registry.npmjs.org/",
  44. "access": "public"
  45. },
  46. "scripts": {
  47. "artifacts": "napi artifacts",
  48. "bench": "node -r @swc-node/register benchmark/bench.ts",
  49. "build": "napi build --platform --release --pipe \"prettier -w\"",
  50. "build:debug": "napi build --platform --pipe \"prettier -w\"",
  51. "format": "run-p format:prettier format:rs format:toml",
  52. "format:prettier": "prettier . -w",
  53. "format:toml": "taplo format",
  54. "format:rs": "cargo fmt",
  55. "lint": "eslint . -c ./.eslintrc.yml",
  56. "prepublishOnly": "napi prepublish -t npm",
  57. "test": "ava",
  58. "version": "napi version"
  59. },
  60. "devDependencies": {
  61. "@napi-rs/cli": "^2.16.4",
  62. "@swc-node/register": "^1.6.8",
  63. "@swc/core": "^1.3.95",
  64. "@taplo/cli": "^0.7.0",
  65. "@typescript-eslint/eslint-plugin": "^7.0.0",
  66. "@typescript-eslint/parser": "^7.0.0",
  67. "ava": "^6.0.0",
  68. "benny": "^3.7.1",
  69. "chalk": "^5.3.0",
  70. "eslint": "^8.52.0",
  71. "eslint-config-prettier": "^9.0.0",
  72. "eslint-plugin-import": "^2.29.0",
  73. "eslint-plugin-prettier": "^5.0.1",
  74. "husky": "^9.0.0",
  75. "lint-staged": "^15.0.2",
  76. "npm-run-all2": "^6.0.0",
  77. "prettier": "^3.0.3",
  78. "typescript": "^5.2.2"
  79. },
  80. "lint-staged": {
  81. "*.@(js|ts|tsx)": [
  82. "eslint -c .eslintrc.yml --fix"
  83. ],
  84. "*.@(js|ts|tsx|yml|yaml|md|json)": [
  85. "prettier --write"
  86. ],
  87. "*.toml": [
  88. "taplo format"
  89. ]
  90. },
  91. "ava": {
  92. "require": [
  93. "@swc-node/register"
  94. ],
  95. "extensions": [
  96. "ts"
  97. ],
  98. "timeout": "2m",
  99. "workerThreads": false,
  100. "environmentVariables": {
  101. "TS_NODE_PROJECT": "./tsconfig.json"
  102. }
  103. },
  104. "prettier": {
  105. "printWidth": 120,
  106. "semi": false,
  107. "trailingComma": "all",
  108. "singleQuote": true,
  109. "arrowParens": "always"
  110. },
  111. "packageManager": "yarn@4.3.0",
  112. "optionalDependencies": {
  113. "laster-tool-win32-x64-msvc": "1.0.0",
  114. "laster-tool-darwin-x64": "1.0.0",
  115. "laster-tool-linux-x64-gnu": "1.0.0",
  116. "laster-tool-linux-x64-musl": "1.0.0",
  117. "laster-tool-linux-arm64-gnu": "1.0.0",
  118. "laster-tool-win32-ia32-msvc": "1.0.0",
  119. "laster-tool-linux-arm-gnueabihf": "1.0.0",
  120. "laster-tool-darwin-arm64": "1.0.0",
  121. "laster-tool-android-arm64": "1.0.0",
  122. "laster-tool-freebsd-x64": "1.0.0",
  123. "laster-tool-linux-arm64-musl": "1.0.0",
  124. "laster-tool-win32-arm64-msvc": "1.0.0",
  125. "laster-tool-android-arm-eabi": "1.0.0"
  126. }
  127. }