Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
swc override
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 12, 2023
1 parent 90d33c4 commit c208572
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) {
await testCommand?.(pkg.scripts);
}
const overrides = options.overrides || {};
overrides["@swc/core"] = path.join(swcPath, "node_modules", "@swc", "core");
await applyPackageOverrides(dir, pkg, overrides);
await beforeBuildCommand?.(pkg.scripts);
await buildCommand?.(pkg.scripts);
Expand Down Expand Up @@ -456,4 +457,9 @@ export function dirnameFrom(url: string) {
return path.dirname(fileURLToPath(url));
}

export async function overrideSwc() {}
export async function installSwc({ version }: { version: string }) {
cd(swcPath);
const install = getCommand("pnpm", "install", [`@swc/core@${version}`]);

await $`${install}`;
}

0 comments on commit c208572

Please sign in to comment.