Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 13, 2021
1 parent 0ff8b00 commit fff6889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
8 changes: 2 additions & 6 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ prog
.command('build')
.describe('Create a production build of your app')
.option('--verbose', 'Log more stuff', false)
.action(async ({ verbose }) => {
.action(async () => {
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
const config = await get_config();

try {
const { build } = await import('./core/build/index.js');
const build_data = await build(config);
await build(config);

console.log(
`\nRun ${colors.bold().cyan('npm run preview')} to preview your production build locally.`
Expand All @@ -141,10 +141,6 @@ prog

// this is necessary to close any open db connections, etc
process.exit(0);

// const { adapt } = await import('./core/adapt/index.js');
// await adapt(config, build_data, { verbose });

} catch (error) {
handle_error(error);
}
Expand Down
20 changes: 0 additions & 20 deletions packages/kit/src/core/adapt/index.js

This file was deleted.

0 comments on commit fff6889

Please sign in to comment.