Skip to content

Commit

Permalink
cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Jun 26, 2024
1 parent 88e82b1 commit bf0f814
Show file tree
Hide file tree
Showing 10 changed files with 7,396 additions and 138 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-clients.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env zx
import "zx/globals";
import fs from 'fs';
import fs from 'node:fs';
import * as k from "kinobi";
import {rootNodeFromAnchor} from "@kinobi-so/nodes-from-anchor";
import {renderVisitor as renderJavaScriptVisitor} from "@kinobi-so/renderers-js";
Expand All @@ -10,7 +10,7 @@ import {renderVisitor as renderUmiVisitor} from "@kinobi-so/renderers-js-umi";

// Instanciate Kinobi.
const [idl, ...additionalIdls] = getAllProgramIdls().filter(fs.existsSync).map(idl => rootNodeFromAnchor(require(idl)))
const kinobi = k.createFromRoot(idl);
const kinobi = k.createFromRoot(idl, additionalIdls);

// Update programs.
kinobi.update(
Expand Down
Loading

0 comments on commit bf0f814

Please sign in to comment.