@openpkg-ts/sdk 0.54.6 → 0.54.7
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.
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2464,6 +2464,9 @@ function createProgram(options) {
|
|
|
2464
2464
|
const configFile = ts3.readConfigFile(configPath, ts3.sys.readFile);
|
|
2465
2465
|
const parsedConfig = ts3.parseJsonConfigFileContent(configFile.config, ts3.sys, path5.dirname(configPath));
|
|
2466
2466
|
compilerOptions = { ...compilerOptions, ...parsedConfig.options };
|
|
2467
|
+
if (parsedConfig.options.module !== undefined && parsedConfig.options.moduleResolution === undefined) {
|
|
2468
|
+
delete compilerOptions.moduleResolution;
|
|
2469
|
+
}
|
|
2467
2470
|
additionalRootFiles = resolveProjectReferences(configPath, parsedConfig);
|
|
2468
2471
|
let sourceFiles = parsedConfig.fileNames.filter((f) => !f.includes(".test.") && !f.includes(".spec.") && !f.includes("/dist/") && !f.includes("/node_modules/"));
|
|
2469
2472
|
if (/\.d\.[cm]?ts$/.test(entryFile)) {
|