We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71da5eb commit 8f48e8bCopy full SHA for 8f48e8b
build.ts
@@ -34,10 +34,12 @@ async function gitCloneOverload(name: ParserName) {
34
const repoUrl = `https://github.com/${match[1]}.git`;
35
const commitHash = match[2];
36
37
- console.log(`🗑️ Deleting cached node dep for ${name}`);
+ console.log(`🗑️ Deleting cached node dependency for ${name}`);
38
await exec(`rm -rf ${packagePath}`);
39
- console.log(`⬇️ Cloning ${name} from git (${commitHash})`);
+ console.log(`⬇️ Cloning ${name} from git`);
40
await exec(`git clone ${repoUrl} ${packagePath}`);
41
+ process.chdir(packagePath);
42
+ await exec(`git reset --hard ${commitHash}`);
43
} catch (e) {
44
console.error(`❗Failed to clone git repo for ${name}:\n`, e);
45
hasErrors = true;
0 commit comments