create-astro 4.13.0 → 4.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,4 @@
1
1
  import type { Context } from './context.js';
2
- export declare function projectName(ctx: Pick<Context, 'cwd' | 'yes' | 'dryRun' | 'prompt' | 'projectName' | 'exit'>): Promise<void>;
2
+ export declare function projectName(ctx: Pick<Context, 'yes' | 'dryRun' | 'prompt' | 'projectName' | 'exit'> & {
3
+ cwd?: string;
4
+ }): Promise<void>;
package/dist/index.js CHANGED
@@ -295,7 +295,7 @@ async function shell(command, flags, opts = {}) {
295
295
  let stdout2 = "";
296
296
  let stderr = "";
297
297
  try {
298
- child = spawn(command, flags, {
298
+ child = spawn(`${command} ${flags.join(" ")}`, {
299
299
  cwd: opts.cwd,
300
300
  shell: true,
301
301
  stdio: opts.stdio,
@@ -445,7 +445,7 @@ function printHelp({
445
445
  if (headline) {
446
446
  message.push(
447
447
  linebreak(),
448
- `${title(commandName)} ${color.green(`v${"4.13.0"}`)} ${headline}`
448
+ `${title(commandName)} ${color.green(`v${"4.13.2"}`)} ${headline}`
449
449
  );
450
450
  }
451
451
  if (usage) {
@@ -538,7 +538,7 @@ async function getContext(argv) {
538
538
  packageManager,
539
539
  "astro",
540
540
  getPackageTag(packageSpecifier),
541
- "5.12.3"
541
+ "5.14.5"
542
542
  ),
543
543
  skipHouston,
544
544
  fancy,
@@ -830,7 +830,7 @@ function toValidName(projectName2) {
830
830
  async function projectName(ctx) {
831
831
  await checkCwd(ctx.cwd);
832
832
  if (!ctx.cwd || !isEmpty(ctx.cwd)) {
833
- if (!isEmpty(ctx.cwd)) {
833
+ if (ctx.cwd && !isEmpty(ctx.cwd)) {
834
834
  await info("Hmm...", `${color5.reset(`"${ctx.cwd}"`)}${color5.dim(` is not empty!`)}`);
835
835
  }
836
836
  if (ctx.yes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-astro",
3
- "version": "4.13.0",
3
+ "version": "4.13.2",
4
4
  "type": "module",
5
5
  "author": "withastro",
6
6
  "license": "MIT",
@@ -26,7 +26,7 @@
26
26
  "//b": "DEPENDENCIES IS FOR UNBUNDLED PACKAGES",
27
27
  "dependencies": {
28
28
  "@astrojs/cli-kit": "^0.4.1",
29
- "@bluwy/giget-core": "^0.1.2"
29
+ "@bluwy/giget-core": "^0.1.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "arg": "^5.0.2",