Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
25
third-party/vendor/deno_ast/scripts/01_setup.ts
vendored
Normal file
25
third-party/vendor/deno_ast/scripts/01_setup.ts
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||||
|
||||
import { Repos } from "./repos.ts";
|
||||
import { $ } from "./deps.ts";
|
||||
|
||||
const repos = await Repos.load();
|
||||
|
||||
// Ensure repos are latest main
|
||||
for (const repo of repos.nonDenoAstRepos()) {
|
||||
$.logStep("Setting up", `${repo.name}...`);
|
||||
if (await repo.hasLocalChanges()) {
|
||||
throw new Error(
|
||||
`Repo ${repo.name} had local changes. Please resolve this.`,
|
||||
);
|
||||
}
|
||||
$.logGroup();
|
||||
$.logStep("Switching to main...");
|
||||
await repo.command("git switch main");
|
||||
$.logStep("Pulling upstream main...");
|
||||
await repo.command("git pull upstream main");
|
||||
$.logGroupEnd();
|
||||
}
|
||||
|
||||
// Update the repos to refer to local versions of each other
|
||||
await repos.toLocalSource();
|
||||
Loading…
Add table
Add a link
Reference in a new issue