Skip to content

Commit 0d30e21

Browse files
Fix CI build error in gulpfile.js: async funcitons are not supported in node v6
1 parent e7c7f01 commit 0d30e21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gulpfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ ${moduleHeader}
2121
export const PACKAGE_VERSION = "[VERSION]";
2222
`;
2323

24-
async function setVersion() {
24+
function setVersion(cb) {
2525
var pkg = require("./package.json");
2626
var fs = require("fs");
2727
fs.writeFileSync("src/Version.ts", versionFile.replace("[VERSION]", pkg.version));
28+
cb();
2829
}
2930

30-
exports.setVersion = series(setVersion);
31+
exports.setVersion = setVersion;

0 commit comments

Comments
 (0)