You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to publish @tauri-apps/cli package to JSR to make it easier for deno projects to consume. We also want to publish @tauri-apps/api as well and benefit from automatic documentation.
Our current CLI is written in Rust and uses NAPI-rs to generate a .node module and is published in a separate package for each OS+Arch combination, see https://www.npmjs.com/package/@tauri-apps/cli-win32-arm64-msvc. It is currently published to NPM and can work with deno project using npm: specifier.
However, when I have attempted to publish it to JSR in this commit tauri-apps/tauri@b01893d I have ran into issues:
package.json > bin field doesn't seem to be respected and deno task tauri doesn't seem to run the CLI script (I added "tauri": "tauri" in tasks in deno.json which works with npm: specifier).
JSR requires at least one export but @tauri-apps/cli-win32-arm64-msvc doesn't have any entry points and only includes a .node file that will be required by the main @tauri-apps/cli.
deno add @tauri-apps/cli or deno install doesn't automatically pull the relevant package for the OS+Arch, for example on Windows x64, it should also pull @tauri-apps/cli-win32-x64-msvc
I am trying to publish
@tauri-apps/cli
package to JSR to make it easier for deno projects to consume. We also want to publish@tauri-apps/api
as well and benefit from automatic documentation.Our current CLI is written in Rust and uses NAPI-rs to generate a
.node
module and is published in a separate package for each OS+Arch combination, see https://www.npmjs.com/package/@tauri-apps/cli-win32-arm64-msvc. It is currently published to NPM and can work with deno project usingnpm:
specifier.However, when I have attempted to publish it to JSR in this commit tauri-apps/tauri@b01893d I have ran into issues:
package.json > bin
field doesn't seem to be respected anddeno task tauri
doesn't seem to run the CLI script (I added"tauri": "tauri"
intasks
in deno.json which works withnpm:
specifier).@tauri-apps/cli-win32-arm64-msvc
doesn't have any entry points and only includes a.node
file that will be required by the main@tauri-apps/cli
.deno add @tauri-apps/cli
ordeno install
doesn't automatically pull the relevant package for the OS+Arch, for example on Windows x64, it should also pull@tauri-apps/cli-win32-x64-msvc
Current published packages to test and inspect:
@tauri-apps/cli
: https://jsr.io/@tauri-apps/[email protected]@tauri-apps/cli-win32-x64-msvc
: https://jsr.io/@tauri-apps/[email protected]The text was updated successfully, but these errors were encountered: