Skip to content

Commit

Permalink
feat(remove): add typescript support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvdutt committed Jul 5, 2018
1 parent 00df5ba commit f1623ed
Show file tree
Hide file tree
Showing 6 changed files with 17,983 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/remove/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
2 changes: 2 additions & 0 deletions packages/remove/.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/remove/index.js → packages/remove/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use strict";

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

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

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

0 comments on commit f1623ed

Please sign in to comment.