@tanstack/cta-engine 0.41.1 → 0.43.0
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/create-app.js +11 -3
- package/package.json +10 -4
- package/src/create-app.ts +13 -3
package/dist/create-app.js
CHANGED
|
@@ -175,12 +175,20 @@ Errors were encountered during the creation of your app:
|
|
|
175
175
|
|
|
176
176
|
${environment.getErrors().join('\n')}`;
|
|
177
177
|
}
|
|
178
|
+
// Check if we created in current directory (user specified ".")
|
|
179
|
+
const isCurrentDirectory = resolve(options.targetDir) === resolve(process.cwd());
|
|
180
|
+
const locationMessage = isCurrentDirectory
|
|
181
|
+
? `Your ${environment.appName} app is ready.`
|
|
182
|
+
: `Your ${environment.appName} app is ready in '${basename(options.targetDir)}'.`;
|
|
183
|
+
const cdInstruction = isCurrentDirectory
|
|
184
|
+
? ''
|
|
185
|
+
: `% cd ${options.projectName}
|
|
186
|
+
`;
|
|
178
187
|
// Use the force luke! :)
|
|
179
|
-
environment.outro(
|
|
188
|
+
environment.outro(`${locationMessage}
|
|
180
189
|
|
|
181
190
|
Use the following commands to start your app:
|
|
182
|
-
%
|
|
183
|
-
% ${formatCommand(getPackageManagerScriptCommand(options.packageManager, ['dev']))}
|
|
191
|
+
${cdInstruction}% ${formatCommand(getPackageManagerScriptCommand(options.packageManager, ['dev']))}
|
|
184
192
|
|
|
185
193
|
Please check the README.md for information on testing, styling, adding routes, etc.${errorStatement}`);
|
|
186
194
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/cta-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
4
4
|
"description": "Tanstack Application Builder Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/TanStack/create-tsrouter-app.git"
|
|
10
|
+
"url": "git+https://github.com/TanStack/create-tsrouter-app.git",
|
|
11
|
+
"directory": "packages/cta-engine"
|
|
11
12
|
},
|
|
12
13
|
"homepage": "https://tanstack.com/router",
|
|
13
14
|
"funding": {
|
|
@@ -32,7 +33,6 @@
|
|
|
32
33
|
"zod": "^3.24.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@tanstack/config": "^0.16.2",
|
|
36
36
|
"@types/ejs": "^3.1.5",
|
|
37
37
|
"@types/node": "^22.13.4",
|
|
38
38
|
"@types/parse-gitignore": "^1.0.2",
|
|
@@ -42,5 +42,11 @@
|
|
|
42
42
|
"vitest": "^3.0.8",
|
|
43
43
|
"vitest-fetch-mock": "^0.4.5"
|
|
44
44
|
},
|
|
45
|
-
"scripts": {
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc",
|
|
47
|
+
"dev": "tsc --watch",
|
|
48
|
+
"test": "eslint ./src && vitest run",
|
|
49
|
+
"test:watch": "vitest",
|
|
50
|
+
"test:coverage": "vitest run --coverage"
|
|
51
|
+
}
|
|
46
52
|
}
|
package/src/create-app.ts
CHANGED
|
@@ -241,13 +241,23 @@ Errors were encountered during the creation of your app:
|
|
|
241
241
|
${environment.getErrors().join('\n')}`
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
+
// Check if we created in current directory (user specified ".")
|
|
245
|
+
const isCurrentDirectory =
|
|
246
|
+
resolve(options.targetDir) === resolve(process.cwd())
|
|
247
|
+
const locationMessage = isCurrentDirectory
|
|
248
|
+
? `Your ${environment.appName} app is ready.`
|
|
249
|
+
: `Your ${environment.appName} app is ready in '${basename(options.targetDir)}'.`
|
|
250
|
+
const cdInstruction = isCurrentDirectory
|
|
251
|
+
? ''
|
|
252
|
+
: `% cd ${options.projectName}
|
|
253
|
+
`
|
|
254
|
+
|
|
244
255
|
// Use the force luke! :)
|
|
245
256
|
environment.outro(
|
|
246
|
-
|
|
257
|
+
`${locationMessage}
|
|
247
258
|
|
|
248
259
|
Use the following commands to start your app:
|
|
249
|
-
%
|
|
250
|
-
% ${formatCommand(
|
|
260
|
+
${cdInstruction}% ${formatCommand(
|
|
251
261
|
getPackageManagerScriptCommand(options.packageManager, ['dev']),
|
|
252
262
|
)}
|
|
253
263
|
|