summaryrefslogtreecommitdiff
path: root/scripts/index.js
blob: dd789f032ec21dd5c15ddedc448e1a78aa51c7d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
t/import-app.test.js?h=@astrojs/vercel@3.8.0&id=543d21075281414d98132a92f707c636d3666405&follow=1'>[ci] formatGravatar natemoo-re 1-1/+0 2023-08-01Fix astro/app import (#7821)Gravatar ottomated 4-1/+25 2023-08-01[ci] formatGravatar natemoo-re 1-1/+1 2023-08-01feat: add cache headers to assets in Vercel adapter (#7729)Gravatar Hee 10-3/+144 2023-08-01Fix "res.writeHead is not a function" in Express/node middleware (#7708)Gravatar DixCouleur 3-8/+34 2023-08-01Fix: Content Collections - Ignore `.json` files nested in non-underscored sub...Gravatar Tony Dang 3-1/+6 2023-08-01chore: address feedback from #7754 (#7906)Gravatar Nate Moore 1-2/+4 2023-08-01[ci] release (#7877)astro@2.9.7@astrojs/vercel@3.7.5@astrojs/node@5.3.1@astrojs/netlify@2.5.2Gravatar Houston (Bot) 52-129/+128 2023-08-01feat: add logging for when hydrate's JSON parse fails (#7887)Gravatar Sam Hulick 2-3/+28 2023-08-01Fix prefetch test fail (#7902)Gravatar Bjorn Lu 1-0/+2 2023-08-01[ci] formatGravatar bluwy 4-13/+28