package.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "author": "Ben Newman <bn@cs.stanford.edu>",
  3. "name": "recast",
  4. "version": "0.23.4",
  5. "description": "JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator",
  6. "keywords": [
  7. "ast",
  8. "rewriting",
  9. "refactoring",
  10. "codegen",
  11. "syntax",
  12. "transformation",
  13. "parsing",
  14. "pretty-printing"
  15. ],
  16. "homepage": "http://github.com/benjamn/recast",
  17. "repository": {
  18. "type": "git",
  19. "url": "git://github.com/benjamn/recast.git"
  20. },
  21. "license": "MIT",
  22. "main": "main.js",
  23. "types": "main.d.ts",
  24. "scripts": {
  25. "mocha": "test/run.sh",
  26. "debug": "test/run.sh --inspect-brk",
  27. "test": "npm run lint && npm run build && npm run mocha",
  28. "build": "npm run clean && tsc",
  29. "lint": "eslint --ext .ts .",
  30. "format": "prettier --write .",
  31. "clean": "tsc --build --clean",
  32. "prepare": "npm run build",
  33. "postpack": "npm run clean"
  34. },
  35. "lint-staged": {
  36. "*.ts": [
  37. "eslint",
  38. "prettier -c"
  39. ]
  40. },
  41. "browser": {
  42. "fs": false
  43. },
  44. "dependencies": {
  45. "assert": "^2.0.0",
  46. "ast-types": "^0.16.1",
  47. "esprima": "~4.0.0",
  48. "source-map": "~0.6.1",
  49. "tslib": "^2.0.1"
  50. },
  51. "devDependencies": {
  52. "@babel/core": "7.20.5",
  53. "@babel/parser": "7.20.5",
  54. "@babel/preset-env": "7.20.2",
  55. "@types/esprima": "4.0.3",
  56. "@types/glob": "8.0.0",
  57. "@types/mocha": "10.0.1",
  58. "@types/node": "18.11.15",
  59. "@typescript-eslint/parser": "^5.47.1",
  60. "eslint": "^8.40.0",
  61. "esprima-fb": "15001.1001.0-dev-harmony-fb",
  62. "flow-parser": "0.195.0",
  63. "glob": "8.0.3",
  64. "lint-staged": "^13.2.2",
  65. "mocha": "^10.2.0",
  66. "prettier": "^2.6.2",
  67. "reify": "0.20.12",
  68. "typescript": "^4.9.4"
  69. },
  70. "engines": {
  71. "node": ">= 4"
  72. }
  73. }