fix: add export keyword to file stub (#3944)
This commit is contained in:
parent
54865612ea
commit
e82ff13f18
2 changed files with 6 additions and 1 deletions
5
.changeset/cold-eyes-run.md
Normal file
5
.changeset/cold-eyes-run.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add export keyword to astro config file stub created by add cli command
|
|
@ -38,7 +38,7 @@ const ALIASES = new Map([
|
||||||
['solid', 'solid-js'],
|
['solid', 'solid-js'],
|
||||||
['tailwindcss', 'tailwind'],
|
['tailwindcss', 'tailwind'],
|
||||||
]);
|
]);
|
||||||
const ASTRO_CONFIG_STUB = `import { defineConfig } from 'astro/config';\n\ndefault defineConfig({});`;
|
const ASTRO_CONFIG_STUB = `import { defineConfig } from 'astro/config';\n\nexport default defineConfig({});`;
|
||||||
const TAILWIND_CONFIG_STUB = `/** @type {import('tailwindcss').Config} */
|
const TAILWIND_CONFIG_STUB = `/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
|
content: ['./src/**/*.{astro,html,js,jsx,md,svelte,ts,tsx,vue}'],
|
||||||
|
|
Loading…
Reference in a new issue