Skip to content

Commit 8b74eb9

Browse files
Export consolePrinter from index.ts
1 parent e8d2e37 commit 8b74eb9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/npm-packages/ruby-wasm-wasi/src/browser.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Fd, WASI } from "@bjorn3/browser_wasi_shim";
2-
import { RubyVM } from "./index.js";
3-
import { consolePrinter } from "./console.js";
2+
import { RubyVM, consolePrinter } from "./index.js";
43

54
export const DefaultRubyVM = async (
65
rubyModule: WebAssembly.Module,

packages/npm-packages/ruby-wasm-wasi/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import {
66
JsAbiValue,
77
} from "./bindgen/rb-js-abi-host.js";
88

9+
export { consolePrinter } from "./console.js";
10+
911
/**
1012
* A Ruby VM instance
1113
*

packages/npm-packages/ruby-wasm-wasi/tools/run-test-unit.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import * as browserWasi from "@bjorn3/browser_wasi_shim";
55
import fs from "fs/promises";
66
import path from "path";
77
import * as nodeWasi from "wasi";
8-
import { RubyVM } from "@ruby/wasm-wasi";
9-
import { consolePrinter } from "@ruby/wasm-wasi/dist/console";
8+
import { RubyVM, consolePrinter } from "@ruby/wasm-wasi";
109

1110
const deriveRubySetup = () => {
1211
let preopens = {}

0 commit comments

Comments
 (0)