summaryrefslogtreecommitdiff
path: root/scripts/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cmd')
-rw-r--r--scripts/cmd/build.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/cmd/build.js b/scripts/cmd/build.js
index 250bb1efd..b46c8e61c 100644
--- a/scripts/cmd/build.js
+++ b/scripts/cmd/build.js
@@ -20,7 +20,10 @@ const defaultConfig = {
export default async function build(...args) {
const config = Object.assign({}, defaultConfig);
const isDev = args.slice(-1)[0] === 'IS_DEV';
- let entryPoints = [].concat(...(await Promise.all(args.map((pattern) => glob(pattern, { filesOnly: true, absolute: true })))));
+ const patterns = args
+ .filter((f) => !!f) // remove empty args
+ .map((f) => f.replace(/^'/, '').replace(/'$/, '')); // Needed for Windows: glob strings contain surrounding string chars??? remove these
+ let entryPoints = [].concat(...(await Promise.all(patterns.map((pattern) => glob(pattern, { filesOnly: true, absolute: true })))));
const { type = 'module', dependencies = {} } = await fs.readFile('./package.json').then((res) => JSON.parse(res.toString()));
const format = type === 'module' ? 'esm' : 'cjs';
&id=1f890b3363d8ce232571612056b485c13983e5ef&follow=1'>Yield out potentional slot instructions when rendering dynamic tags (#4981)Gravatar Matthew Phillips 11-32/+132 2022-10-05Upgrade Astro compiler to 0.26.0 (#4990)Gravatar Matthew Phillips 3-5/+10 2022-10-05Fix failing e2e test (#4983)Gravatar Bjorn Lu 2-1/+4 2022-10-04Updating sponsors list in README (#4979)Gravatar Tony Sullivan 12-48/+176 2022-10-04[ci] formatGravatar matthewp 4-7/+11 2022-10-04Refactor hydration path handling (#4918)Gravatar Bjorn Lu 14-44/+137 2022-10-04fix: import.meta.env.BASE_URL will be '/' in client loaded component on dev m...Gravatar 董雨航 9-0/+82 2022-10-04fix object styles not escaped (#4887)Gravatar Calvin Liang 8-2/+71 2022-10-04closes #4633 (#4977)Gravatar Tony Sullivan 3-3/+11 2022-10-04[ci] update lockfile (#4946)Gravatar Fred K. Bot 1-150/+159 2022-10-04[ci] formatGravatar matthewp 1-4/+4 2022-10-04Update config base type description (#4954)Gravatar Zihan Chen 1-1/+10 2022-10-04Support Astro.slots.render for mdx (#4973)Gravatar Bjorn Lu 8-2/+69 2022-10-03[ci] release (#4968)astro@1.4.4Gravatar Fred K. Bot 28-57/+58 2022-10-03Fix regression in rendering strings (#4967)Gravatar Matthew Phillips 2-2/+9 2022-10-03[ci] formatGravatar matthewp 1-1/+2 2022-10-03Adds a better test for benchmarking (#4966)Gravatar Matthew Phillips 2-7/+77 2022-10-03Benchmark action: provide the PR number (#4964)Gravatar Matthew Phillips 1-0/+1 2022-10-03Build packages in the benchmark action (#4962)Gravatar Matthew Phillips 1-0/+11 2022-10-03Run benchmarks on comment (#4960)Gravatar Matthew Phillips 2-1/+85 2022-10-03[ci] release (#4957)astro@1.4.3@astrojs/mdx@0.11.4Gravatar Fred K. Bot 32-70/+69 2022-10-03[ci] formatGravatar matthewp 5-6/+6 2022-10-03Improve rendering perf (#4956)Gravatar Matthew Phillips 8-31/+73 2022-10-03Suppress eslint warnings (#4953)Gravatar Bjorn Lu 3-3/+14 2022-10-03[ci] formatGravatar bluwy 1-1/+1 2022-10-03Refactor ViteConfigWithSSR type (#4952)Gravatar Bjorn Lu 7-20/+20 2022-10-01[ci] release (#4945)@astrojs/image@0.9.11.3.0Gravatar Fred K. Bot 3-6/+7 2022-09-30Astro image cache dependency fix scottaw66 (#4944)Gravatar Scott Willsey 3-3/+7 2022-09-30[ci] release (#4943)astro@1.4.2Gravatar Fred K. Bot 29-60/+58 2022-09-30[ci] formatGravatar natemoo-re 1-1/+1 2022-09-30Convert HTMLString to regular string, preventing hydration script fro… (#4932)Gravatar Matthew Phillips 2-1/+6 2022-10-01Fix missing language tag on README code block (#4940)Gravatar Chris Swithinbank 1-1/+1 2022-09-30[ci] formatGravatar natemoo-re 2-2/+2 2022-09-30P5: fix MDX memory leak (#4939)Gravatar Nate Moore 10-1/+84 2022-09-30chore: delete .stackblitzrc files from examples (#4922)Gravatar Nate Moore 22-132/+0