This commit is contained in:
Michael Telatynski
2026-06-08 11:19:13 +01:00
parent 2fc6eb717d
commit cf9ee41d06
16 changed files with 129 additions and 138 deletions
+1 -6
View File
@@ -7,12 +7,7 @@
"license": "SEE LICENSE IN README.md",
"scripts": {
"build": "vite build",
"lint": "pnpm lint:types && pnpm lint:js",
"lint:types": "tsc --noEmit",
"lint:js": "eslint --max-warnings 0 src -c ../.eslintrc.cjs",
"test:playwright": "playwright test -c ../playwright.config.ts",
"test:playwright:open": "yarn test:playwright -c ../playwright.config.ts --ui",
"test:playwright:screenshots": "playwright-screenshots yarn test:playwright --update-snapshots --grep @screenshot"
"lint:types": "tsc --noEmit"
},
"devDependencies": {
"@element-hq/element-web-module-api": "workspace:*",
+4 -7
View File
@@ -7,11 +7,12 @@ Please see LICENSE files in the repository root for full details.
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
import { mergeConfig } from "vitest/config";
import baseConfig from "@element-hq/element-web-module-api/vite.base.ts";
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
export default mergeConfig(baseConfig, {
build: {
lib: {
entry: resolve(__dirname, "src/index.ts"),
@@ -19,10 +20,6 @@ export default defineConfig({
fileName: "index",
formats: ["es"],
},
outDir: "lib",
target: "esnext",
sourcemap: true,
minify: false,
},
test: {
include: ["tests/**/*.test.ts"],
@@ -31,7 +28,7 @@ export default defineConfig({
coverage: {
provider: "v8",
include: ["src/**/*.ts"],
reporter: [["lcov", { projectRoot: "../../../" }], "text"],
reporter: [["lcov", { projectRoot: "../../" }], "text"],
},
},
});