Skip to content

Commit

Permalink
feat(update): add typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 5, 2018
1 parent f1623ed commit 53505b9
Show file tree
Hide file tree
Showing 6 changed files with 17,998 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/update/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
2 changes: 2 additions & 0 deletions packages/update/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tsconfig.json
*.ts
10 changes: 4 additions & 6 deletions packages/update/index.js → packages/update/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

const defaultGenerator = require("@webpack-cli/generators/update-generator");
const modifyConfigHelper = require("@webpack-cli/utils/modify-config-helper");
import defaultGenerator from "@webpack-cli/generators/update-generator";
import modifyConfigHelper from "@webpack-cli/utils/modify-config-helper";

/**
* Is called and returns a scaffolding instance, updating properties
Expand All @@ -11,6 +9,6 @@ const modifyConfigHelper = require("@webpack-cli/utils/modify-config-helper");
*
*/

module.exports = function() {
export default function() {
return modifyConfigHelper("update", defaultGenerator);
};
}
Loading

0 comments on commit 53505b9

Please sign in to comment.