Skip to content

Commit 53505b9

Browse files
committed
feat(update): add typescript support
1 parent f1623ed commit 53505b9

File tree

6 files changed

+17998
-6
lines changed

6 files changed

+17998
-6
lines changed

packages/update/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js

packages/update/.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tsconfig.json
2+
*.ts
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
"use strict";
2-
3-
const defaultGenerator = require("@webpack-cli/generators/update-generator");
4-
const modifyConfigHelper = require("@webpack-cli/utils/modify-config-helper");
1+
import defaultGenerator from "@webpack-cli/generators/update-generator";
2+
import modifyConfigHelper from "@webpack-cli/utils/modify-config-helper";
53

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

14-
module.exports = function() {
12+
export default function() {
1513
return modifyConfigHelper("update", defaultGenerator);
16-
};
14+
}

0 commit comments

Comments
 (0)