@tanstack/cta-engine 0.11.0 → 0.11.2
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
|
@@ -71,7 +71,7 @@ export function cli({ name, appName, forcedMode, forcedAddOns, }) {
|
|
|
71
71
|
})
|
|
72
72
|
.option('--list-add-ons', 'list all available add-ons', false)
|
|
73
73
|
.option('--no-git', 'do not create a git repository')
|
|
74
|
-
.option('--target-dir <path>', 'the directory
|
|
74
|
+
.option('--target-dir <path>', 'the target directory for the application root')
|
|
75
75
|
.option('--mcp', 'run the MCP server', false)
|
|
76
76
|
.option('--mcp-sse', 'run the MCP server in SSE mode', false);
|
|
77
77
|
program.action(async (projectName, options) => {
|
package/dist/create-app.js
CHANGED
|
@@ -492,6 +492,6 @@ Use the following commands to start your app:
|
|
|
492
492
|
% cd ${options.projectName}
|
|
493
493
|
% ${startCommand}
|
|
494
494
|
|
|
495
|
-
Please
|
|
495
|
+
Please check the README.md for more information on testing, styling, adding routes, react-query, etc.${errorStatement}`);
|
|
496
496
|
}
|
|
497
497
|
}
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -133,7 +133,10 @@ export function cli({
|
|
|
133
133
|
)
|
|
134
134
|
.option('--list-add-ons', 'list all available add-ons', false)
|
|
135
135
|
.option('--no-git', 'do not create a git repository')
|
|
136
|
-
.option(
|
|
136
|
+
.option(
|
|
137
|
+
'--target-dir <path>',
|
|
138
|
+
'the target directory for the application root',
|
|
139
|
+
)
|
|
137
140
|
.option('--mcp', 'run the MCP server', false)
|
|
138
141
|
.option('--mcp-sse', 'run the MCP server in SSE mode', false)
|
|
139
142
|
|
package/src/create-app.ts
CHANGED
|
@@ -799,6 +799,6 @@ Use the following commands to start your app:
|
|
|
799
799
|
% cd ${options.projectName}
|
|
800
800
|
% ${startCommand}
|
|
801
801
|
|
|
802
|
-
Please
|
|
802
|
+
Please check the README.md for more information on testing, styling, adding routes, react-query, etc.${errorStatement}`)
|
|
803
803
|
}
|
|
804
804
|
}
|
|
@@ -13,7 +13,7 @@ function getUrl() {
|
|
|
13
13
|
if (typeof window !== "undefined") return "";
|
|
14
14
|
return `http://localhost:${process.env.PORT ?? 3000}`;
|
|
15
15
|
})();
|
|
16
|
-
return base
|
|
16
|
+
return `${base}/api/trpc`;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const trpcClient = createTRPCClient<TRPCRouter>({
|
|
@@ -67,4 +67,4 @@ export function Provider({ children }: { children: React.ReactNode }) {
|
|
|
67
67
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
68
68
|
)
|
|
69
69
|
}
|
|
70
|
-
<% } %>
|
|
70
|
+
<% } %>
|