Skip to content

Commit

Permalink
feat: use static imports in @validateArgs(), elaborate errors (#7407)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Nov 19, 2024
1 parent 5e6a537 commit ef68078
Show file tree
Hide file tree
Showing 48 changed files with 2,337 additions and 6,124 deletions.
6 changes: 5 additions & 1 deletion packages/cc/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"compilerOptions": {
"plugins": [
{
"transform": "@zwave-js/transformers"
"transform": "@zwave-js/transformers/validateArgs/program",
"transformProgram": true
},
{
"transform": "@zwave-js/transformers/validateArgs/decorators"
}
]
},
Expand Down
5 changes: 5 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
"import": "./build/esm/traits/index.js",
"require": "./build/cjs/traits/index.js"
},
"./validation": {
"@@dev": "./src/util/validation.ts",
"import": "./build/esm/util/validation.js",
"require": "./build/cjs/util/validation.js"
},
"./qr": {
"@@dev": "./src/qr/index.ts",
"browser": "./build/esm/qr/index.browser.js",
Expand Down
Loading

0 comments on commit ef68078

Please sign in to comment.