We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77f8331 commit 2b9d9fbCopy full SHA for 2b9d9fb
src/stable/build/commands/generate/index.ts
@@ -15,7 +15,9 @@ import { candid_to_ts_js } from './rust/candid_to_ts_js/pkg/candid_to_ts_js';
15
*/
16
export async function runCommand(candidPath: string): Promise<void> {
17
const candid = await readFile(candidPath, 'utf-8');
18
- const result = candid_to_ts_js(candid);
+ const result = candid_to_ts_js(candid) as string;
19
+ // TODO remove this replacement once the candid JavaScript and TypeScript bindings are updated with @icp-sdk/core instead of @dfinity
20
+ const updatedResult = result.replaceAll('@dfinity/', '@icp-sdk/core/');
21
- process.stdout.write(result);
22
+ process.stdout.write(updatedResult);
23
}
0 commit comments