From 80b0130a385c2a20b7ed24892d766471bf7b4330 Mon Sep 17 00:00:00 2001 From: Vishniakov Nikolai Date: Fri, 8 Mar 2024 10:59:59 +0100 Subject: [PATCH] [OV JS] Fix package.json files (#23304) (#23305) Port of: https://github.com/openvinotoolkit/openvino/pull/23304 ### Details: - Remove unnecessary run - Fix run unit tests command - Update min Node.js version in samples --- samples/js/node/package-lock.json | 4 ++-- samples/js/node/package.json | 2 +- src/bindings/js/node/package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/js/node/package-lock.json b/samples/js/node/package-lock.json index b18888f2268..906a12b3c47 100644 --- a/samples/js/node/package-lock.json +++ b/samples/js/node/package-lock.json @@ -17,12 +17,12 @@ "openvino-node": "file:../../../src/bindings/js/node/" }, "engines": { - "node": ">=18.16.0" + "node": ">=20.5.1" } }, "../../../src/bindings/js/node": { "name": "openvino-node", - "version": "2024.0.0-14428.dev20240212", + "version": "2024.0.0", "dev": true, "hasInstallScript": true, "license": "Apache-2.0", diff --git a/samples/js/node/package.json b/samples/js/node/package.json index 4a5533f9bda..719c9f1e22a 100644 --- a/samples/js/node/package.json +++ b/samples/js/node/package.json @@ -14,6 +14,6 @@ "lint": "eslint ." }, "engines": { - "node": ">=18.16.0" + "node": ">=20.5.1" } } diff --git a/src/bindings/js/node/package.json b/src/bindings/js/node/package.json index 27636cc41d5..bd1dbcf51c1 100644 --- a/src/bindings/js/node/package.json +++ b/src/bindings/js/node/package.json @@ -18,9 +18,9 @@ "build": "npm run tsc", "prepare": "npm run build", "lint": "eslint .", - "test": "node --test ./tests/", + "test": "node --test", "tsc": "tsc", - "postinstall": "npm run install_runtime && npm run build", + "postinstall": "npm run install_runtime", "download_runtime": "node ./scripts/download_runtime.js", "install_runtime": "npm run download_runtime -- --ignore-if-exists" },