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
When installing this package in an NPM project and trying to typecheck with tsc:
node_modules/.pnpm/@[email protected]/node_modules/@jsr/iroha__core/_dist/crypto/mod.d.ts:56:23 - error TS2307: Cannot find module './wasm/iroha_crypto_wasm.d.ts' or its corresponding type declarations.
56 import * as wasm from "./wasm/iroha_crypto_wasm.d.ts";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/.pnpm/@[email protected]/node_modules/@jsr/iroha__core/_dist/crypto/util.d.ts:1:41 - error TS2307: Cannot find module './wasm/iroha_crypto_wasm.d.ts' or its corresponding type declarations.
1 import type { Bytes as WasmBytes } from "./wasm/iroha_crypto_wasm.d.ts";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And indeed, when I look into the _dist directory, I don't see the wasm/iroha_crypto_wasm.d.ts file:
upd: while experimenting with using inlined-wasm approach, I found that it is not related to @ts-self-types. See here: https://jsr.io/@iroha/core/0.0.13/crypto. There is wasm dir with .js and according .d.ts file. It is absent in the _dist dir.
0x009922
changed the title
_dist in npm tarball is missing entries when using @ts-self-types="..."_dist in npm tarball is missing entries when there are .js + .d.ts files
Mar 13, 2025
See here: https://jsr.io/@iroha/core/0.2.1/cryptoSee my comment below. Refer to https://jsr.io/@iroha/core/0.0.13/cryptoThere is
wasm.js
andwasm
directory.wasm.js
has// @ts-self-types="./wasm/iroha_crypto_wasm.d.ts"
.When installing this package in an NPM project and trying to typecheck with
tsc
:And indeed, when I look into the
_dist
directory, I don't see thewasm/iroha_crypto_wasm.d.ts
file:For reference, here is the non-
.d.ts
layer of the tarball:The text was updated successfully, but these errors were encountered: