Skip to content

Commit

Permalink
chore: Bump versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Mar 22, 2021
1 parent 0f8a77a commit 630998d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/setup/file-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ console.log(mySetDecl.getType().getText()); // any

This is because, the `lib` compiler option must be specified, similar to when you use `tsc`:

```ts
```ts setup: let mySetDecl: Node;
const project = new Project({
useInMemoryFileSystem: true,
compilerOptions: {
Expand All @@ -66,7 +66,7 @@ console.log(mySetDecl.getType().getText()); // Set<string>, good

Or you may specify a target that will implicitly load in the lib files that you need:

```ts
```ts setup: let mySetDecl: Node;
import { Project, ts } from "ts-morph";

const project = new Project({
Expand Down
4 changes: 2 additions & 2 deletions packages/bootstrap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-morph/bootstrap",
"version": "0.9.0",
"version": "0.9.1",
"description": "API for getting quickly set up with the TypeScript Compiler API.",
"keywords": ["typescript", "compiler", "bootstrap"],
"main": "dist/ts-morph-bootstrap.js",
Expand All @@ -20,7 +20,7 @@
"rollup": "rollup -c"
},
"dependencies": {
"@ts-morph/common": "~0.8.1"
"@ts-morph/common": "~0.9.0"
},
"devDependencies": {
"@types/chai": "^4.2.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ts-morph/common",
"version": "0.8.1",
"version": "0.9.0",
"description": "Common functionality for ts-morph packages.",
"main": "dist/ts-morph-common.js",
"author": "David Sherret",
Expand Down
7 changes: 4 additions & 3 deletions packages/common/src/runtimes/NodeRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import { Runtime, RuntimeFileSystem, RuntimePath } from "./Runtime";

export class NodeRuntime implements Runtime {
private readonly minimatch: typeof import("minimatch") = require("minimatch");
private readonly os: typeof import("os") = require("os");

fs = new NodeRuntimeFileSystem();
path = new NodeRuntimePath();

getEnvVar(name: string) {
return process.env[name];
return process?.env[name];
}

getEndOfLine() {
return require("os").EOL;
return this.os.EOL;
}

getPathMatchesPattern(path: string, pattern: string) {
Expand Down Expand Up @@ -192,7 +193,7 @@ class NodeRuntimeFileSystem implements RuntimeFileSystem {
}

isCaseSensitive() {
const platform = process.platform;
const platform = process?.platform;
return platform !== "win32" && platform !== "darwin";
}
}
7 changes: 7 additions & 0 deletions packages/ts-morph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="10.0.2"></a>
## [10.0.2](https://github.com/dsherret/ts-morph/compare/10.0.1...10.0.2) (2021-03-22)

* Reduce dependencies.



<a name="10.0.1"></a>
## [10.0.1](https://github.com/dsherret/ts-morph/compare/10.0.0...10.0.1) (2021-02-24)

Expand Down
4 changes: 2 additions & 2 deletions packages/ts-morph/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-morph",
"version": "10.0.1",
"version": "10.0.2",
"description": "TypeScript compiler wrapper for static analysis and code manipulation.",
"main": "dist/ts-morph.js",
"typings": "lib/ts-morph.d.ts",
Expand Down Expand Up @@ -64,7 +64,7 @@
"all": true
},
"dependencies": {
"@ts-morph/common": "~0.8.1",
"@ts-morph/common": "~0.9.0",
"code-block-writer": "^10.1.1"
},
"devDependencies": {
Expand Down

0 comments on commit 630998d

Please sign in to comment.