diff options
author | 2021-05-03 11:47:51 -0600 | |
---|---|---|
committer | 2021-05-03 11:47:51 -0600 | |
commit | 4ff3add50f170b50f7d629a7d16e03f196e19edc (patch) | |
tree | e73bf327a2d132e808b950f4e1331b6172374b85 /scripts/index.js | |
parent | c74f3e70f19f24500fa78ae6b7bf6c5992d0370f (diff) | |
download | astro-4ff3add50f170b50f7d629a7d16e03f196e19edc.tar.gz astro-4ff3add50f170b50f7d629a7d16e03f196e19edc.tar.zst astro-4ff3add50f170b50f7d629a7d16e03f196e19edc.zip |
Clean dependencies (#166)
* Clean dependencies
This moves some dependencies around where they should be
* Formatting
Diffstat (limited to 'scripts/index.js')
-rwxr-xr-x | scripts/index.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/scripts/index.js b/scripts/index.js index cfa747769..9025e4781 100755 --- a/scripts/index.js +++ b/scripts/index.js @@ -1,19 +1,19 @@ #!/usr/bin/env node export default async function run() { - const [cmd, ...args] = process.argv.slice(2); - switch (cmd) { - case 'dev': - case 'build': { - const { default: build } = await import('./cmd/build.js'); - build(...args, cmd === 'dev' ? 'IS_DEV' : undefined); - break; - } - case 'copy': { - const { default: copy } = await import('./cmd/copy.js'); - copy(...args); - break; - } + const [cmd, ...args] = process.argv.slice(2); + switch (cmd) { + case 'dev': + case 'build': { + const { default: build } = await import('./cmd/build.js'); + build(...args, cmd === 'dev' ? 'IS_DEV' : undefined); + break; } + case 'copy': { + const { default: copy } = await import('./cmd/copy.js'); + copy(...args); + break; + } + } } run(); |