@tanstack/cta-cli 0.10.0-alpha.20 → 0.10.0-alpha.22

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
@@ -48,6 +48,8 @@ export function cli({ name, appName, forcedMode, forcedAddOns = [], defaultTempl
48
48
  launchUI({
49
49
  mode: 'add',
50
50
  addOns: parsedAddOns,
51
+ forcedMode,
52
+ forcedAddOns,
51
53
  });
52
54
  }
53
55
  else {
@@ -175,6 +177,8 @@ export function cli({ name, appName, forcedMode, forcedAddOns = [], defaultTempl
175
177
  launchUI({
176
178
  mode: 'setup',
177
179
  options: createSerializedOptions(finalOptions || defaultOptions),
180
+ forcedMode,
181
+ forcedAddOns,
178
182
  });
179
183
  return;
180
184
  }
@@ -17,13 +17,13 @@ export function createUIEnvironment(appName, silent) {
17
17
  outro(message);
18
18
  },
19
19
  info: (title, message) => {
20
- log.info(`${title ? chalk.red(title) : ''}${message ? chalk.green(message) : ''}`);
20
+ log.info(`${title ? chalk.red(title) : ''}${message ? '\n' + chalk.green(message) : ''}`);
21
21
  },
22
22
  error: (title, message) => {
23
- log.error(`${title ? `${title}: ` : ''}${message}`);
23
+ log.error(`${title ? `${title}: ` : ''}${message ? '\n' + message : ''}`);
24
24
  },
25
25
  warn: (title, message) => {
26
- log.warn(`${title ? `${title}: ` : ''}${message}`);
26
+ log.warn(`${title ? `${title}: ` : ''}${message ? '\n' + message : ''}`);
27
27
  },
28
28
  confirm: async (message) => {
29
29
  const shouldContinue = await confirm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-cli",
3
- "version": "0.10.0-alpha.20",
3
+ "version": "0.10.0-alpha.22",
4
4
  "description": "Tanstack Application Builder CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "commander": "^13.1.0",
30
30
  "express": "^4.21.2",
31
31
  "zod": "^3.24.2",
32
- "@tanstack/cta-engine": "0.10.0-alpha.20",
33
- "@tanstack/cta-ui": "0.10.0-alpha.20"
32
+ "@tanstack/cta-engine": "0.10.0-alpha.21",
33
+ "@tanstack/cta-ui": "0.10.0-alpha.22"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@tanstack/config": "^0.16.2",
package/src/cli.ts CHANGED
@@ -109,6 +109,8 @@ export function cli({
109
109
  launchUI({
110
110
  mode: 'add',
111
111
  addOns: parsedAddOns,
112
+ forcedMode,
113
+ forcedAddOns,
112
114
  })
113
115
  } else {
114
116
  await addToApp(environment, parsedAddOns, process.cwd(), {
@@ -290,6 +292,8 @@ export function cli({
290
292
  launchUI({
291
293
  mode: 'setup',
292
294
  options: createSerializedOptions(finalOptions || defaultOptions),
295
+ forcedMode,
296
+ forcedAddOns,
293
297
  })
294
298
  return
295
299
  }
@@ -35,14 +35,16 @@ export function createUIEnvironment(
35
35
  },
36
36
  info: (title?: string, message?: string) => {
37
37
  log.info(
38
- `${title ? chalk.red(title) : ''}${message ? chalk.green(message) : ''}`,
38
+ `${title ? chalk.red(title) : ''}${message ? '\n' + chalk.green(message) : ''}`,
39
39
  )
40
40
  },
41
41
  error: (title?: string, message?: string) => {
42
- log.error(`${title ? `${title}: ` : ''}${message}`)
42
+ log.error(
43
+ `${title ? `${title}: ` : ''}${message ? '\n' + message : ''}`,
44
+ )
43
45
  },
44
46
  warn: (title?: string, message?: string) => {
45
- log.warn(`${title ? `${title}: ` : ''}${message}`)
47
+ log.warn(`${title ? `${title}: ` : ''}${message ? '\n' + message : ''}`)
46
48
  },
47
49
  confirm: async (message: string) => {
48
50
  const shouldContinue = await confirm({