package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. {
  2. "name": "@swc/core",
  3. "version": "1.4.2",
  4. "description": "Super-fast alternative for babel",
  5. "homepage": "https://swc.rs",
  6. "main": "./index.js",
  7. "author": "강동윤 <kdy1997.dev@gmail.com>",
  8. "license": "Apache-2.0",
  9. "keywords": [
  10. "swc",
  11. "swcpack",
  12. "babel",
  13. "typescript",
  14. "rust",
  15. "webpack",
  16. "tsc"
  17. ],
  18. "engines": {
  19. "node": ">=10"
  20. },
  21. "repository": {
  22. "type": "git",
  23. "url": "git+https://github.com/swc-project/swc.git"
  24. },
  25. "bugs": {
  26. "url": "https://github.com/swc-project/swc/issues"
  27. },
  28. "napi": {
  29. "binaryName": "swc",
  30. "targets": [
  31. "x86_64-apple-darwin",
  32. "x86_64-pc-windows-msvc",
  33. "x86_64-unknown-linux-gnu",
  34. "x86_64-unknown-linux-musl",
  35. "i686-pc-windows-msvc",
  36. "armv7-unknown-linux-gnueabihf",
  37. "aarch64-unknown-linux-gnu",
  38. "aarch64-apple-darwin",
  39. "aarch64-unknown-linux-musl",
  40. "aarch64-pc-windows-msvc"
  41. ]
  42. },
  43. "publishConfig": {
  44. "registry": "https://registry.npmjs.org/",
  45. "access": "public"
  46. },
  47. "types": "./index.d.ts",
  48. "scripts": {
  49. "changelog": "git cliff --output CHANGELOG.md",
  50. "setup": "husky install && git config feature.manyFiles true && node ./crates/swc_ecma_preset_env/scripts/copy-data.js",
  51. "postinstall": "node postinstall.js",
  52. "artifacts": "napi artifacts --npm-dir scripts/npm",
  53. "prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tag-style npm",
  54. "pack": "wasm-pack",
  55. "build:ts": "tsc -d",
  56. "build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
  57. "build": "tsc -d && napi build --manifest-path bindings/Cargo.toml --platform -p binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --release -o .",
  58. "build:dev": "tsc -d && napi build --manifest-path bindings/Cargo.toml --platform -p binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -o .",
  59. "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
  60. "version": "napi version --npm-dir scripts/npm"
  61. },
  62. "lint-staged": {
  63. "*.toml": [
  64. "taplo format"
  65. ],
  66. "*.rs": [
  67. "rustfmt --"
  68. ],
  69. "*.json": [
  70. "prettier --write"
  71. ],
  72. "!(**/tests/**/*)*.js": [
  73. "prettier --write"
  74. ],
  75. "!(**/tests/**/*)*.ts": [
  76. "prettier --write"
  77. ],
  78. "!(**/tests/**/*)*.jsx": [
  79. "prettier --write"
  80. ],
  81. "!(**/tests/**/*)*.tsx": [
  82. "prettier --write"
  83. ]
  84. },
  85. "devDependencies": {
  86. "@babel/compat-data": "^7.23.2",
  87. "@babel/core": "^7.13.16",
  88. "@babel/generator": "^7.18.13",
  89. "@babel/plugin-proposal-class-properties": "^7.13.0",
  90. "@babel/plugin-proposal-decorators": "^7.13.15",
  91. "@babel/plugin-proposal-object-rest-spread": "^7.13.8",
  92. "@babel/preset-env": "^7.13.15",
  93. "@babel/preset-react": "^7.13.13",
  94. "@babel/preset-typescript": "^7.13.0",
  95. "@babel/types": "^7.14.0",
  96. "@napi-rs/cli": "^3.0.0-alpha.22",
  97. "@swc/core": "=1.2.220",
  98. "@swc/helpers": "^0.5.0",
  99. "@swc/plugin-jest": "^1.5.117",
  100. "@taplo/cli": "^0.5.2",
  101. "@types/jest": "^29.5.11",
  102. "@types/node": "^20.5.0",
  103. "@types/terser": "^3.12.0",
  104. "acorn": "^8.6.0",
  105. "acorn-jsx": "^5.3.2",
  106. "axios": "^0.21.1",
  107. "babel-plugin-transform-node-env-inline": "^0.4.3",
  108. "benchmark": "^2.1.4",
  109. "bootstrap": "^5.2.1",
  110. "class-validator": "^0.13.1",
  111. "core-js": "^2.6.11",
  112. "core-js-compat": "^3.33.1",
  113. "cross-env": "^7.0.3",
  114. "cspell": "^5.12.3",
  115. "expect": "^27.4.2",
  116. "glob": "^8.0.3",
  117. "husky": "^7.0.2",
  118. "jest": "^29.7.0",
  119. "js-beautify": "^1.14.3",
  120. "lint-staged": "^12.3.6",
  121. "lodash": "^4.17.21",
  122. "mocha": "^9.1.3",
  123. "npm-run-all": "^4.1.5",
  124. "prettier": "^2.6.2",
  125. "progress": "^2.0.3",
  126. "prop-types": "^15.7.2",
  127. "react": "^17.0.2",
  128. "reflect-metadata": "^0.1.13",
  129. "regenerator-runtime": "^0.13.9",
  130. "source-map": "^0.7.3",
  131. "source-map-support": "^0.5.19",
  132. "sourcemap-validator": "^2.1.0",
  133. "swc-plugin-coverage-instrument": "^0.0.12",
  134. "terser": "^5.7.1",
  135. "ts-node": "^10.5.0",
  136. "typescript": "^5.3.3"
  137. },
  138. "peerDependencies": {
  139. "@swc/helpers": "^0.5.0"
  140. },
  141. "peerDependenciesMeta": {
  142. "@swc/helpers": {
  143. "optional": true
  144. }
  145. },
  146. "funding": {
  147. "type": "opencollective",
  148. "url": "https://opencollective.com/swc"
  149. },
  150. "files": [
  151. "CHANGELOG.md",
  152. "Visitor.d.ts",
  153. "index.d.ts",
  154. "spack.js",
  155. "util.d.ts",
  156. "LICENSE",
  157. "Visitor.js",
  158. "binding.d.ts",
  159. "index.js",
  160. "types.d.ts",
  161. "util.js",
  162. "README.md",
  163. "binding.js",
  164. "package.json",
  165. "spack.d.ts",
  166. "types.js",
  167. "postinstall.js",
  168. "bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
  169. ],
  170. "packageManager": "yarn@4.0.2",
  171. "dependencies": {
  172. "@swc/counter": "^0.1.2",
  173. "@swc/types": "^0.1.5"
  174. },
  175. "optionalDependencies": {
  176. "@swc/core-darwin-x64": "1.4.2",
  177. "@swc/core-win32-x64-msvc": "1.4.2",
  178. "@swc/core-linux-x64-gnu": "1.4.2",
  179. "@swc/core-linux-x64-musl": "1.4.2",
  180. "@swc/core-win32-ia32-msvc": "1.4.2",
  181. "@swc/core-linux-arm-gnueabihf": "1.4.2",
  182. "@swc/core-linux-arm64-gnu": "1.4.2",
  183. "@swc/core-darwin-arm64": "1.4.2",
  184. "@swc/core-linux-arm64-musl": "1.4.2",
  185. "@swc/core-win32-arm64-msvc": "1.4.2"
  186. }
  187. }