Update babel to v8.0.0-rc.1 (#18822)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker Cheung <lionkay@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
21 files changed
+301
-177
No files matched your search
Vendored
+36
@@ -0,0 +1,36 @@
|
||||
const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
|
||||
function setupVscode() {
|
||||
const settingsFile = path.join(__dirname, "../../.vscode/settings.json");
|
||||
|
||||
const settingsExampleFile = path.join(
|
||||
__dirname,
|
||||
"../../.vscode/settings.example.json",
|
||||
);
|
||||
|
||||
if (fs.existsSync(settingsFile) || !fs.existsSync(settingsExampleFile)) {
|
||||
return;
|
||||
}
|
||||
|
||||
fs.copyFileSync(settingsExampleFile, settingsFile);
|
||||
}
|
||||
|
||||
async function buildBabelCodeFrameForTest() {
|
||||
const { buildBabelCodeFrameForTest } =
|
||||
await import("../../scripts/build-babel-code-frame-for-test.js");
|
||||
|
||||
await buildBabelCodeFrameForTest();
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
name: "plugin-prepare",
|
||||
factory: () => ({
|
||||
hooks: {
|
||||
async afterAllInstalled() {
|
||||
setupVscode();
|
||||
await buildBabelCodeFrameForTest();
|
||||
},
|
||||
},
|
||||
}),
|
||||
};
|
||||
Reference in new issue
Block a user