create-tsrouter-app 0.6.4 → 0.6.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.
@@ -390,11 +390,15 @@ ${chalk.red('There were errors encountered during this process:')}
390
390
  ${environment.getErrors().join('\n')}`;
391
391
  }
392
392
  if (!silent) {
393
+ let startCommand = `${options.packageManager} ${isAddOnEnabled('start') ? 'dev' : 'start'}`;
394
+ if (options.packageManager === 'deno') {
395
+ startCommand = `deno ${isAddOnEnabled('start') ? 'task dev' : 'start'}`;
396
+ }
393
397
  outro(`Created your new TanStack app in '${basename(targetDir)}'.
394
398
 
395
399
  Use the following commands to start your app:
396
400
  % cd ${options.projectName}
397
- % ${options.packageManager === 'deno' ? 'deno start' : options.packageManager} ${isAddOnEnabled('start') ? 'dev' : 'start'}
401
+ % ${startCommand}
398
402
 
399
403
  Please read README.md for more information on testing, styling, adding routes, react-query, etc.${errorStatement}`);
400
404
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tsrouter-app",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Tanstack Application Builder",
5
5
  "bin": "./dist/index.js",
6
6
  "type": "module",
package/src/create-app.ts CHANGED
@@ -644,11 +644,16 @@ ${environment.getErrors().join('\n')}`
644
644
  }
645
645
 
646
646
  if (!silent) {
647
+ let startCommand = `${options.packageManager} ${isAddOnEnabled('start') ? 'dev' : 'start'}`
648
+ if (options.packageManager === 'deno') {
649
+ startCommand = `deno ${isAddOnEnabled('start') ? 'task dev' : 'start'}`
650
+ }
651
+
647
652
  outro(`Created your new TanStack app in '${basename(targetDir)}'.
648
653
 
649
654
  Use the following commands to start your app:
650
655
  % cd ${options.projectName}
651
- % ${options.packageManager === 'deno' ? 'deno start' : options.packageManager} ${isAddOnEnabled('start') ? 'dev' : 'start'}
656
+ % ${startCommand}
652
657
 
653
658
  Please read README.md for more information on testing, styling, adding routes, react-query, etc.${errorStatement}`)
654
659
  }
@@ -4,7 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
4
4
  <% } %><%if (fileRouter) { %>
5
5
  import { TanStackRouterVite } from "@tanstack/router-plugin/vite";<% } %><% if (addOnEnabled['module-federation']) { %>
6
6
  import {federation} from "@module-federation/vite";<% } %><% if (addOnEnabled.shadcn) { %>
7
- import { resolve } from "path";<% } %><% if (addOnEnabled['module-federation']) { %>
7
+ import { resolve } from "node:path";<% } %><% if (addOnEnabled['module-federation']) { %>
8
8
  import federationConfig from "./module-federation.config.js";
9
9
  <% } %>
10
10
 
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
2
2
  <%if (fileRouter) { %>import { TanStackRouterVite } from '@tanstack/router-plugin/vite'<% } %>
3
3
  import solidPlugin from 'vite-plugin-solid'
4
4
  import tailwindcss from '@tailwindcss/vite'<% if (addOnEnabled['solid-ui']) { %>
5
- import { resolve } from 'path'<% } %><% if (addOnEnabled['module-federation']) { %>
5
+ import { resolve } from 'node:path'<% } %><% if (addOnEnabled['module-federation']) { %>
6
6
  import {federation} from "@module-federation/vite";<% } %><% if (addOnEnabled['module-federation']) { %>
7
7
  import federationConfig from "./module-federation.config.js";
8
8
  <% } %>