Skip to content

Commit 5a053dc

Browse files
hotfix: resolve wasm in npm install
1 parent 35d2ccd commit 5a053dc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gamely/prometheus-cli",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Lua Obfuscator written in pure Lua (distributed as npm node-js)",
55
"license": "AGPL-3.0-only",
66
"homepage": "https://levno-710.gitbook.io/prometheus/",

src/cli.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import cli from "../dist/cli.txt" assert { type: "text" };
99

1010
async function main() {
1111
const script = zlib.inflateRawSync(Buffer.from(cli, 'base64')).toString();
12-
const url = fileURLToPath(import.meta.url)
1312
const lua = await Lua.create({
14-
customWasmUri: path.join(path.dirname(url), '..', 'lib', 'liblua5.1.wasm')
13+
customWasmUri: (new URL('../lib/liblua5.1.wasm', import.meta.url)).toString()
1514
});
1615

1716
lua.global.set('arg', process.argv.slice(1))

0 commit comments

Comments
 (0)