From 2ade758bec107d69eacdad5be6b1765eaa2920f7 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Sat, 6 Jan 2024 22:58:24 -0500 Subject: [PATCH] chore: moved to bun for netlify dev and build commands --- README.md | 14 +++++++------- netlify.toml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d7c8992..5f76d07 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ All commands are run from the root of the project, from a terminal: | Command | Action | | :------------------------ | :----------------------------------------------------------------------------------------------------------------- | -| `npm install` | Installs dependencies | -| `npm run dev` | Starts local dev server at `localhost:4321` as well as partykit on `localhost:1999` | +| `bun install` | Installs dependencies | +| `bun run dev` | Starts local dev server at `localhost:4321` as well as partykit on `localhost:1999` | | `ntl dev` | Starts Netlify integration along with local dev server at `localhost:8888` as well as partykit on `localhost:1999` | -| `npm run build` | Build your production site to `./dist/` | -| `npm run preview` | Preview your build locally, before deploying | -| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | -| `npm run astro -- --help` | Get help using the Astro CLI | +| `bun run build` | Build your production site to `./dist/` | +| `bun run preview` | Preview your build locally, before deploying | +| `bun run astro ...` | Run CLI commands like `astro add`, `astro check` | +| `bun run astro -- --help` | Get help using the Astro CLI | -If you plan to use Netlify, you need to install the [Netlify CLI](https://docs.netlify.com/cli/get-started/) to run `ntl dev`. +If you plan to use Netlify, you need to install the [Netlify CLI](https://docs.netlify.com/cli/get-started/) to run `ntl dev` as well as [bun](https://bun.sh/) which the netlify dev and build commands use. ## 👀 Want to learn more about Astro? diff --git a/netlify.toml b/netlify.toml index c11f3ac..1e6582c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,8 +1,8 @@ [dev] -command = "npm run dev" +command = "bun run dev" [build] -command = "npm run build" +command = "bun run build" functions = "netlify/functions" publish = "dist"