Skip to content

Commit

Permalink
fix: init
Browse files Browse the repository at this point in the history
  • Loading branch information
rharkor committed Nov 24, 2023
1 parent 155bc91 commit 7dc78df
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions scripts/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,49 +86,6 @@ const basicFiles = [
return content
},
},
{
path: ".github/workflows/nextjs_bundle_analysis.yml",
replace: (oldRuntime: IRuntime, newRuntime: IRuntime, content: string) => {
if (oldRuntime.npm === "npm" && newRuntime.npm === "bun") {
content = content.replaceAll(`${oldRuntime.npm} install`, `${newRuntime.npm} install`)
} else if (oldRuntime.npm === "bun" && newRuntime.npm === "npm") {
content = content.replaceAll(`${oldRuntime.npm} install`, `${newRuntime.npm} install`)
}
content = content.replaceAll(`${oldRuntime.npm} `, `${newRuntime.npm} `)
if (oldRuntime.npm === "npm" && newRuntime.npm === "bun") {
content = content.replaceAll(
` - name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18`,
` - name: Install bun
uses: oven-sh/setup-bun@v1`
)
content = content.replaceAll(
` - name: Install dependencies
uses: bahmutov/npm-install@v1`,
` - name: Install dependencies
run: bun install`
)
} else if (oldRuntime.npm === "bun" && newRuntime.npm === "npm") {
content = content.replaceAll(
` - name: Install bun
uses: oven-sh/setup-bun@v1`,
` - name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18`
)
content = content.replaceAll(
` - name: Install dependencies
run: bun install`,
` - name: Install dependencies
uses: bahmutov/npm-install@v1`
)
}
return content
},
},
{
path: ".github/workflows/release.yml",
replace: (oldRuntime: IRuntime, newRuntime: IRuntime, content: string) => {
Expand Down

0 comments on commit 7dc78df

Please sign in to comment.