Open avalero opened 5 months ago
Fixed updating deno.json
to
{
"name": "@avalero/preact-hooks",
"version": "0.0.5",
"exports": {
".": "./mod.ts",
"./useFetch": "./fetch/useFetch.ts",
"./Fetch": "./fetch/mod.ts"
},
"description": "Preact hooks",
"publish": {
"exclude": [".gitignore", ".vscode", ".github"]
},
"imports": {
"preact": "npm:preact@10.19.6"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
}
}
Are you using this package from a Fresh project?
Problem detected when publishing: https://jsr.io/@avalero/preact-hooks
I have created a custom hook for preact - https://github.com/avalero/preact-hooks The package tries to import
preact
whith npm, as shown in thisdeno.json
Custom hook is as follows and works well when importing preact with esm and using it on Deno Fresh:
But when importing
preact
usingnpm
(as required by jsr.io) it does not work, providing the following error