Make tsc happier
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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:*",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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",
|
||||
|
||||
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user