create-absolutejs 0.14.4 → 0.14.5

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.
@@ -2,13 +2,15 @@ import { exit } from 'process';
2
2
  import { spinner } from '@clack/prompts';
3
3
  import { $ } from 'bun';
4
4
  import { green, red } from 'picocolors';
5
- import { formatCommands, formatNoInstallCommands } from '../utils/commandMaps';
5
+ import { formatCommands } from '../utils/commandMaps';
6
6
  export const formatProject = async ({ projectName, packageManager, installDependenciesNow }) => {
7
+ // A no-install scaffold must be fully offline and must not assume a global
8
+ // formatter. Templates are already formatted in the published package.
9
+ if (!installDependenciesNow)
10
+ return;
7
11
  const spin = spinner();
8
12
  try {
9
- const fmt = installDependenciesNow
10
- ? formatCommands[packageManager]
11
- : formatNoInstallCommands[packageManager];
13
+ const fmt = formatCommands[packageManager];
12
14
  spin.start('Formatting files…');
13
15
  const [bin, ...args] = fmt.split(' ');
14
16
  await $ `${bin} ${args}`.cwd(projectName).quiet();
package/package.json CHANGED
@@ -54,5 +54,5 @@
54
54
  "typecheck": "bun run tsc --noEmit"
55
55
  },
56
56
  "type": "module",
57
- "version": "0.14.4"
57
+ "version": "0.14.5"
58
58
  }