From 48538211edfc37025b92e4e0da1a0d803939576c Mon Sep 17 00:00:00 2001 From: Szymon Chmal Date: Wed, 12 Jun 2024 12:52:07 +0200 Subject: [PATCH] chore: add missing files --- .../node_modules/fake-astro-library/404.astro | 4 ++++ .../node_modules/fake-astro-library/index.ts | 16 ++++++++++++++++ .../node_modules/fake-astro-library/package.json | 12 ++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/404.astro create mode 100644 packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/index.ts create mode 100644 packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/package.json diff --git a/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/404.astro b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/404.astro new file mode 100644 index 0000000000000..64db1a009192d --- /dev/null +++ b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/404.astro @@ -0,0 +1,4 @@ +--- +export const prerender = true; +--- +
Test 404
diff --git a/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/index.ts b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/index.ts new file mode 100644 index 0000000000000..af16fd8743a05 --- /dev/null +++ b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/index.ts @@ -0,0 +1,16 @@ +export default function FakeIntegration() { + return { + name: 'fake-astro-library', + hooks: { + 'astro:config:setup': async ({ + injectRoute, + }) => { + injectRoute({ + pattern: '404', + entrypoint: 'fake-astro-library/404.astro', + prerender: true, + }); + }, + }, + }; +} diff --git a/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/package.json b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/package.json new file mode 100644 index 0000000000000..d1471d7772f60 --- /dev/null +++ b/packages/astro/test/fixtures/_underscore in folder name/node_modules/fake-astro-library/package.json @@ -0,0 +1,12 @@ +{ + "name": "fake-astro-library", + "version": "0.0.0", + "private": true, + "exports": { + ".": "./index.ts", + "./404.astro": "./404.astro" + }, + "dependencies": { + "astro": "workspace:*" + } +}