summaryrefslogtreecommitdiff
path: root/scripts/index.js
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:20:40 -0700
committerGravatar Fred K. Schott <fkschott@gmail.com> 2021-09-06 01:21:55 -0700
commit6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch)
tree12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /scripts/index.js
parentd321d8366b597e46ff8e3fc63d17622a9297505c (diff)
downloadastro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz
astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst
astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip
scale back the examples page
Diffstat (limited to 'scripts/index.js')
-rwxr-xr-x[-rw-r--r--]scripts/index.js38
1 files changed, 19 insertions, 19 deletions
diff --git a/scripts/index.js b/scripts/index.js
index 0b6577966..7908b112c 100644..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');
- await build(...args, cmd === 'dev' ? 'IS_DEV' : undefined);
- break;
- }
- case 'copy': {
- const { default: copy } = await import('./cmd/copy.js');
- await copy(...args);
- break;
- }
- }
-}
-
-run();
+#!/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');
+ await build(...args, cmd === 'dev' ? 'IS_DEV' : undefined);
+ break;
+ }
+ case 'copy': {
+ const { default: copy } = await import('./cmd/copy.js');
+ await copy(...args);
+ break;
+ }
+ }
+}
+
+run();