Skip to content

Commit

Permalink
reduce bun usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Aug 7, 2024
1 parent 1a6bb99 commit 9605338
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scripts/prepare/addon-bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
} = (await fs.readJson(join(cwd, 'package.json'))) as PackageJsonWithBundlerConfig;

if (pre) {
await exec(`bun ${pre}`, { cwd });
await exec(`jiti ${pre}`, { cwd });
}

const reset = hasFlag(flags, 'reset');
Expand Down Expand Up @@ -204,7 +204,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
);

if (post) {
await exec(`bun ${post}`, { cwd }, { debug: true });
await exec(`jiti ${post}`, { cwd }, { debug: true });
}

console.log('done');
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
} = (await fs.readJson(join(cwd, 'package.json'))) as PackageJsonWithBundlerConfig;

if (pre) {
await exec(`bun ${pre}`, { cwd });
await exec(`jiti ${pre}`, { cwd });
}

const reset = hasFlag(flags, 'reset');
Expand Down Expand Up @@ -160,7 +160,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
);

if (post) {
await exec(`bun ${post}`, { cwd }, { debug: true });
await exec(`jiti ${post}`, { cwd }, { debug: true });
}

if (process.env.CI !== 'true') {
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepare/tsc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
} = await fs.readJson(join(cwd, 'package.json'));

if (pre) {
await exec(`bun ${pre}`, { cwd });
await exec(`jiti ${pre}`, { cwd });
}

const reset = hasFlag(flags, 'reset');
Expand Down Expand Up @@ -66,7 +66,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
}

if (post) {
await exec(`bun ${post}`, { cwd }, { debug: true });
await exec(`jiti ${post}`, { cwd }, { debug: true });
}

if (!watch) {
Expand Down

0 comments on commit 9605338

Please sign in to comment.