@tanstack/cta-engine 0.16.0 → 0.16.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/dist/create-app.js +1 -1
- package/dist/frameworks.js +1 -1
- package/package.json +1 -1
- package/src/create-app.ts +1 -1
- package/src/frameworks.ts +3 -1
- package/tests/frameworks.test.ts +1 -0
package/dist/create-app.js
CHANGED
|
@@ -171,7 +171,7 @@ Use the following commands to start your app:
|
|
|
171
171
|
% cd ${options.projectName}
|
|
172
172
|
% ${formatCommand(getPackageManagerScriptCommand(options.packageManager, ['dev']))}
|
|
173
173
|
|
|
174
|
-
Please
|
|
174
|
+
Please read the README.md for information on testing, styling, adding routes, etc.${errorStatement}`);
|
|
175
175
|
}
|
|
176
176
|
export async function createApp(environment, options) {
|
|
177
177
|
environment.startRun();
|
package/dist/frameworks.js
CHANGED
|
@@ -95,7 +95,7 @@ export function getFrameworkById(id) {
|
|
|
95
95
|
return frameworks.find((framework) => framework.id === id);
|
|
96
96
|
}
|
|
97
97
|
export function getFrameworkByName(name) {
|
|
98
|
-
return frameworks.find((framework) => framework.name === name);
|
|
98
|
+
return frameworks.find((framework) => framework.name.toLowerCase() === name.toLowerCase());
|
|
99
99
|
}
|
|
100
100
|
export function getFrameworks() {
|
|
101
101
|
return frameworks;
|
package/package.json
CHANGED
package/src/create-app.ts
CHANGED
|
@@ -233,7 +233,7 @@ Use the following commands to start your app:
|
|
|
233
233
|
getPackageManagerScriptCommand(options.packageManager, ['dev']),
|
|
234
234
|
)}
|
|
235
235
|
|
|
236
|
-
Please
|
|
236
|
+
Please read the README.md for information on testing, styling, adding routes, etc.${errorStatement}`,
|
|
237
237
|
)
|
|
238
238
|
}
|
|
239
239
|
|
package/src/frameworks.ts
CHANGED
|
@@ -141,7 +141,9 @@ export function getFrameworkById(id: string) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
export function getFrameworkByName(name: string) {
|
|
144
|
-
return frameworks.find(
|
|
144
|
+
return frameworks.find(
|
|
145
|
+
(framework) => framework.name.toLowerCase() === name.toLowerCase(),
|
|
146
|
+
)
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
export function getFrameworks() {
|
package/tests/frameworks.test.ts
CHANGED
|
@@ -57,6 +57,7 @@ describe('registerFramework', () => {
|
|
|
57
57
|
expect(fileContents).toEqual(JSON.stringify(basePackageJSON))
|
|
58
58
|
|
|
59
59
|
expect(getFrameworkByName('Test')).not.toBeUndefined()
|
|
60
|
+
expect(getFrameworkByName('test')).not.toBeUndefined()
|
|
60
61
|
expect(getFrameworks().length).toEqual(1)
|
|
61
62
|
})
|
|
62
63
|
})
|