Documentation
¶
Overview ¶
Package migrate converts an existing sst.config.ts to sst.config.go. It handles the most common SST v3 patterns. For exotic patterns it emits a TODO comment so you know exactly what needs manual attention.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
GoSource string // Generated sst.config.go content
Warnings []string // Patterns that need manual review
Unsupported []string // Patterns the migrator could not convert
}
Result is the output of a migration run.
func Convert ¶
Convert parses tsSource (the content of an sst.config.ts) and returns the equivalent Go source + any warnings.
func ConvertFile ¶
ConvertFile is a convenience wrapper that reads the TS file from disk.
Click to show internal directories.
Click to hide internal directories.