typescript-to-lua 1.3.3 → 1.3.4

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.
@@ -135,14 +135,14 @@ function resolveFileDependencies(file, context) {
135
135
  dependencies.push(...resolvedDependency.resolvedFiles);
136
136
  diagnostics.push(...resolvedDependency.diagnostics);
137
137
  }
138
- return { resolvedFiles: dependencies, diagnostics };
138
+ return { resolvedFiles: deduplicateResolvedFiles(dependencies), diagnostics };
139
139
  }
140
140
  function resolveDependency(requiringFile, dependency, program, emitHost) {
141
141
  var _a;
142
142
  const options = program.getCompilerOptions();
143
143
  const fileDirectory = path.dirname(requiringFile.fileName);
144
144
  if (options.tstlVerbose) {
145
- console.log(`Resolving "${dependency}" from ${(0, utils_1.normalizeSlashes)(fileDirectory)}`);
145
+ console.log(`Resolving "${dependency}" from ${(0, utils_1.normalizeSlashes)(requiringFile.fileName)}`);
146
146
  }
147
147
  // Check if the import is relative
148
148
  const isRelative = ["/", "./", "../"].some(p => dependency.startsWith(p));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-to-lua",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!",
5
5
  "repository": "https://github.com/TypeScriptToLua/TypeScriptToLua",
6
6
  "homepage": "https://typescripttolua.github.io/",