@tanstack/cli 0.59.2 → 0.59.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @tanstack/cli
2
2
 
3
+ ## 0.59.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Improve generated app reliability and CLI compatibility. ([`791bef6`](https://github.com/TanStack/cli/commit/791bef6b5472df5b5e2bffe5c1714c4052a97ac3))
8
+
9
+ - Fix React Query provider scaffolding (including Query + tRPC combinations) so generated apps build correctly.
10
+ - Fix Prisma add-on package template rendering by exposing package-manager execute helper in `package.json.ejs` context.
11
+ - Restore `--tailwind` and `--no-tailwind` as deprecated compatibility flags that are accepted but ignored with clear warnings.
12
+ - Align CLI/docs examples with the current Tailwind-always-on behavior.
13
+ - Update Convex demo import to type-only `Id` import to avoid runtime resolution issues.
14
+
15
+ - Updated dependencies [[`791bef6`](https://github.com/TanStack/cli/commit/791bef6b5472df5b5e2bffe5c1714c4052a97ac3)]:
16
+ - @tanstack/create@0.61.2
17
+ - @tanstack/create-ui@0.59.4
18
+
19
+ ## 0.59.3
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`a650d35`](https://github.com/TanStack/cli/commit/a650d3590dab0869e3ee873c029631dcbb9953e9)]:
24
+ - @tanstack/create@0.61.1
25
+ - @tanstack/create-ui@0.59.3
26
+
3
27
  ## 0.59.2
4
28
 
5
29
  ### Patch Changes
package/dist/cli.js CHANGED
@@ -263,7 +263,9 @@ export function cli({ name, appName, forcedAddOns = [], forcedDeployment, defaul
263
263
  })
264
264
  .option('--dev-watch <path>', 'Watch a framework directory for changes and auto-rebuild')
265
265
  .option('--router-only', 'Deprecated: compatibility flag from create-tsrouter-app')
266
- .option('--template <type>', 'Deprecated: compatibility flag from create-tsrouter-app');
266
+ .option('--template <type>', 'Deprecated: compatibility flag from create-tsrouter-app')
267
+ .option('--tailwind', 'Deprecated: compatibility flag; Tailwind is always enabled')
268
+ .option('--no-tailwind', 'Deprecated: compatibility flag; Tailwind opt-out is ignored');
267
269
  if (deployments.size > 0) {
268
270
  cmd.option(`--deployment <${Array.from(deployments).join('|')}>`, `Explicitly tell the CLI to use this deployment adapter`, (value) => {
269
271
  if (!deployments.has(value)) {
@@ -12,6 +12,12 @@ export function validateLegacyCreateFlags(cliOptions) {
12
12
  if (cliOptions.routerOnly) {
13
13
  warnings.push('The --router-only flag is deprecated and ignored. `tanstack create` already creates router-based apps.');
14
14
  }
15
+ if (cliOptions.tailwind === true) {
16
+ warnings.push('The --tailwind flag is deprecated and ignored. Tailwind is always enabled in TanStack Start scaffolds.');
17
+ }
18
+ if (cliOptions.tailwind === false) {
19
+ warnings.push('The --no-tailwind flag is deprecated and ignored. Tailwind opt-out is intentionally unsupported to keep add-on permutations maintainable; remove Tailwind after scaffolding if needed.');
20
+ }
15
21
  if (!cliOptions.template) {
16
22
  return { warnings };
17
23
  }
@@ -21,4 +21,5 @@ export interface CliOptions {
21
21
  force?: boolean;
22
22
  routerOnly?: boolean;
23
23
  template?: string;
24
+ tailwind?: boolean;
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cli",
3
- "version": "0.59.2",
3
+ "version": "0.59.4",
4
4
  "description": "TanStack CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  "tempy": "^3.1.0",
39
39
  "validate-npm-package-name": "^7.0.0",
40
40
  "zod": "^3.24.2",
41
- "@tanstack/create": "0.61.0",
42
- "@tanstack/create-ui": "0.59.2"
41
+ "@tanstack/create": "0.61.2",
42
+ "@tanstack/create-ui": "0.59.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@tanstack/config": "^0.16.2",
package/src/cli.ts CHANGED
@@ -408,6 +408,14 @@ export function cli({
408
408
  '--template <type>',
409
409
  'Deprecated: compatibility flag from create-tsrouter-app',
410
410
  )
411
+ .option(
412
+ '--tailwind',
413
+ 'Deprecated: compatibility flag; Tailwind is always enabled',
414
+ )
415
+ .option(
416
+ '--no-tailwind',
417
+ 'Deprecated: compatibility flag; Tailwind opt-out is ignored',
418
+ )
411
419
 
412
420
  if (deployments.size > 0) {
413
421
  cmd.option<string>(
@@ -37,6 +37,18 @@ export function validateLegacyCreateFlags(cliOptions: CliOptions): {
37
37
  )
38
38
  }
39
39
 
40
+ if (cliOptions.tailwind === true) {
41
+ warnings.push(
42
+ 'The --tailwind flag is deprecated and ignored. Tailwind is always enabled in TanStack Start scaffolds.',
43
+ )
44
+ }
45
+
46
+ if (cliOptions.tailwind === false) {
47
+ warnings.push(
48
+ 'The --no-tailwind flag is deprecated and ignored. Tailwind opt-out is intentionally unsupported to keep add-on permutations maintainable; remove Tailwind after scaffolding if needed.',
49
+ )
50
+ }
51
+
40
52
  if (!cliOptions.template) {
41
53
  return { warnings }
42
54
  }
package/src/types.ts CHANGED
@@ -22,4 +22,5 @@ export interface CliOptions {
22
22
  force?: boolean
23
23
  routerOnly?: boolean
24
24
  template?: string
25
+ tailwind?: boolean
25
26
  }
@@ -319,6 +319,19 @@ describe('validateLegacyCreateFlags', () => {
319
319
  expect(result.warnings[0]).toContain('--router-only')
320
320
  })
321
321
 
322
+ it('warns when --tailwind is used', () => {
323
+ const result = validateLegacyCreateFlags({ tailwind: true })
324
+ expect(result.error).toBeUndefined()
325
+ expect(result.warnings[0]).toContain('--tailwind')
326
+ })
327
+
328
+ it('warns heavily when --no-tailwind is used', () => {
329
+ const result = validateLegacyCreateFlags({ tailwind: false })
330
+ expect(result.error).toBeUndefined()
331
+ expect(result.warnings[0]).toContain('--no-tailwind')
332
+ expect(result.warnings[0]).toContain('intentionally unsupported')
333
+ })
334
+
322
335
  it('errors for JavaScript templates', () => {
323
336
  const result = validateLegacyCreateFlags({ template: 'javascript' })
324
337
  expect(result.error).toContain('JavaScript/JSX templates are not supported')