ts-sst-plugin
v1.0.4
Published
TypeScript SST Plugin
Downloads
1,172
Readme
What is this?
This is a TypeScript plugin for SST that enables 'Go to Definition' for your SST config.
How does it work?
It works by finding any instance of certain path targets in your config files and finds the definition from that path in your codebase. The current targets are:
handler: 'path/to/function.handler'
.subscribe('path/to/dynamodb/subscriber')
path: 'path/to/web/app/root'
(jumps to package.json)
How do I use it?
- Install the plugin
npm i -D ts-sst-plugin
- Configure the plugin in your
tsconfig.json
{
"compilerOptions": {
"plugins": [{ "name": "ts-sst-plugin" }]
}
}
- If your are using VS Code, configure it to use your workspace TypeScript version.
Cmd + Shift + p
-> TypeScript: Select TypeScript Version...
-> Use Workspace Version