diff --git a/.github/workflows/python.yaml b/archive/python.yaml similarity index 100% rename from .github/workflows/python.yaml rename to archive/python.yaml diff --git a/.github/workflows/rust.yaml b/archive/rust.yaml similarity index 100% rename from .github/workflows/rust.yaml rename to archive/rust.yaml diff --git a/extensions/vscode/scripts/prepackage.js b/extensions/vscode/scripts/prepackage.js index 90896f45b..5c1428677 100644 --- a/extensions/vscode/scripts/prepackage.js +++ b/extensions/vscode/scripts/prepackage.js @@ -91,13 +91,19 @@ if (args[2] === "--target") { process.chdir("../extensions/vscode"); // onnxruntime-node - ncp( - path.join(__dirname, "../../../core/node_modules/onnxruntime-node/bin"), - path.join(__dirname, "../bin"), - (error) => { - if (error) console.warn("Error copying onnxruntime-node files", error); - } - ); + await new Promise((resolve, reject) => { + ncp( + path.join(__dirname, "../../../core/node_modules/onnxruntime-node/bin"), + path.join(__dirname, "../bin"), + (error) => { + if (error) { + console.warn("Error copying onnxruntime-node files", error); + reject(error); + } + resolve(); + } + ); + }); if (target) { // If building for production, only need the binaries for current platform if (!target.startsWith("darwin")) {