Open
Description
First of all, thanks for this awesome project.
I'm wondering if I can reference packages to import like cargo component
for ComponentizeJS
(and also for componentize-py
but not tested yet).
The project structure looks like this. The wit package foo
is implemented in another project, and I will combine the implementation component with this component together using wasm-tools
later.
$ tree -I node_modules
.
├── package.json
├── pnpm-lock.yaml
├── source.js
└── wit
├── cli/
├── clocks/
├── filesystem/
├── foo
│ ├── bar.wit
│ └── world.wit
├── http/
├── io/
├── random/
├── sockets/
└── world.wit
But it seems that I can't use jco
and ComponentizeJS
to accomplish this task..
(jco componentize) ComponentError: package not found
--> //?/C:/Users/<USER_NAME>/Desktop/componentized-js-test/wit/world.wit:4:10
|
4 | import wasi:foo/[email protected];
| ^-------
at spliceBindings (file:///C:/Users/<USER_NAME>/AppData/Local/pnpm/global/5/.pnpm/@[email protected]/node_modules/@bytecodealliance/componentize-js/lib/spidermonkey-embedding-splicer.js:3800:11)
at componentize (file:///C:/Users/<USER_NAME>/AppData/Local/pnpm/global/5/.pnpm/@[email protected]/node_modules/@bytecodealliance/componentize-js/src/componentize.js:50:64)
at async componentize (file:///C:/Users/<USER_NAME>/AppData/Local/pnpm/global/5/.pnpm/@[email protected]/node_modules/@bytecodealliance/jco/src/cmd/componentize.js:15:25)
at async file:///C:/Users/<USER_NAME>/AppData/Local/pnpm/global/5/.pnpm/@[email protected]/node_modules/@bytecodealliance/jco/src/jco.js:186:9
To reproduce, please head over to this repo.
Metadata
Assignees
Labels
No labels
Activity