A tstl (TypeScript to Lua) compiler plugin that transforms standard TypeScript import statements into Package.Require calls compatible with the NanosWorld Lua sandbox. Version 0.0.7 is the latest stable release; the package has no formal release cadence and is likely in early development. It differentiates itself by bridging TypeScript's module system with NanosWorld's custom loading mechanism, enabling developers to write imports naturally while transpiling to package-relative requires.
npm install nanosts-imports-transpilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, tstl configuration, and a basic import that gets transformed to a Package.Require call for NanosWorld.
Always include the .ts extension in import statements; the plugin removes it and appends .lua.
Use explicit imports. Chain of re-exports is untested.
Avoid these patterns if using NanosWorld Package.Require; use explicit variable assignment.
Double-check package name in package.json and import.
Run 'npm install --save-dev nanosts-imports-transpiler' and ensure the transform path in tsconfig.json is exactly the package name.
Verify that the package's default export is a transformer function. Check that you are using the correct version.