Skip to content

Commit 47d1c22

Browse files
committed
magicthing -> astro
1 parent af6b029 commit 47d1c22

File tree

6 files changed

+28
-1481
lines changed

6 files changed

+28
-1481
lines changed

magicthing.mjs renamed to astro.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ if(!root) {
1414
const fileProtocolRoot = `file://${root}/`;
1515

1616
async function run() {
17-
const magicConfig = (await import(pathJoin(root, 'magicthing.config.mjs'))).default;
18-
magicConfig.projectRoot = new URL(magicConfig.projectRoot + '/', fileProtocolRoot);
19-
magicConfig.hmxRoot = new URL(magicConfig.hmxRoot + '/', fileProtocolRoot);
17+
const astroConfig = (await import(pathJoin(root, 'astro.config.mjs'))).default;
18+
astroConfig.projectRoot = new URL(astroConfig.projectRoot + '/', fileProtocolRoot);
19+
astroConfig.hmxRoot = new URL(astroConfig.hmxRoot + '/', fileProtocolRoot);
2020

2121

2222
// Should use an args parser eventually
2323
if(process.argv.includes('--generate')) {
24-
return generate(magicConfig);
24+
return generate(astroConfig);
2525
} else {
26-
return devServer(magicConfig);
26+
return devServer(astroConfig);
2727
}
2828
}
2929

0 commit comments

Comments
 (0)