Migrate release script to ESM (#11229)

This commit is contained in:
fisker Cheung authored and GitHub committed 2021-07-26 09:24:44 +08:00
1 parent c9e6ada108
commit 84abd0ec22
17 files changed
+119 -139

No files matched your search

@@ -1,7 +1,5 @@
"use strict";
const execa = require("execa");
const { runYarn, runGit, logPromise } = require("../utils.js");
import execa from "execa";
import { runYarn, runGit, logPromise } from "../utils.js";
async function install() {
await execa("rm", ["-rf", "node_modules"]);
@@ -15,6 +13,6 @@ async function install() {
}
}
module.exports = function () {
export default function () {
return logPromise("Installing NPM dependencies", install());
};
}