Comparing version 5.0.0 to 6.0.1
{ | ||
"name": "ts-morph", | ||
"version": "5.0.0", | ||
"version": "6.0.1", | ||
"description": "TypeScript compiler wrapper for static analysis and code manipulation.", | ||
"main": "dist/ts-morph.js", | ||
"typings": "dist-declarations/ts-morph.d.ts", | ||
"typings": "lib/ts-morph.d.ts", | ||
"scripts": { | ||
"dopublish": "yarn type-check-docs && yarn package && yarn publish-code-verification && echo \"Run: npm publish --otp\"", | ||
"build": "rimraf dist && rollup --config && yarn build:declarations", | ||
"build:declarations": "rimraf dist-declarations && ts-node --transpile-only scripts/generation/main create-declaration-file", | ||
"build:declarations": "ts-node --transpile-only scripts/generation/main create-declaration-file", | ||
"test": "cross-env TS_NODE_COMPILER=\"ttypescript\" TS_NODE_TRANSPILE_ONLY=\"true\" mocha --opts mocha.opts", | ||
@@ -25,3 +25,3 @@ "test:debug": "yarn test --inspect-brk", | ||
"package": "yarn build", | ||
"publish-code-verification": "yarn code-verification && yarn ensure-no-declaration-file-errors && yarn ensure-declaration-files-not-changed", | ||
"publish-code-verification": "yarn code-verification && yarn ensure-no-declaration-file-errors", | ||
"code-verification": "ts-node --transpile-only scripts/verification/main 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", | ||
@@ -32,6 +32,4 @@ "ensure-structures-match-classes": "ts-node --transpile-only scripts/verification/main ensure-structures-match-classes", | ||
"ensure-no-declaration-file-errors": "ts-node --transpile-only scripts/verification/ensureNoDeclarationFileErrors", | ||
"ensure-declaration-files-not-changed": "ts-node --transpile-only scripts/verification/ensureDeclarationFilesNotChanged", | ||
"ensure-array-inputs-readonly": "ts-node --transpile-only scripts/verification/main ensure-array-inputs-readonly", | ||
"ensure-or-throw-exists": "ts-node --transpile-only scripts/verification/main ensure-or-throw-exists", | ||
"overwrite-declaration-files": "yarn build:declarations && shx cp -rf dist-declarations/ts-morph.d.ts lib/ts-morph.d.ts", | ||
"type-check-docs": "ts-node --transpile-only scripts/typeCheckDocumentation.ts" | ||
@@ -61,5 +59,3 @@ }, | ||
"!src/tests/**/*.ts", | ||
"!src/utils/TypeGuards.ts", | ||
"!src/structures/utils/forEachStructureChild.ts", | ||
"!src/structures/utils/StructureTypeGuards.ts" | ||
"!src/structures/utils/forEachStructureChild.ts" | ||
], | ||
@@ -71,9 +67,6 @@ "reporter": [ | ||
}, | ||
"typescript": { | ||
"definition": "dist-declarations/ts-morph.d.ts" | ||
}, | ||
"dependencies": { | ||
"@dsherret/to-absolute-glob": "^2.0.2", | ||
"@ts-morph/common": "~0.1.0", | ||
"code-block-writer": "^10.0.0" | ||
"@ts-morph/common": "~0.2.1", | ||
"code-block-writer": "^10.1.0" | ||
}, | ||
@@ -86,3 +79,3 @@ "devDependencies": { | ||
"@types/ts-nameof": "^4.0.0", | ||
"@ts-morph/scripts": "~0.1.0", | ||
"@ts-morph/scripts": "~0.2.0", | ||
"chai": "^4.2.0", | ||
@@ -101,3 +94,3 @@ "conditional-type-checks": "^1.0.4", | ||
"source-map-support": "^0.5.16", | ||
"ts-morph": "npm:ts-morph@4.2.0", | ||
"ts-morph": "npm:ts-morph@5.0.0", | ||
"ts-nameof": "^4.1.0", | ||
@@ -124,3 +117,2 @@ "ts-node": "8.4.1", | ||
"source-map-support": false, | ||
"globby": false, | ||
"glob-parent": false, | ||
@@ -127,0 +119,0 @@ "glob": false |
@@ -5,4 +5,4 @@ ts-morph | ||
[![npm version](https://badge.fury.io/js/ts-morph.svg)](https://badge.fury.io/js/ts-morph) | ||
[![Build Status](https://travis-ci.org/dsherret/ts-morph.svg?branch=master)](https://travis-ci.org/dsherret/ts-morph) | ||
[![Coverage Status](https://coveralls.io/repos/dsherret/ts-morph/badge.svg?branch=master&service=github)](https://coveralls.io/github/dsherret/ts-morph?branch=master) | ||
[![Build Status](https://travis-ci.org/dsherret/ts-morph.svg?branch=latest)](https://travis-ci.org/dsherret/ts-morph) | ||
[![Coverage Status](https://coveralls.io/repos/dsherret/ts-morph/badge.svg?branch=latest&service=github)](https://coveralls.io/github/dsherret/ts-morph?branch=latest) | ||
[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges) | ||
@@ -50,3 +50,3 @@ | ||
const project = new Project({ | ||
// Optionally specify compiler options, tsconfig.json, virtual file system, and more here. | ||
// Optionally specify compiler options, tsconfig.json, in-memory file system, and more here. | ||
// If you initialize with a tsconfig.json, then it will automatically populate the project | ||
@@ -58,3 +58,3 @@ // with the associated source files. | ||
// add source files | ||
project.addExistingSourceFiles("src/**/*.ts"); | ||
project.addSourceFilesAtPaths("src/**/*.ts"); | ||
const myClassFile = project.createSourceFile("src/MyClass.ts", "export class MyClass {}"); | ||
@@ -61,0 +61,0 @@ const myEnumFile = project.createSourceFile("src/MyEnum.ts", { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1474696
29124
+ Added@ts-morph/common@0.2.2(transitive)
- Removed@ts-morph/common@0.1.1(transitive)
- Removed@types/glob@7.2.0(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removed@types/node@22.5.5(transitive)
- Removeddir-glob@3.0.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobby@10.0.2(transitive)
- Removedignore@5.3.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedslash@3.0.0(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedwrappy@1.0.2(transitive)
Updated@ts-morph/common@~0.2.1
Updatedcode-block-writer@^10.1.0