Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
0665caa
chore: changeset
florian-lefebvre Sep 15, 2025
845172f
feat: enable prerelease mode (#14384)
florian-lefebvre Sep 15, 2025
d70d99b
Merge branch 'main' into next
ascorbic Sep 18, 2025
0758881
Delete .changeset/spotty-toes-know.md
florian-lefebvre Sep 19, 2025
6f78172
Merge branch 'main' into next
florian-lefebvre Sep 19, 2025
c69c7de
Remove deprecated ViewTransitions component (#14400)
ellielok Sep 19, 2025
73ba60f
Merge branch 'main' into next
florian-lefebvre Sep 22, 2025
ab230f5
Merge branch 'main' into next
florian-lefebvre Sep 22, 2025
1672c5e
Merge branch 'main' into next
florian-lefebvre Sep 23, 2025
2570c4b
feat!: clean up internal symbols usage (#14420)
florian-lefebvre Sep 23, 2025
3bda3ce
fix: remove legacy content collections (#14407)
ascorbic Sep 23, 2025
24380c7
Merge branch 'main' into next
florian-lefebvre Sep 23, 2025
51a697d
chore: fix content collection tests (#14431)
ascorbic Sep 24, 2025
b45b7a4
Merge branch 'main' into next
florian-lefebvre Sep 24, 2025
861b9cc
feat!: remove emitESMImage() (#14426)
florian-lefebvre Sep 24, 2025
af1c11f
Merge branch 'main' into next
florian-lefebvre Sep 24, 2025
3530bdc
Merge branch 'main' into next
florian-lefebvre Sep 24, 2025
4f11510
feat(astro)!: update `i18n.redirectToDefaultLocale` default (#14406)
florian-lefebvre Sep 25, 2025
df6d2d7
feat!: remove Astro.glob (#14421)
florian-lefebvre Sep 25, 2025
e131261
feat!: drop node 18 and 20 (#14427)
florian-lefebvre Sep 25, 2025
36c3d72
Merge branch 'main' into next
florian-lefebvre Sep 25, 2025
eea321b
feat: update minimum node version to 22.12 (#14436)
florian-lefebvre Sep 25, 2025
257c9af
Merge branch 'main' into next
florian-lefebvre Sep 26, 2025
eeb7a04
Merge branch 'main' into next
florian-lefebvre Sep 27, 2025
ecb0b98
feat: update vite (#14445)
florian-lefebvre Sep 29, 2025
ece667a
feat: cleanup integration api (#14446)
florian-lefebvre Sep 29, 2025
b1d87ec
feat: deprecate Astro in getStaticPaths (#14432)
florian-lefebvre Sep 29, 2025
87a3e87
Merge branch 'main' into next
ascorbic Sep 29, 2025
117f22e
fix: deps
florian-lefebvre Sep 29, 2025
55a1a91
feat: deprecate import.meta.env.ASSETS_PREFIX (#14461)
florian-lefebvre Oct 1, 2025
049da87
feat!: trailing slash never for endpoints with file extension (#14457)
florian-lefebvre Oct 1, 2025
4b60420
Merge branch 'main' into next
florian-lefebvre Oct 2, 2025
564ba76
feat: remove deprecated experimental errors (#14474)
florian-lefebvre Oct 2, 2025
9fdfd4c
feat: clean deprecated APIs (#14462)
florian-lefebvre Oct 2, 2025
36a461b
feat: stabilize experimental preserveScriptOrder option (#14480)
florian-lefebvre Oct 3, 2025
805ebc9
feat: remove renderScript option (#14479)
florian-lefebvre Oct 3, 2025
25fe093
feat!: remove rewrite from action context (#14477)
florian-lefebvre Oct 3, 2025
6f67c6e
feat: stabilize static import meta env (#14485)
florian-lefebvre Oct 3, 2025
7bcec81
Merge branch 'main' into next
florian-lefebvre Oct 7, 2025
ae36ca2
Merge branch 'main' into next
florian-lefebvre Oct 8, 2025
f135f5b
Update next (#14530)
florian-lefebvre Oct 13, 2025
d6ba12a
Merge branch 'main' into next
florian-lefebvre Oct 13, 2025
c1b6021
Merge branch 'main' into next
florian-lefebvre Oct 16, 2025
8d61777
fix: remove impossible i18n case (#14547)
florian-lefebvre Oct 16, 2025
727b0a2
feat!: stabilize experimental.headingIdCompat (#14494)
florian-lefebvre Oct 16, 2025
946a5e5
Merge branch 'main' into next
ascorbic Oct 16, 2025
23f2801
Merge branch 'main' into next
florian-lefebvre Oct 16, 2025
a12c431
Merge branch 'main' into next
florian-lefebvre Oct 20, 2025
82dbb56
fix: test
florian-lefebvre Oct 21, 2025
bd77659
Merge branch 'main' into next
florian-lefebvre Oct 23, 2025
669ca5b
fix!: disallow number in getStaticPaths params (#14586)
ocavue Oct 27, 2025
1479a0b
Merge branch 'main' into next
florian-lefebvre Oct 28, 2025
dfb51d4
feat(assets): Always allow cropping and never upscale (#14629)
Princesseuh Oct 31, 2025
9c282b5
Stabilize live collections (#14550)
ascorbic Nov 4, 2025
c2d2ae4
Merge branch 'main' into next
florian-lefebvre Nov 5, 2025
5a9d8a0
fix: rename config file
florian-lefebvre Nov 5, 2025
a967dae
fix: skip node version check in language tools tests (#14717)
florian-lefebvre Nov 6, 2025
d23e6b4
feat(language-server)!: remove support for Astro.glob() (#14720)
florian-lefebvre Nov 7, 2025
631e0fb
feat: run release workflow on next branch (#14718)
Princesseuh Nov 7, 2025
4bb44e4
Merge branch 'main' into next
florian-lefebvre Nov 7, 2025
1a1bd9b
Shortens changesets for alpha release (#14731)
sarah11918 Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .changeset/beige-clowns-read.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes `entryPoints` on `astro:build:ssr` hook (Integration API) - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-entrypoints-on-astrobuildssr-hook-integration-api))
5 changes: 5 additions & 0 deletions .changeset/busy-olives-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes the deprecated `emitESMImage()` function - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-emitesmimage))
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "origin/main",
"baseBranch": "origin/next",
"updateInternalDependencies": "patch",
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
Expand Down
5 changes: 5 additions & 0 deletions .changeset/cuddly-worlds-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes `routes` on `astro:build:done` hook (Integration API) - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-routes-on-astrobuilddone-hook-integration-api))
5 changes: 5 additions & 0 deletions .changeset/cyan-crews-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes the old `app.render()` signature (Adapter API) - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-old-apprender-signature-adapter-api))
5 changes: 5 additions & 0 deletions .changeset/dull-mangos-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes `prefetch()` `with` option - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-prefetch-with-option))
5 changes: 5 additions & 0 deletions .changeset/fast-bushes-fall.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Deprecates `Astro` in `getStaticPaths()` - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#deprecated-astro-in-getstaticpaths))
5 changes: 5 additions & 0 deletions .changeset/giant-areas-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Updates trailing slash behavior of endpoint URLs - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-endpoints-with-a-file-extension-cannot-be-accessed-with-a-trailing-slash))
8 changes: 8 additions & 0 deletions .changeset/good-camels-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@astrojs/markdoc': minor
'@astrojs/mdx': major
'@astrojs/markdown-remark': major
'astro': major
---

Updates Markdown heading ID generation - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-markdown-heading-id-generation))
5 changes: 5 additions & 0 deletions .changeset/green-garlics-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Deprecates `import.meta.env.ASSETS_PREFIX` - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#deprecated-importmetaenvassets_prefix))
5 changes: 5 additions & 0 deletions .changeset/honest-deer-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Changes the values allowed in `params` returned by `getStaticPaths()` - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-getstaticpaths-cannot-return-params-of-type-number))
6 changes: 6 additions & 0 deletions .changeset/kind-pears-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'astro': major
'@astrojs/language-server': patch
---

Removes the previously deprecated `Astro.glob()` - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-astroglob))
31 changes: 31 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"astro": "5.13.7",
"@astrojs/prism": "3.3.0",
"@astrojs/rss": "4.0.12",
"create-astro": "4.13.1",
"@astrojs/db": "0.17.2",
"@astrojs/alpinejs": "0.4.9",
"@astrojs/cloudflare": "12.6.8",
"@astrojs/markdoc": "0.15.6",
"@astrojs/mdx": "4.3.5",
"@astrojs/netlify": "6.5.10",
"@astrojs/node": "9.4.3",
"@astrojs/partytown": "2.1.4",
"@astrojs/preact": "4.1.1",
"@astrojs/react": "4.3.1",
"@astrojs/sitemap": "3.5.1",
"@astrojs/solid-js": "5.1.1",
"@astrojs/svelte": "7.1.1",
"@astrojs/vercel": "8.2.7",
"@astrojs/vue": "5.1.1",
"@astrojs/internal-helpers": "0.7.2",
"@astrojs/markdown-remark": "6.3.6",
"@astrojs/telemetry": "3.3.0",
"@astrojs/underscore-redirects": "1.0.0",
"@astrojs/upgrade": "0.6.2"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/pretty-forks-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes the `handleForms` prop for the `<ClientRouter />` component - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-handleforms-prop-for-the-clientrouter--component))
14 changes: 14 additions & 0 deletions .changeset/puny-poems-create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
'@astrojs/markdoc': minor
'@astrojs/preact': major
'@astrojs/svelte': major
'@astrojs/react': major
'@astrojs/solid-js': major
'@astrojs/mdx': major
'create-astro': major
'@astrojs/prism': major
'@astrojs/upgrade': minor
'astro': major
---

Increases minimum Node.js version to 22.12.0 - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#node-22))
5 changes: 5 additions & 0 deletions .changeset/rich-horses-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes the deprecated `<ViewTransitions />` component - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-viewtransitions--component))
5 changes: 5 additions & 0 deletions .changeset/sad-lines-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Changes the default routing configuration value of `i18n.routing.redirectToDefaultLocale` from `true` to `false` - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-i18nroutingredirecttodefaultlocale-default-value))
5 changes: 5 additions & 0 deletions .changeset/six-women-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes `rewrite()` from Actions context - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-rewrite-from-actions-context))
77 changes: 77 additions & 0 deletions .changeset/stale-ads-see.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
'astro': minor
---

Adds support for live content collections

Live content collections are a new type of [content collection](https://docs.astro.build/en/guides/content-collections/) that fetch their data at runtime rather than build time. This allows you to access frequently updated data from CMSs, APIs, databases, or other sources using a unified API, without needing to rebuild your site when the data changes.

#### Live collections vs build-time collections

In Astro 5.0, the content layer API added support for adding diverse content sources to content collections. You can create loaders that fetch data from any source at build time, and then access it inside a page via `getEntry()` and `getCollection()`. The data is cached between builds, giving fast access and updates.

However, there was no method for updating the data store between builds, meaning any updates to the data needed a full site deploy, even if the pages are rendered on demand. This meant that content collections were not suitable for pages that update frequently. Instead, these pages tended to access the APIs directly in the frontmatter. This worked, but it led to a lot of boilerplate, and meant users didn't benefit from the simple, unified API that content loaders offer. In most cases, users tended to individually create loader libraries shared between pages.

Live content collections ([introduced experimentally in Astro 5.10](https://astro.build/blog/live-content-collections-deep-dive/)) solve this problem by allowing you to create loaders that fetch data at runtime, rather than build time. This means that the data is always up-to-date, without needing to rebuild the site.

#### How to use

To use live collections, create a new `src/live.config.ts` file (alongside your `src/content.config.ts` if you have one) to define your live collections with a live content loader using the new `defineLiveCollection()` function from the `astro:content` module:

```ts title="src/live.config.ts"
import { defineLiveCollection } from 'astro:content';
import { storeLoader } from '@mystore/astro-loader';

const products = defineLiveCollection({
loader: storeLoader({
apiKey: process.env.STORE_API_KEY,
endpoint: 'https://api.mystore.com/v1',
}),
});

export const collections = { products };
```

You can then use the `getLiveCollection()` and `getLiveEntry()` functions to access your live data, along with error handling (since anything can happen when requesting live data!):

```astro
---
import { getLiveCollection, getLiveEntry, render } from 'astro:content';
// Get all products
const { entries: allProducts, error } = await getLiveCollection('products');
if (error) {
// Handle error appropriately
console.error(error.message);
}

// Get products with a filter (if supported by your loader)
const { entries: electronics } = await getLiveCollection('products', { category: 'electronics' });

// Get a single product by ID (string syntax)
const { entry: product, error: productError } = await getLiveEntry('products', Astro.params.id);
if (productError) {
return Astro.redirect('/404');
}

// Get a single product with a custom query (if supported by your loader) using a filter object
const { entry: productBySlug } = await getLiveEntry('products', { slug: Astro.params.slug });
const { Content } = await render(product);
---
<h1>{product.data.title}</h1>
<Content />
```

#### Upgrading from experimental live collections

If you were using the experimental feature, you must remove the `experimental.liveContentCollections` flag from your `astro.config.*` file:

```diff
export default defineConfig({
// ...
- experimental: {
- liveContentCollections: true,
- },
});
```

No other changes to your project code are required as long as you have been keeping up with Astro 5.x patch releases, which contained breaking changes to this experimental feature. If you experience problems with your live collections after upgrading to Astro v6 and removing this flag, please review the [Astro CHANGELOG from 5.10.2](https://github.com/withastro/astro/blob/main/packages/astro/CHANGELOG.md#5102) onwards for any potential updates you might have missed, or follow the [current v6 documentation for live collections](https://docs.astro.build/en/guides/content-collections/).
16 changes: 16 additions & 0 deletions .changeset/tricky-donkeys-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@astrojs/cloudflare': major
'@astrojs/alpinejs': minor
'@astrojs/markdoc': minor
'@astrojs/netlify': major
'@astrojs/preact': major
'@astrojs/svelte': major
'@astrojs/react': major
'@astrojs/solid-js': major
'@astrojs/mdx': major
'@astrojs/vue': major
'astro': major
'@astrojs/db': minor
---

Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#vite-70))
5 changes: 5 additions & 0 deletions .changeset/wet-suits-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Updates `import.meta.env` values to always be inlined - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-importmetaenv-values-are-always-inlined))
5 changes: 5 additions & 0 deletions .changeset/whole-geckos-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Updates `<script>` and `<style>` tags to render in the order they are defined - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#changed-script-and-style-tags-are-rendered-in-the-order-they-are-defined))
5 changes: 5 additions & 0 deletions .changeset/young-banks-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': major
---

Removes legacy content collection support - ([v6 upgrade guidance](https://deploy-preview-12322--astro-docs-2.netlify.app/en/guides/upgrade-to/v6/#removed-legacy-content-collections))
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22

# Install playwright
RUN npm install -g @playwright/test
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/examples.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-18
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22

# Install latest pnpm
RUN npm install -g pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/---01-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body:
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.

✅ I am using the **latest version of Astro** and all plugins.
✅ I am using a version of Node that Astro supports (`v18.20.8`, `v20.3.0`, `v22.0.0` or higher.)
✅ I am using a version of Node that Astro supports (`v22.12.0` or higher.)
- type: textarea
id: astro-info
attributes:
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
strategy:
matrix:
OS: [ubuntu-latest, macos-14, windows-2025]
NODE_VERSION: [18, 20, 22]
NODE_VERSION: [22, 24]
TEST_SUITE:
- { name: astro, script: 'pnpm run test:astro' }
- { name: integrations, script: 'pnpm run test:integrations' }
Expand All @@ -119,13 +119,9 @@ jobs:
# Windows and use one of the older Node versions.
exclude:
- os: macos-14
NODE_VERSION: 18
- os: macos-14
NODE_VERSION: 20
- os: windows-2025
NODE_VERSION: 18
NODE_VERSION: 22
- os: windows-2025
NODE_VERSION: 20
NODE_VERSION: 22
fail-fast: false
env:
NODE_VERSION: ${{ matrix.NODE_VERSION }}
Expand Down Expand Up @@ -274,11 +270,11 @@ jobs:
with:
repository: withastro/docs
path: smoke/docs
# For a commit event on the `next` branch (`ref_name`), use the `5.0.0-beta` branch.
# For a pull_request event merging into the `next` branch (`base_ref`), use the `5.0.0-beta` branch.
# For a commit event on the `next` branch (`ref_name`), use the `v6` branch.
# For a pull_request event merging into the `next` branch (`base_ref`), use the `v6` branch.
# NOTE: For a pull_request event, the `ref_name` is something like `<pr-number>/merge` than the branch name.
# NOTE: Perhaps docs repo should use a consistent `next` branch in the future.
ref: ${{ (github.ref_name == 'next' || github.base_ref == 'next') && '5.0.0-beta' || 'main' }}
ref: ${{ (github.ref_name == 'next' || github.base_ref == 'next') && 'v6' || 'main' }}

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- next
- "1-legacy"
- "2-legacy"
- "3-legacy"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.20.8
22.20.0
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ We welcome contributions of any size and skill level. As an open source project,
### Prerequisites

```shell
node: "^>=18.20.8"
pnpm: "^9.12.1"
node: "^>=22.12.0"
pnpm: "^10.17.0"
# otherwise, your build will fail
```

Expand Down
2 changes: 1 addition & 1 deletion benchmark/bench/_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path';

const astroPkgPath = createRequire(import.meta.url).resolve('astro/package.json');

export const astroBin = path.resolve(astroPkgPath, '../astro.js');
export const astroBin = path.resolve(astroPkgPath, '../bin/astro.mjs');

/** @typedef {{ avg: number, stdev: number, max: number }} Stat */

Expand Down
Loading
Loading