Compare commits

...

5 Commits

Author SHA1 Message Date
Hugh Nimmo-Smith
6c16c7ac62 Revert skipLibCheck 2025-01-06 10:44:37 +00:00
Hugh Nimmo-Smith
4be011f89c Merge upstream 2025-01-06 10:15:42 +00:00
Hugh Nimmo-Smith
f09aad25cd Merge branch 'livekit' into hughns/type-check-built-config 2024-12-18 17:32:51 +00:00
Hugh Nimmo-Smith
7783c7290d Only set sentry release name 2024-12-18 13:33:37 +00:00
Hugh Nimmo-Smith
99c5a1a250 Use .ts files for vite config for type safety 2024-12-18 13:32:19 +00:00
4 changed files with 35 additions and 8 deletions

View File

@@ -1,4 +1,13 @@
export default {
/*
Copyright 2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only
Please see LICENSE in the repository root for full details.
*/
import type { UserConfig } from "i18next-parser";
const config: UserConfig = {
keySeparator: ".",
namespaceSeparator: false,
contextSeparator: "|",
@@ -26,3 +35,5 @@ export default {
input: ["src/**/*.{ts,tsx}"],
sort: true,
};
export default config;

View File

@@ -50,6 +50,7 @@
"include": [
"./node_modules/matrix-js-sdk/src/@types/*.d.ts",
"./src/**/*.ts",
"./src/**/*.tsx"
"./src/**/*.tsx",
"*.ts"
]
}

View File

@@ -28,7 +28,8 @@ export default defineConfig(({ mode }) => {
ref: true,
},
}),
htmlTemplate.default({
// types workaround for https://github.com/IndexXuan/vite-plugin-html-template/issues/37
(htmlTemplate as unknown as { default: typeof htmlTemplate }).default({
data: {
title: env.VITE_PRODUCT_NAME || "Element Call",
},
@@ -53,8 +54,9 @@ export default defineConfig(({ mode }) => {
) {
plugins.push(
sentryVitePlugin({
include: "./dist",
release: process.env.VITE_APP_VERSION,
release: {
name: process.env.VITE_APP_VERSION,
},
}),
);
}
@@ -67,7 +69,7 @@ export default defineConfig(({ mode }) => {
sourcemap: true,
rollupOptions: {
output: {
assetFileNames: ({ originalFileNames }) => {
assetFileNames: ({ originalFileNames }): string => {
if (originalFileNames) {
for (const name of originalFileNames) {
// Custom asset name for locales to include the locale code in the filename

View File

@@ -1,5 +1,13 @@
/*
Copyright 2024 New Vector Ltd.
SPDX-License-Identifier: AGPL-3.0-only
Please see LICENSE in the repository root for full details.
*/
import { defineConfig, mergeConfig } from "vitest/config";
import viteConfig from "./vite.config.js";
import viteConfig from "./vite.config";
export default defineConfig((configEnv) =>
mergeConfig(
@@ -16,7 +24,12 @@ export default defineConfig((configEnv) =>
coverage: {
reporter: ["html", "json"],
include: ["src/"],
exclude: ["src/**/*.{d,test}.{ts,tsx}", "src/utils/test.ts"],
exclude: [
"src/**/*.{d,test}.{ts,tsx}",
"src/utils/test.ts",
"src/utils/test-viewmodel.ts",
"src/utils/test-fixtures.ts",
],
},
},
}),