create-loutre 0.6.0 → 0.7.0

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.
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spawn } from 'node:child_process';
2
2
  import { relative } from 'node:path';
3
- import { isCancel, select, text } from '@clack/prompts';
3
+ import { select, text } from '@clack/prompts';
4
4
  import { Command, CommanderError, Option } from 'commander';
5
5
  import { bootstrapApplication } from '@loutrejs/loutre';
6
6
  import { detectPresentationTerminal, renderLoutreBrand, } from '@loutrejs/loutre/presentation';
@@ -152,11 +152,11 @@ function createProcessIO() {
152
152
  }
153
153
  async function terminalPrompt(message, initialValue) {
154
154
  const result = await text({ message, defaultValue: initialValue });
155
- return isCancel(result) ? undefined : result;
155
+ return typeof result === 'string' ? result : undefined;
156
156
  }
157
157
  async function terminalSelect(message, options, initialValue) {
158
158
  const result = await select({ message, options: [...options], initialValue });
159
- return isCancel(result) ? undefined : result;
159
+ return typeof result === 'string' ? result : undefined;
160
160
  }
161
161
  function installDependencies(directory, packageManager) {
162
162
  const command = executableFor(packageManager);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-loutre",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Loutre project initializer",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@clack/prompts": "^1.7.0",
21
- "@loutrejs/loutre": "^0.6.0",
21
+ "@loutrejs/loutre": "^0.7.0",
22
22
  "commander": "^15.0.0"
23
23
  },
24
24
  "repository": {
@@ -2,3 +2,4 @@ node_modules/
2
2
  dist/
3
3
  coverage/
4
4
  .env
5
+ .loutre/