@jackctaylor/roblox-ts 3.0.0-projectrefs.1 → 3.0.0-projectrefs.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -163,7 +163,13 @@ function getImportParts(state, sourceFile, moduleSpecifier) {
163
163
  moduleOutPath = modulePathTranslator.getImportPath(sourcePath);
164
164
  }
165
165
  else {
166
- moduleOutPath = virtualPath;
166
+ if (virtualPath.endsWith(constants_1.DTS_EXT)) {
167
+ moduleOutPath =
168
+ virtualPath.slice(0, -constants_1.DTS_EXT.length) + (modulePathTranslator.useLuauExtension ? ".luau" : ".lua");
169
+ }
170
+ else {
171
+ moduleOutPath = virtualPath;
172
+ }
167
173
  }
168
174
  const moduleRbxPath = state.rojoResolver.getRbxPathFromFilePath(moduleOutPath);
169
175
  if (!moduleRbxPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackctaylor/roblox-ts",
3
- "version": "3.0.0-projectrefs.1",
3
+ "version": "3.0.0-projectrefs.2",
4
4
  "description": "A TypeScript-to-Luau Compiler for Roblox",
5
5
  "main": "out/CLI/index.js",
6
6
  "repository": {