Skip to content

Instantly share code, notes, and snippets.

View initFabian's full-sized avatar

Fabian Buentello initFabian

View GitHub Profile
// npm i ts-morph
const SOURCE_PATH = '/src/';
const TS_CONFIG_PATH = './tsconfig.json';
const { Project, Node } = require('ts-morph');
async function main() {
const project = new Project({ tsConfigFilePath: TS_CONFIG_PATH });