Skip to content

Commit

Permalink
Fix tool config type-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
niedzielski committed Feb 27, 2024
1 parent e4d8465 commit 340b1b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
"test:format": "npm run formatter -- --check",
"test:size": "filesize",
"test:types:ui": "lit-analyzer --maxWarnings=0 --rules.no-invalid-css=off --rules.no-missing-element-type-definition --rules.no-unknown-event --rules.no-unknown-attribute=false --strict",
"test:ui": "wtr",
"test:unit": "vitest run",
"test:ui": "wtr --config=tools/web-test-runner.config.js",
"test:unit": "vitest --config=tools/vitest.config.ts run",
"test": "npm run test:format && npm run test:unit && npm run build && npm run test:size && npm run test:types:ui && npm run test:ui",
"version": "npm test"
},
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions web-test-runner.config.js → tools/web-test-runner.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {esbuildPlugin} from '@web/dev-server-esbuild'
import {esbuildConfig} from './tools/esbuild-config.js'
import {esbuildConfig} from './esbuild-config.js'

const base = esbuildConfig('0.0.0', '0.0.1-next-2000-01-01-abcdef123.4')

Expand All @@ -9,7 +9,9 @@ export default {
plugins: [
esbuildPlugin({
...base,
loaders: base.loader,
loaders: /** @type {{[ext: string]: import('esbuild').Loader}} */ (
base.loader
),
target: 'auto',
ts: true,
tsconfig: 'src/elements/test/tsconfig.json'
Expand Down

0 comments on commit 340b1b7

Please sign in to comment.