Skip to content

Commit

Permalink
misc(init): small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed May 28, 2019
1 parent 283e089 commit 4627ea1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/generators/templates/index.js
@@ -1,5 +1 @@
/**
* Application entry point
*/

console.log("Hello World from <%= name %>");
2 changes: 1 addition & 1 deletion packages/generators/templates/tsconfig.json.js
@@ -1,9 +1,9 @@
module.exports = {
compilerOptions: {
allowSyntheticDefaultImports: true,
noImplicitAny: true,
module: "es6",
target: "es5",
jsx: "react",
allowJs: true
}
};
3 changes: 1 addition & 2 deletions packages/generators/utils/language.ts
Expand Up @@ -88,12 +88,11 @@ export default function language(self, langType) {
if (typeof jsEntryOption === "string") {
tsEntryOption = jsEntryOption.replace(jsExtension, ".ts");
} else if (typeof jsEntryOption === "object") {
Object.keys(jsEntryOption).map((entry) => {
Object.keys(jsEntryOption).forEach((entry) => {
tsEntryOption[entry] = jsEntryOption[entry].replace(jsExtension, ".ts");
});
}
self.configuration.config.webpackOptions.entry = tsEntryOption;
self.log(jsEntryOption.replace(jsExtension, ".ts"), jsEntryOption);
break;
}
}

0 comments on commit 4627ea1

Please sign in to comment.