Recommended resources to look at:
- TypeScript AST Viewer or AST Explorer
- TypeScript Compiler Source Code
- TypeScript Compiler Internals
- TypeScript Compiler Notes
Please search though open and closed issues to see if a similar issue already exists. If not, open an issue and try to provide a minimal reproduction if you can.
Pull requests are greatly appreciated!
Please follow these steps:
- Make sure there's an open issue that the PR addresses.
- All PRs that change behavior or fix bugs should have new or updated tests.
- Try to create a set of descriptive commits that each do one focused change.
- Follow the conventional commit specification as this is the one being used.
- When addressing review comments, try to add new commits, rather than modifying previous commits.
git clone https://github.com/jordimarimon/ts-ast-parser.git
cd ts-ast-parser
npm i
npm run build
To run all the tests:
npm run test
You can optionally specify the path (or part of it) from where to search and execute test files:
npm run test -- <test-file-path>
The following example will execute all tests related to functions:
npm run test -- function