Skip to content

Commit 8c6d45f

Browse files
feat(create-analog): add support for Vite 5.1 to template apps (#925)
1 parent 789fa06 commit 8c6d45f

File tree

11 files changed

+8
-19
lines changed

11 files changed

+8
-19
lines changed

packages/content/src/lib/content-files-token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const CONTENT_FILES_TOKEN = new InjectionToken<
2525

2626
const newFilename = lookup[filename];
2727
if (newFilename !== undefined) {
28-
objectUsingSlugAttribute[newFilename] = value;
28+
objectUsingSlugAttribute[newFilename] = value as () => Promise<string>;
2929
}
3030
});
3131

packages/content/src/lib/get-content-files.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ export const getContentFilesList = () =>
2222
*/
2323
export const getContentFiles = () =>
2424
import.meta.glob(['/src/content/**/*.md', '/src/content/**/*.agx'], {
25-
as: 'raw',
25+
query: '?raw',
26+
import: 'default',
2627
});

packages/create-analog/template-angular-v17/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"nx": "~18.0.0",
4646
"jsdom": "^22.1.0",
4747
"typescript": "~5.3.0",
48-
"vite": "~5.0.0",
48+
"vite": "^5.0.0",
4949
"vitest": "^1.3.1"
5050
}
5151
}

packages/create-analog/template-angular-v17/tsconfig.app.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"composite": false,
65
"outDir": "./out-tsc/app",
76
"types": []
87
},

packages/create-analog/template-angular-v17/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,5 @@
2727
"strictInjectionParameters": true,
2828
"strictInputAccessModifiers": true,
2929
"strictTemplates": true
30-
},
31-
"references": [
32-
{ "path": "tsconfig.app.json" },
33-
{ "path": "tsconfig.spec.json" }
34-
]
30+
}
3531
}

packages/create-analog/template-angular-v17/tsconfig.spec.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"composite": false,
65
"outDir": "./out-tsc/spec",
76
"target": "es2016",
87
"types": ["node", "vitest/globals"]

packages/create-analog/template-blog/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"nx": "~18.0.0",
4646
"jsdom": "^22.1.0",
4747
"typescript": "~5.3.0",
48-
"vite": "~5.0.0",
48+
"vite": "^5.0.0",
4949
"vitest": "^1.3.1"
5050
}
5151
}

packages/create-analog/template-blog/tsconfig.app.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"composite": false,
65
"outDir": "./out-tsc/app",
76
"types": []
87
},

packages/create-analog/template-blog/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,5 @@
2727
"strictInjectionParameters": true,
2828
"strictInputAccessModifiers": true,
2929
"strictTemplates": true
30-
},
31-
"references": [
32-
{ "path": "tsconfig.app.json" },
33-
{ "path": "tsconfig.spec.json" }
34-
]
30+
}
3531
}

packages/create-analog/template-blog/tsconfig.spec.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
{
33
"extends": "./tsconfig.json",
44
"compilerOptions": {
5-
"composite": false,
65
"outDir": "./out-tsc/spec",
76
"target": "es2016",
87
"types": ["node", "vitest/globals"]

0 commit comments

Comments
 (0)