diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index 321065a9560601e761cdf83eafca5a9613a9a329..e471f1bb9fb7bfee1ff698641e7db316e6755f33 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -10,6 +10,10 @@ "files": [ "./build/*" ], + "config": { + "gen_version": "3.0.4", + "input_file": "../../incremental/tools/panda/node_modules/@panda/sdk/ohos_arm64/include/tools/es2panda/generated/es2panda_lib/es2panda_lib.idl" + }, "dependencies": { }, "scripts": { @@ -28,6 +32,7 @@ "test": "npm run compile:native && npm run mocha", "run:abc": "../../incremental/tools/panda/node_modules/@panda/sdk/linux_host_tools/bin/ark --load-runtimes=ets --boot-panda-files=../../incremental/tools/panda/node_modules/@panda/sdk/ets/etsstdlib.abc ./main.abc main.ETSGLOBAL::main", "compile:playground": "cd playground && meson setup build && meson compile -C build", - "run:playground": "npm run compile:playground && ./playground/build/playground.out" + "run:playground": "npm run compile:playground && ./playground/build/playground.out", + "regenerate": "npx @idlizer/libarkts-gen@$npm_package_config_gen_version --input-file $npm_package_config_input_file --output-dir ../ --files bridges,nativeModule" } }