Amin NAIRI
Run JSR library from NPX
I have built a package that uses Deno internals at https://jsr.io/@aminnairi/tsconfig@0.2.0 but I'm having issues run this package from NPX as per the documentation.
Using the
npx jsr run @aminnairi/tsconfig
command does not work, same thing when used with npx jsr run jsr:@aminnairi/tsconfig
.
Am I missing something? The command deno run -A jsr:@aminnairi/tsconfig
works though.9 replies
Importing from Deno Workspace to NPM workspace
I'm trying to import some shared Zod schemas from the backend (Deno project) to the frontend (React project created using
deno run -A npm:create-vite
) but for some reasons, the LSP finds the file correctly, but it is typed as any
rather than the type of the Zod schema.
I tried creating a shared folder and importing the schemas from the shared folder to the backend and it works perfectly, but importing it from the frontend always gives me any
.
Any insights on this? I tried both on helix
and vscode
, same outcome.2 replies