diff options
author | 2021-03-15 14:18:39 -0400 | |
---|---|---|
committer | 2021-03-15 14:18:39 -0400 | |
commit | 47d1c22449cb2c3a236170382ae9e8210a711ee0 (patch) | |
tree | 0e33bac9f9c1e0233cf7c028079a9aa148b085a6 /src/generate.ts | |
parent | af6b029e95e9c98e6fb9c642915d461b8d7f448e (diff) | |
download | astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.tar.gz astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.tar.zst astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.zip |
magicthing -> astro
Diffstat (limited to '')
-rw-r--r-- | src/generate.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/generate.ts b/src/generate.ts index de7f76b25..51dbd055a 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -1,4 +1,4 @@ -import type { MagicConfig } from './@types/magicthing'; +import type { AstroConfig } from './@types/astro'; import { loadConfiguration, startServer as startSnowpackServer } from 'snowpack'; import { promises as fsPromises } from 'fs'; import { relative as pathRelative } from 'path'; @@ -18,10 +18,10 @@ async function* allPages(root: URL): AsyncGenerator<URL, void, unknown> { } } -export default async function(magicConfig: MagicConfig) { - const { projectRoot, hmxRoot } = magicConfig; +export default async function(astroConfig: AstroConfig) { + const { projectRoot, hmxRoot } = astroConfig; const pageRoot = new URL('./pages/', hmxRoot); - const dist = new URL(magicConfig.dist + '/', projectRoot); + const dist = new URL(astroConfig.dist + '/', projectRoot); const configPath = new URL('./snowpack.config.js', projectRoot).pathname; const config = await loadConfiguration({ |