Skip to content

Commit 4627ea1

Browse files
committedMay 28, 2019
misc(init): small refactor
1 parent 283e089 commit 4627ea1

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed
 
-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
/**
2-
* Application entry point
3-
*/
4-
51
console.log("Hello World from <%= name %>");
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = {
22
compilerOptions: {
3+
allowSyntheticDefaultImports: true,
34
noImplicitAny: true,
45
module: "es6",
56
target: "es5",
6-
jsx: "react",
77
allowJs: true
88
}
99
};

‎packages/generators/utils/language.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,11 @@ export default function language(self, langType) {
8888
if (typeof jsEntryOption === "string") {
8989
tsEntryOption = jsEntryOption.replace(jsExtension, ".ts");
9090
} else if (typeof jsEntryOption === "object") {
91-
Object.keys(jsEntryOption).map((entry) => {
91+
Object.keys(jsEntryOption).forEach((entry) => {
9292
tsEntryOption[entry] = jsEntryOption[entry].replace(jsExtension, ".ts");
9393
});
9494
}
9595
self.configuration.config.webpackOptions.entry = tsEntryOption;
96-
self.log(jsEntryOption.replace(jsExtension, ".ts"), jsEntryOption);
9796
break;
9897
}
9998
}

0 commit comments

Comments
 (0)
Please sign in to comment.