To use:
deno add ts-morph@jsr:@ts-morph/ts-morph
import { Project } from "ts-morph";
Or use @ts-morph/bootstrap
:
deno add @ts-morph/bootstrap
import { createProject } from "@ts-morph/bootstrap";
Please note that this is currently only mostly useful for analyzing Node projects. See #950 for details on making it easier to analyze Deno code.
Note: These modules are not tested that well as I have not implemented a way to test both the node and deno modules. Please let me know if you notice any behaviour differences with the node module.
Add Package
deno add jsr:@ts-morph/ts-morph
Import symbol
import * as ts_morph from "@ts-morph/ts-morph";
Import directly with a jsr specifier
import * as ts_morph from "jsr:@ts-morph/ts-morph";