diff --git a/package.json b/package.json index 9887490..854667d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sandstone-build", - "version": "1.0.7", + "version": "1.0.8", "description": "The Build component for the Sandstone CLI.", "type": "module", "exports": "./lib/index.js", diff --git a/src/index.ts b/src/index.ts index 829a4e9..0e5cfbc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -144,7 +144,7 @@ async function _buildProject(cliOptions: BuildOptions, { absProjectFolder, proje const outputFolder = path.join(rootFolder, '.sandstone', 'output') /// OPTIONS /// - const clientPath = !cliOptions.production ? (cliOptions.clientPath || saveOptions.clientPath || await getClientPath()) : undefined + const clientPath = !cliOptions.production ? (cliOptions.clientPath || (saveOptions.clientPath as string || undefined) || await getClientPath()) : undefined const server = !cliOptions.production && (cliOptions.serverPath || saveOptions.serverPath || cliOptions.ssh || saveOptions.ssh) ? await (async () => { if (cliOptions.ssh || saveOptions.ssh) { const sshOptions = JSON.stringify(await fs.readFile(cliOptions.ssh || saveOptions.ssh, 'utf8')) @@ -544,7 +544,9 @@ async function _buildProject(cliOptions: BuildOptions, { absProjectFolder, proje // Run the afterAll script await scripts?.afterAll?.() - console.log('\nPack(s) compiled! View output in ./.sandstone/output/\n') + const exports = (server || clientPath) ? [...(server ? ['server'] : []), ...(clientPath ? ['client'] : [])].join(' and ') : false + + console.log(`\nPack(s) compiled!${exports ? ` Exported to ${exports}.` : ''} View output in ./.sandstone/output/\n`) } /**