Skip to content

Commit

Permalink
chore: add typesVersions for moduleResolution: node
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec-ant committed Dec 28, 2024
1 parent ea618e0 commit b856d58
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-mugs-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"zxing-wasm": patch
---

Add `typesVersions` field for `moduleResolution: node`
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,22 @@
"./writer/zxing_writer.wasm": "./dist/writer/zxing_writer.wasm",
"./full/zxing_full.wasm": "./dist/full/zxing_full.wasm"
},
"typesVersions": {
"*": {
"full": [
"./dist/es/full/index.d.ts",
"./dist/cjs/full/index.d.ts"
],
"reader": [
"./dist/es/reader/index.d.ts",
"./dist/cjs/reader/index.d.ts"
],
"writer": [
"./dist/es/writer/index.d.ts",
"./dist/cjs/writer/index.d.ts"
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/Sec-ant/zxing-wasm.git"
Expand Down Expand Up @@ -124,6 +140,9 @@
"@types/emscripten": "^1.39.13",
"type-fest": "^4.31.0"
},
"peerDependencies": {
"@types/emscripten": ">=1.39.6"
},
"pnpm": {
"overrides": {
"vite": "$vite"
Expand Down

0 comments on commit b856d58

Please sign in to comment.