Skip to content

Commit b1e0d20

Browse files
build: Make steep happy
1 parent 30ff735 commit b1e0d20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/ruby_wasm/cli.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,9 @@ def root
270270
# as part of ruby_wasm gem to backport fixes or try experimental features
271271
# before landing them to the ruby/ruby repository.
272272
def self.bundled_patches_path
273-
lib_source_root = File.join(__dir__, "..", "..")
273+
dir = __dir__
274+
raise "Unexpected directory structure, no __dir__!??" unless dir
275+
lib_source_root = File.join(dir, "..", "..")
274276
File.join(lib_source_root, "patches")
275277
end
276278

sig/ruby_wasm/packager.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RubyWasm::Packager
2323
@definition: untyped
2424
@config: build_config
2525

26-
def initialize: (build_config?, untyped?) -> void
26+
def initialize: (string root, build_config?, untyped? definition) -> void
2727

2828
def package: (RubyWasm::BuildExecutor, string dest_dir, untyped options) -> Array[Integer]
2929

0 commit comments

Comments
 (0)