Make tsc happier

This commit is contained in:
Michael Telatynski
2026-06-08 11:42:00 +01:00
parent 788c76d677
commit af74f511ed
9 changed files with 109 additions and 17 deletions
+2 -2
View File
@@ -6,8 +6,8 @@
"main": "lib/index.js",
"license": "SEE LICENSE IN README.md",
"scripts": {
"build": "vite build",
"lint:types": "tsc --noEmit"
"build": "nx build",
"lint:types": "nx lint:types"
},
"devDependencies": {
"@arcmantle/vite-plugin-import-css-sheet": "^1.0.12",
+21
View File
@@ -0,0 +1,21 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"targets": {
"build": {
"cache": true,
"command": "vite build",
"inputs": ["src"],
"outputs": ["{projectRoot}/lib"],
"options": { "cwd": "modules/banner" },
"dependsOn": ["^build"]
},
"lint:types": {
"command": "tsc --noEmit",
"options": {
"cwd": "modules/banner"
},
"dependsOn": ["^build"]
}
}
}
+2 -2
View File
@@ -6,8 +6,8 @@
"main": "lib/index.js",
"license": "SEE LICENSE IN README.md",
"scripts": {
"build": "vite build",
"lint:types": "tsc --noEmit"
"build": "nx build",
"lint:types": "nx lint:types"
},
"devDependencies": {
"@arcmantle/vite-plugin-import-css-sheet": "^1.0.12",
+21
View File
@@ -0,0 +1,21 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"targets": {
"build": {
"cache": true,
"command": "vite build",
"inputs": ["src"],
"outputs": ["{projectRoot}/lib"],
"options": { "cwd": "modules/restricted-guests" },
"dependsOn": ["^build"]
},
"lint:types": {
"command": "tsc --noEmit",
"options": {
"cwd": "modules/restricted-guests"
},
"dependsOn": ["^build"]
}
}
}
+3 -3
View File
@@ -6,9 +6,9 @@
"main": "lib/index.js",
"license": "SEE LICENSE IN README.md",
"scripts": {
"build": "vite build",
"lint:types": "tsc --noEmit",
"test:unit": "vitest run"
"build": "nx build",
"lint:types": "nx lint:types",
"test:unit": "nx test:unit"
},
"devDependencies": {
"@element-hq/element-web-module-api": "workspace:*",
+25
View File
@@ -0,0 +1,25 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"targets": {
"build": {
"cache": true,
"command": "vite build",
"inputs": ["src"],
"outputs": ["{projectRoot}/lib"],
"options": { "cwd": "modules/widget-lifecycle" },
"dependsOn": ["^build"]
},
"test:unit": {
"command": "vitest run",
"options": { "cwd": "modules/widget-lifecycle" }
},
"lint:types": {
"command": "tsc --noEmit",
"options": {
"cwd": "modules/widget-lifecycle"
},
"dependsOn": ["^build"]
}
}
}
+3 -3
View File
@@ -6,9 +6,9 @@
"main": "lib/index.js",
"license": "SEE LICENSE IN README.md",
"scripts": {
"build": "vite build",
"lint:types": "tsc --noEmit",
"test:unit": "vitest run"
"build": "nx build",
"lint:types": "nx lint:types",
"test:unit": "nx test:unit"
},
"devDependencies": {
"@arcmantle/vite-plugin-import-css-sheet": "^1.0.12",
+25
View File
@@ -0,0 +1,25 @@
{
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "library",
"targets": {
"build": {
"cache": true,
"command": "vite build",
"inputs": ["src"],
"outputs": ["{projectRoot}/lib"],
"options": { "cwd": "modules/widget-toggles" },
"dependsOn": ["^build"]
},
"test:unit": {
"command": "vitest run",
"options": { "cwd": "modules/widget-toggles" }
},
"lint:types": {
"command": "tsc --noEmit",
"options": {
"cwd": "modules/widget-toggles"
},
"dependsOn": ["^build"]
}
}
}