0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
The web framework for content-driven websites. ️ Star to support our work!
Find a file
Eric Park 3acc65444c
fix: match index files only by using entire basename (#12815)
* fix: match index files only by using entire basename

The previous code would cause file names like `index.xml.ts` to be
treated as index files, when they aren't (the file basename excluding
the extension `.ts` is `index.xml`, and `index` should be the index
file). To match index files only, match the entire first half of the
basename when splitting by the last occurrence of the period/file
extension delimiter.

Pedantically this might not be correct -- i.e. some file extensions
actually span multiple delimiters, like index.tar.gz. But in that case
it's not an index file as well, so I think this is fine.

Fixes #12675

* Add changeset
2025-01-05 19:57:53 +00:00
.changeset fix: match index files only by using entire basename (#12815) 2025-01-05 19:57:53 +00:00
.devcontainer chore(deps): update mcr.microsoft.com/devcontainers/javascript-node docker tag to v1 (#10902) 2024-04-30 11:57:42 +08:00
.github Fix sync-examples workflow (#12562) 2024-12-31 20:34:17 +08:00
.gitpod
.vscode Merge output: hybrid and output: static (#11824) 2024-09-07 01:07:09 +02:00
benchmark chore(deps): update dependency @codspeed/vitest-plugin to v4 (#12742) 2025-01-03 13:36:21 +00:00
examples fix(deps): update dependency @preact/signals to v2 (#12811) 2025-01-03 20:32:00 +08:00
packages fix: match index files only by using entire basename (#12815) 2025-01-05 19:57:53 +00:00
scripts [ci] format 2024-12-11 15:02:16 +00:00
.editorconfig chore: upgrade biome and renovate (#10879) 2024-04-26 07:20:59 +01:00
.git-blame-ignore-revs chore: add formatting commit to blame ignore (#11651) 2024-08-08 12:14:37 +02:00
.gitignore fix: clone session data on .set() (#12883) 2025-01-05 19:54:41 +00:00
.gitpod.yml
.npmrc Remove resolve package and refactor db & studio exports (#11331) 2024-06-26 11:19:16 +02:00
.nvmrc Fix test runner issues by upgrading nodejs version to 18.17.1 (#10672) 2024-04-04 15:08:25 +08:00
.prettierignore chore: use Biome to format JS files (#10788) 2024-04-17 09:37:22 +01:00
biome.jsonc chore: remove unused imports (#12696) 2024-12-11 16:01:06 +01:00
CONTRIBUTING.md Merge branch 'main' into next 2024-10-15 16:19:58 +08:00
eslint.config.js chore: move lint rules to Biome (#12145) 2024-10-08 10:12:40 +01:00
LICENSE
package.json Merge branch 'main' into next 2024-11-27 14:31:09 +00:00
pnpm-lock.yaml chore(deps): update dependency @codspeed/vitest-plugin to v4 (#12742) 2025-01-03 13:36:21 +00:00
pnpm-workspace.yaml Use real filesystem for unit testing (#12172) 2024-10-15 15:34:42 +08:00
prettier.config.js update formatter config (#11640) 2024-08-08 12:12:50 +02:00
README.md chore: remove next badge from readme (#12592) 2024-12-03 11:25:33 +00:00
SECURITY.md Update security flow to report on GitHub (#10328) 2024-03-08 09:58:29 +00:00
SECURITY_CONTACTS Update SECURITY_CONTACTS 2024-03-04 09:36:29 -08:00
STYLE_GUIDE.md Update links to linting and formatting files in the style guide (#12468) 2024-11-18 10:48:54 +00:00
tsconfig.base.json
tsconfig.eslint.json
tsconfig.json
turbo.json Upgrade to turbo v2 (#11705) 2024-08-15 11:41:21 +08:00

Build the web you want


Astro is a website build tool for the modern web —
powerful developer experience meets lightweight output.

main License npm version

Install

The recommended way to install the latest version of Astro is by running the command below:

npm create astro@latest

You can also install Astro manually by running this command instead:

npm install --save-dev astro

Looking for help? Start with our Getting Started guide.

Looking for quick examples? Open a starter project right in your browser.

Documentation

Visit our official documentation.

Support

Having trouble? Get help in the official Astro Discord.

Contributing

New contributors welcome! Check out our Contributors Guide for help getting started.

Join us on Discord to meet other maintainers. We'll help you get your first contribution in no time!

Directory

Package Release Notes
astro astro version
create-astro create-astro version
@astrojs/react @astrojs/react version
@astrojs/preact @astrojs/preact version
@astrojs/solid-js @astrojs/solid version
@astrojs/svelte @astrojs/svelte version
@astrojs/vue @astrojs/vue version
@astrojs/lit @astrojs/lit version
@astrojs/node @astrojs/node version
@astrojs/vercel @astrojs/vercel version
@astrojs/cloudflare @astrojs/cloudflare version
@astrojs/partytown @astrojs/partytown version
@astrojs/sitemap @astrojs/sitemap version
@astrojs/tailwind @astrojs/tailwind version
@astrojs/alpinejs @astrojs/alpinejs version
@astrojs/mdx @astrojs/mdx version
@astrojs/db @astrojs/db version
@astrojs/rss @astrojs/rss version
@astrojs/netlify @astrojs/netlify version

CII Best Practices

Several official projects are maintained outside of this repo:

Project Repository
@astrojs/compiler withastro/compiler
Astro Language Tools withastro/language-tools

Sponsors

Astro is free, open source software made possible by these wonderful sponsors.

❤️ Sponsor Astro! ❤️

Astro's sponsors.