package.json 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {
  2. "name": "ts-morph",
  3. "version": "24.0.0",
  4. "description": "TypeScript compiler wrapper for static analysis and code manipulation.",
  5. "main": "dist/ts-morph.js",
  6. "typings": "lib/ts-morph.d.ts",
  7. "scripts": {
  8. "dopublish": "npm run type-check-docs && npm run code-generate && npm run package && npm run publish-code-verification && echo \"Run: npm publish\"",
  9. "build": "npm run build:declarations && npm run build:node",
  10. "build:node": "rimraf dist && rollup -c ",
  11. "build:deno": "npm run build:declarations && rimraf dist-deno && rollup -c --environment BUILD:deno && deno run -A scripts/buildDeno.ts",
  12. "build:declarations": "deno run -A scripts/generation/main.ts create-declaration-file",
  13. "test": "cross-env TS_NODE_TRANSPILE_ONLY=\"true\" mocha",
  14. "test:debug": "npm run test --inspect-brk",
  15. "test:watch": "npm run test --watch-extensions ts --watch",
  16. "test:ci": "npm run test",
  17. "test:ts-versions": "deno run -A scripts/test/testTypeScriptVersions.ts",
  18. "type-check": "deno run -A scripts/typeCheckLibrary.ts",
  19. "code-generate": "deno run -A scripts/generation/main.ts",
  20. "output-wrapped-nodes": "deno run -A scripts/generation/outputWrappedNodesInfo.ts",
  21. "package": "npm run build",
  22. "publish-code-verification": "npm run code-verification && npm run ensure-no-declaration-file-errors",
  23. "code-verification": "deno run -A scripts/verification/main.ts ensure-structures-match-classes ensure-overload-structures-match ensure-array-inputs-readonly ensure-classes-implement-structure-methods ensure-mixin-not-applied-multiple-times validate-public-api-class-member-names validate-compiler-node-to-wrapped-type validate-code-fences",
  24. "ensure-structures-match-classes": "deno run -A scripts/verification/main.ts ensure-structures-match-classes",
  25. "ensure-overload-structures-match": "deno run -A scripts/verification/main.ts ensure-overload-structures-match",
  26. "ensure-no-project-compile-errors": "deno run -A scripts/verification/ensureNoProjectCompileErrors.ts",
  27. "ensure-no-declaration-file-errors": "deno run -A scripts/verification/ensureNoDeclarationFileErrors.ts",
  28. "ensure-array-inputs-readonly": "deno run -A scripts/verification/main ensure-array-inputs-readonly.ts",
  29. "ensure-or-throw-exists": "deno run -A scripts/verification/main ensure-or-throw-exists.ts",
  30. "type-check-docs": "deno run -A scripts/typeCheckDocumentation.ts"
  31. },
  32. "repository": "git+https://github.com/dsherret/ts-morph.git",
  33. "keywords": [
  34. "typescript",
  35. "ast",
  36. "static analysis",
  37. "code generation",
  38. "code refactor"
  39. ],
  40. "author": "David Sherret",
  41. "license": "MIT",
  42. "bugs": {
  43. "url": "https://github.com/dsherret/ts-morph/issues"
  44. },
  45. "homepage": "https://github.com/dsherret/ts-morph#readme",
  46. "dependencies": {
  47. "@ts-morph/common": "~0.25.0",
  48. "code-block-writer": "^13.0.3"
  49. },
  50. "devDependencies": {
  51. "@rollup/plugin-typescript": "^11.1.6",
  52. "@types/chai": "^4.3.16",
  53. "@types/diff": "^5.2.1",
  54. "@types/mocha": "^10.0.7",
  55. "@types/node": "^20.14.8",
  56. "chai": "^4.3.10",
  57. "conditional-type-checks": "^1.0.6",
  58. "cross-env": "^7.0.3",
  59. "diff": "^5.2.0",
  60. "mocha": "10.4.0",
  61. "standard-version": "^9.5.0",
  62. "rimraf": "^5.0.7",
  63. "rollup": "=4.18.0",
  64. "ts-node": "10.9.2",
  65. "typescript": "~5.6.2"
  66. },
  67. "standard-version": {
  68. "tagPrefix": "",
  69. "skip": {
  70. "tag": true,
  71. "commit": true
  72. }
  73. },
  74. "browser": {
  75. "fs": false,
  76. "os": false,
  77. "fs.realpath": false,
  78. "mkdirp": false,
  79. "dir-glob": false,
  80. "graceful-fs": false,
  81. "tinyglobby": false,
  82. "source-map-support": false,
  83. "glob-parent": false,
  84. "glob": false
  85. }
  86. }