mirror of
https://github.com/Lifeforge-app/lifeforge.git
synced 2026-06-28 06:46:24 +00:00
fix(build): update bun install command to use --linker isolated in build workflows and module commands
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
To install dependencies:
|
||||
|
||||
```sh
|
||||
bun install
|
||||
```
|
||||
|
||||
To run:
|
||||
|
||||
```sh
|
||||
bun run dev
|
||||
```
|
||||
|
||||
open http://localhost:3000
|
||||
@@ -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
|
||||
})
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
|
||||
@@ -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`)) {
|
||||
|
||||
Reference in New Issue
Block a user