diff --git a/plugins/template-function-1password/package.json b/plugins/template-function-1password/package.json index bb3e7bb6..8fc517df 100644 --- a/plugins/template-function-1password/package.json +++ b/plugins/template-function-1password/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "run-s build:*", "build:1-build": "yaakcli build", - "build:2-cpywasm": "cp \"../../node_modules/@1password/sdk-core/nodejs/core_bg.wasm\" build/", + "build:2-cpywasm": "cpx \"../../node_modules/@1password/sdk-core/nodejs/core_bg.wasm\" build/", "dev": "yaakcli dev" }, "dependencies": { diff --git a/scripts/install-wasm-pack.cjs b/scripts/install-wasm-pack.cjs index 817a813f..0cad3e52 100644 --- a/scripts/install-wasm-pack.cjs +++ b/scripts/install-wasm-pack.cjs @@ -7,7 +7,7 @@ if (version.startsWith('wasm-pack ')) { } console.log('Installing wasm-pack via cargo...'); -execSync('cargo install wasm-pack', { stdio: 'inherit' }); +execSync('cargo install wasm-pack --locked', { stdio: 'inherit' }); function tryExecSync(cmd) { try {