Skip to content

Commit e90384c

Browse files
Revert "Use moduleResolution classic when --syncAllFiles option is not specified"
This reverts commit 3d8d32f.
1 parent 4e07e01 commit e90384c

File tree

4 files changed

+2
-9
lines changed

4 files changed

+2
-9
lines changed

bin/ns-upgrade-tsconfig

100755100644
File mode changed.

lib/before-prepare.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ module.exports = function ($logger, $projectData, $options, hookArgs) {
1111
}
1212

1313
var release = $options.release || appFilesUpdaterOptions.release;
14-
var watchAllFiles = ($options && $options.syncAllFiles) || appFilesUpdaterOptions.watchAllFiles;
15-
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir, { release, watchAllFiles });
14+
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir, { release });
1615
}

lib/compiler.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ function runTypeScriptCompiler(logger, projectDir, options) {
3535
nodeArgs.push('--inlineSourceMap', '--inlineSources');
3636
}
3737

38-
if (!options.watchAllFiles) {
39-
nodeArgs.push('--moduleResolution', 'classic');
40-
}
41-
4238
logger.trace(process.execPath, nodeArgs.join(' '));
4339
tsc = spawn(process.execPath, nodeArgs);
4440

lib/watch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ module.exports = function ($logger, $projectData, $errors, hookArgs) {
99
}
1010
}
1111

12-
const watchAllFiles = hookArgs && hookArgs.config && hookArgs.config.appFilesUpdaterOptions && hookArgs.config.appFilesUpdaterOptions.watchAllFiles;
13-
14-
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir, { watch: true, release: $projectData.$options.release, watchAllFiles: watchAllFiles });
12+
return compiler.runTypeScriptCompiler($logger, $projectData.projectDir, { watch: true, release: $projectData.$options.release });
1513
}

0 commit comments

Comments
 (0)