diff options
Diffstat (limited to '')
-rw-r--r-- | packages/create-astro/src/config.ts | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/packages/create-astro/src/config.ts b/packages/create-astro/src/config.ts index 6a2b3cb64..40e6653a0 100644 --- a/packages/create-astro/src/config.ts +++ b/packages/create-astro/src/config.ts @@ -1,5 +1,6 @@ export const createConfig = ({ renderers }: { renderers: string[] }) => { - return [`export default { + return [ + `export default { // projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project. // pages: './src/pages', // Path to Astro components, pages, and data // dist: './dist', // When running \`astro build\`, path to final static output @@ -12,8 +13,11 @@ export const createConfig = ({ renderers }: { renderers: string[] }) => { // port: 3000, // The port to run the dev server on. // tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js' },`, - ` renderers: ${JSON.stringify(renderers, undefined, 2).split('\n').map((ln, i) => i !== 0 ? ` ${ln}` : ln).join('\n')},`, -`}; -`].join('\n') -} - + ` renderers: ${JSON.stringify(renderers, undefined, 2) + .split('\n') + .map((ln, i) => (i !== 0 ? ` ${ln}` : ln)) + .join('\n')},`, + `}; +`, + ].join('\n'); +}; |