Skip to content

Commit

Permalink
Update bun (#62)
Browse files Browse the repository at this point in the history
* update bun to 1.0.20

* add changeset
  • Loading branch information
raulfdm authored Dec 26, 2023
1 parent a760a57 commit 76e7f1a
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 25 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-starfishes-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"taco-api": patch
---

update bun to 1.0.20
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.18
bun-version: 1.0.20

- name: Install Dependencies
run: bun install --frozen-lockfile --no-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 1.0.18
bun-version: 1.0.20

- name: Install Dependencies
run: bun install --frozen-lockfile --no-cache
Expand Down
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update -y && apt-get install -y openssl
WORKDIR /app

# Install bun to be available in all stages.
RUN npm install -g [email protected].18
RUN npm install -g [email protected].20

FROM base as installer
# install with devDependencies to be used later
Expand Down
2 changes: 1 addition & 1 deletion apps/api/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apt-get update -y && apt-get install -y openssl

WORKDIR /app

RUN npm install -g [email protected].18
RUN npm install -g [email protected].20

# Setup
COPY package.json bun.lockb ./
Expand Down
6 changes: 3 additions & 3 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"zod": "3.22.4"
},
"devDependencies": {
"bun-types": "1.0.18",
"@types/bun": "1.0.0",
"csvtojson": "2.0.10",
"prisma": "5.7.0",
"typescript": "5.3.3"
},
"packageManager": "[email protected].18",
"packageManager": "[email protected].20",
"engines": {
"bun": "1.0.18"
"bun": "1.0.20"
},
"prisma": {
"seed": "bun run ./src/infrastructure/seed/index.ts",
Expand Down
3 changes: 0 additions & 3 deletions apps/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,5 @@
"dist/generated"
]
},
"types": [
"bun-types" // add Bun global
]
}
}
2 changes: 1 addition & 1 deletion apps/website/src/content/docs/deploy-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Em qualquer plataforma, procure por uma máquina que tenha suporte para aplicaç
Apesar do projeto usar Bun, em uma máquina que tenha Node, você pode instalar Bun via npm:

```bash
npm add -g [email protected].18
npm add -g [email protected].20
```

Instalado o Bun globalmente, agora você pode seguir os passos normais:
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/content/docs/en/deploy-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ On any platform, look for a machine that supports NodeJS applications.
Although the project uses Bun, on a machine that has Node, you can install Bun via npm:

```bash
npm add -g [email protected].18
npm add -g [email protected].20
```

Having installed bun globally, you can now follow the normal steps:
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/content/docs/en/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: "Getting Started"
Before you start the initial setup, you need to have 2 runtimes installed:

- [NodeJS](https://nodejs.org/en) version 20 or higher
- [Bun](https://bun.sh/) version 1.0.18 or higher
- [Bun](https://bun.sh/) version 1.0.20 or higher

Although Bun is the primary runtime, one of the dependencies ([Prisma](https://www.prisma.io/)) still requires Node to generate the initial files.

Expand All @@ -16,7 +16,7 @@ Although Bun is the primary runtime, one of the dependencies ([Prisma](https://w
If you already have Node installed, you can install `bun` via npm:

```bash
npm install -g [email protected].18
npm install -g [email protected].20
```

:::
Expand Down
4 changes: 2 additions & 2 deletions apps/website/src/content/docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ title: "Começando"
Antes de fazer a configuração inicial, você precisa ter 2 runtimes instalados:

- [NodeJS](https://nodejs.org/en) versão 20 ou superior
- [Bun](https://bun.sh/) versão 1.0.18 ou superior
- [Bun](https://bun.sh/) versão 1.0.20 ou superior

Apesar do Bun ser o runtime principal, uma das dependências ([Prisma](https://www.prisma.io/)) ainda precisa do Node para gerar os arquivos iniciais.

Expand All @@ -16,7 +16,7 @@ Apesar do Bun ser o runtime principal, uma das dependências ([Prisma](https://w
Caso já tenha o Node instalado, você pode o `bun` via npm:

```bash
npm install -g [email protected].18
npm install -g [email protected].20
```

:::
Expand Down
Binary file modified bun.lockb
Binary file not shown.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
"devDependencies": {
"@biomejs/biome": "1.4.1",
"@changesets/cli": "2.27.1",
"bun-types": "1.0.18",
"@types/bun": "1.0.0",
"husky": "8.0.3",
"lint-staged": "15.1.0",
"turbo": "1.11.1",
"typescript": "5.3.3"
},
"packageManager": "[email protected].18",
"packageManager": "[email protected].20",
"engines": {
"bun": "1.0.18"
"bun": "1.0.20"
},
"lint-staged": {
"*.{js,ts,json}": "bunx @biomejs/biome check --apply"
Expand Down
11 changes: 5 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"lib": ["ESNext"],
"lib": [
"ESNext"
],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
Expand All @@ -14,9 +16,6 @@
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": true,
"types": [
"bun-types" // add Bun global
]
"allowJs": true
}
}
}

0 comments on commit 76e7f1a

Please sign in to comment.