-
Hi, I'm migrating one of my repos from yarn to pnpm and so far things are looking great. Unfortunately only one thing is not working which is super crucial. The Polkadot JS typegen is build in a way that we need to add the {
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@polkadot/api/augment": ["sdk/types/src/interfaces/augment-api.ts"],
"@polkadot/types/augment": ["sdk/types/src/interfaces/augment-types.ts"],
}
}
} This is used in auto generated types which are huge ( 4000 loc ) using the same namespace as one overwritten in the tsconfig like this // ...
import type { AnyNumber, Codec, IExtrinsic, Observable } from '@polkadot/types/augment'
// ... This above resolves to the original types provided by the packages, even vscode start resolving it wrongly. Any idea how this can be done so i don't have to manually change the lines? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
after some time of debugging the polkadot guys completely forgot to mention to install main dep of |
Beta Was this translation helpful? Give feedback.
after some time of debugging the polkadot guys completely forgot to mention to install main dep of
@polkadot/rpc-core