emitpath

package
v0.1.0-dev.52 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package emitpath computes output file paths for transpiled Lua files. Ported from: src/transpilation/transpiler.ts (getEmitPath, getEmitPathRelativeToOutDir)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputPath

func OutputPath(sourceFile, sourceRoot, outDir, extension string) string

OutputPath computes the output file path for a transpiled source file. sourceFile is the absolute path to the .ts/.tsx source. sourceRoot is the rootDir (or project/config directory if rootDir is unset). outDir is the output directory (absolute or empty for same-as-source). extension is the output extension without leading dot (default "lua").

func RelativeToOutDir

func RelativeToOutDir(sourceFile, sourceRoot, extension string) string

RelativeToOutDir computes the output path relative to outDir. This is the path component that gets joined with outDir to form the full output path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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