Add playground for current version (#18830)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
17 files changed
+412
-199
No files matched your search
Vendored
+7
-1
@@ -1,6 +1,8 @@
|
||||
const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
|
||||
const root = path.join(__dirname, "../../");
|
||||
|
||||
function setupVscode() {
|
||||
const settingsFile = path.join(__dirname, "../../.vscode/settings.json");
|
||||
|
||||
@@ -27,7 +29,11 @@ module.exports = {
|
||||
name: "plugin-prepare",
|
||||
factory: () => ({
|
||||
hooks: {
|
||||
async afterAllInstalled() {
|
||||
async afterAllInstalled({ cwd }) {
|
||||
if (cwd !== root) {
|
||||
return;
|
||||
}
|
||||
|
||||
setupVscode();
|
||||
try {
|
||||
await buildBabelCodeFrameForTest();
|
||||
|
||||
Reference in new issue
Block a user