Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit b39109a

Browse files
authored
fix-next(projectFilesManager): tsconfig.esm.json -> tsconfig.tns.json (#636)
fixes #637
1 parent d5b1492 commit b39109a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

demo/AngularApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ module.exports = env => {
227227
new AngularCompilerPlugin({
228228
hostReplacementPaths: nsWebpack.getResolver([platform, "tns"]),
229229
entryModule: resolve(appPath, "app.module#AppModule"),
230-
tsConfigPath: join(__dirname, "tsconfig.esm.json"),
230+
tsConfigPath: join(__dirname, "tsconfig.tns.json"),
231231
skipCodeGeneration: !aot,
232232
sourceMap: !!sourceMap,
233233
}),

demo/TypeScriptApp/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ module.exports = env => {
173173
test: /\.ts$/,
174174
use: {
175175
loader: "awesome-typescript-loader",
176-
options: { configFileName: "tsconfig.esm.json" },
176+
options: { configFileName: "tsconfig.tns.json" },
177177
}
178178
},
179179
]

projectFilesManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ function copyTemplate(templateName, destinationPath) {
5858

5959
function getProjectTemplates(projectDir) {
6060
const WEBPACK_CONFIG_NAME = "webpack.config.js";
61-
const TSCONFIG_ESM_NAME = "tsconfig.esm.json";
61+
const TSCONFIG_TNS_NAME = "tsconfig.tns.json";
6262

6363
let templates;
6464
if (isAngular({projectDir})) {
65-
templates = getAngularTemplates(WEBPACK_CONFIG_NAME, TSCONFIG_ESM_NAME);
65+
templates = getAngularTemplates(WEBPACK_CONFIG_NAME, TSCONFIG_TNS_NAME);
6666
} else if (isTypeScript({projectDir})) {
67-
templates = getTypeScriptTemplates(WEBPACK_CONFIG_NAME, TSCONFIG_ESM_NAME);
67+
templates = getTypeScriptTemplates(WEBPACK_CONFIG_NAME, TSCONFIG_TNS_NAME);
6868
} else {
6969
templates = getJavaScriptTemplates(WEBPACK_CONFIG_NAME);
7070
}

0 commit comments

Comments
 (0)