Skip to content

Commit 929377c

Browse files
committed
Bump javy version
1 parent 8556fa3 commit 929377c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ This is just a small example of what PromptL can do. It is a powerful tool that
6868

6969
To build the JavaScript library, run `pnpm build:lib`.
7070

71-
To build the universal WASM module with RPC, first install [`javy`](https://github.com/bytecodealliance/javy/releases) and then run `pnpm build:rpc`.
71+
To build the universal WASM module with RPC, first install [`javy`](https://github.com/bytecodealliance/javy/releases) `6.0.0` or higher, and then run `pnpm build:rpc`.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"scripts": {
2727
"dev": "rollup -c -w",
2828
"build": "rollup -c",
29+
"build:lib": "rollup -c rollup.config.mjs",
2930
"build:rpc": "rollup -c rollup.config.rpc.mjs",
3031
"test": "vitest run",
3132
"test:watch": "vitest",

rollup.config.rpc.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ export default {
4141
exclude: ['**/__tests__', '**/*.test.ts'],
4242
}),
4343
execute([
44+
[
45+
'javy --version |',
46+
'grep -q "6.0.0" ||',
47+
'(echo "\x1b[0;31mJavy 6.0.0 required\x1b[0m"',
48+
'&& exit 1)',
49+
].join(' '),
4450
[
4551
'javy build',
4652
'-C dynamic=n',
47-
'-C source-compression=y',
53+
'-C source=compressed',
4854
'-J javy-stream-io=y',
4955
'-J simd-json-builtins=y',
5056
'-J text-encoding=y',

0 commit comments

Comments
 (0)