migrate

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2026 License: MIT Imports: 5 Imported by: 0

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

func Convert(tsSource string) (*Result, error)

Convert parses tsSource (the content of an sst.config.ts) and returns the equivalent Go source + any warnings.

func ConvertFile

func ConvertFile(path string) (*Result, error)

ConvertFile is a convenience wrapper that reads the TS file from disk.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL