From 789c331a2145ad388ebb232e365532ddaa66ab38 Mon Sep 17 00:00:00 2001 From: AndrewLester Date: Wed, 10 Aug 2022 10:45:56 -0400 Subject: [PATCH] Support new features from #15 --- src/config-parser.js | 4 ++-- src/set-pages-path.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config-parser.js b/src/config-parser.js index 730eb87..0f510a5 100644 --- a/src/config-parser.js +++ b/src/config-parser.js @@ -50,8 +50,8 @@ class ConfigParser { } // Find the configuration object in an AST. - // Look for a default export, an export default with idenfitier, a direct module export - // or an indirect module export (in that order). + // Look for a default export, a direct module export or an indirect module + // export (in that order). // // Return the configuration object or null. findConfigurationObject(ast) { diff --git a/src/set-pages-path.js b/src/set-pages-path.js index e912c10..c76f37b 100644 --- a/src/set-pages-path.js +++ b/src/set-pages-path.js @@ -52,7 +52,7 @@ function getConfigParserSettings({ staticSiteGenerator, generatorConfigFile, pat } return { - configurationFile: './svelte.config.js', + configurationFile: generatorConfigFile || './svelte.config.js', blankConfigurationFile: `${__dirname}/blank-configurations/sveltekit.js`, properties: { // Configure a base path