fix(build): update bun install command to use --linker isolated in build workflows and module commands

This commit is contained in:
Melvin Chia
2025-11-28 16:43:09 +08:00
parent 8a756b0f86
commit 6a71663236
6 changed files with 6 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ jobs:
bun-version: latest
- name: Install dependencies
run: bun upgrade && bun install
run: bun upgrade && bun install --linker isolated
- name: Type check server
run: bun run forge types server
@@ -45,7 +45,7 @@ jobs:
bun-version: latest
- name: Install dependencies
run: bun upgrade && bun install
run: bun upgrade && bun install --linker isolated
- name: Build client
run: bun run forge build client

View File

@@ -29,7 +29,7 @@ However, as of October 2025, Vercel and Netlify do not yet support Bun v1.3.0 in
In Vercel, head to the project settings, and under the **Build & Development Settings** section, override the **Install Command** to the following:
<Code language="bash">
{`bun upgrade && bun install`}
{`bun upgrade && bun install --linker isolated`}
</Code>
As shown in the image below:

View File

@@ -1,13 +0,0 @@
To install dependencies:
```sh
bun install
```
To run:
```sh
bun run dev
```
open http://localhost:3000

View File

@@ -105,7 +105,7 @@ function installDependencies(): void {
CLILoggingService.progress('Installing dependencies')
try {
executeCommand('bun install', {
executeCommand('bun install --linker isolated', {
stdio: ['ignore', 'ignore', 'ignore'],
exitOnError: false
})

View File

@@ -364,7 +364,7 @@ function initializeGitRepository(modulePath: string): void {
function installDependencies(): void {
CLILoggingService.step('Installing module dependencies...')
executeCommand('bun install', {
executeCommand('bun install --linker isolated', {
cwd: `${process.cwd()}/apps`,
stdio: 'ignore'
})

View File

@@ -91,7 +91,7 @@ async function updateSingleModule(moduleName: string): Promise<void> {
try {
executeCommand(
`cd apps/${moduleName} && git pull origin main && bun install`
`cd apps/${moduleName} && git pull origin main && bun install --linker isolated`
)
if (fs.existsSync(`apps/${moduleName}/server/schema.ts`)) {