MCPcopy
hub / github.com/vercel/next-forge / getFiles

Function getFiles

scripts/update.ts:45–52  ·  view source on GitHub ↗
(version: string)

Source from the content-addressed store, hash-verified

43};
44
45const getFiles = (version: string) => {
46 run("git", ["checkout", version]);
47
48 const result = run("git", ["ls-files"], { stdio: "pipe" });
49 const files = result.stdout.toString().trim().split("\n");
50
51 return files;
52};
53
54const updateFiles = async (files: string[]) => {
55 const cwd = process.cwd();

Callers 1

updateFunction · 0.85

Calls 1

runFunction · 0.85

Tested by

no test coverage detected