Skip to content

Commit 5e7901f

Browse files
committed
fix: small Deno issue
1 parent 6a1929b commit 5e7901f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/create-app.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,11 +644,16 @@ ${environment.getErrors().join('\n')}`
644644
}
645645

646646
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+
647652
outro(`Created your new TanStack app in '${basename(targetDir)}'.
648653
649654
Use the following commands to start your app:
650655
% cd ${options.projectName}
651-
% ${options.packageManager === 'deno' ? 'deno start' : options.packageManager} ${isAddOnEnabled('start') ? 'dev' : 'start'}
656+
% ${startCommand}
652657
653658
Please read README.md for more information on testing, styling, adding routes, react-query, etc.${errorStatement}`)
654659
}

templates/react/base/vite.config.js.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import tailwindcss from "@tailwindcss/vite";
44
<% } %><%if (fileRouter) { %>
55
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";<% } %><% if (addOnEnabled['module-federation']) { %>
66
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']) { %>
88
import federationConfig from "./module-federation.config.js";
99
<% } %>
1010

templates/solid/base/vite.config.js.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from 'vite'
22
<%if (fileRouter) { %>import { TanStackRouterVite } from '@tanstack/router-plugin/vite'<% } %>
33
import solidPlugin from 'vite-plugin-solid'
44
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']) { %>
66
import {federation} from "@module-federation/vite";<% } %><% if (addOnEnabled['module-federation']) { %>
77
import federationConfig from "./module-federation.config.js";
88
<% } %>

0 commit comments

Comments
 (0)