From 0bad4b0505f1764d021826e7caa49a9375eff710 Mon Sep 17 00:00:00 2001 From: Korenevskiy Denis Date: Wed, 4 Sep 2024 13:24:50 +0300 Subject: [PATCH] add fake java package descriptor --- java-stub/.empty | 0 java-stub/package.sw.json | 1 + package-lock.json | 4 ++-- package.json | 16 ++++++++++++++-- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 java-stub/.empty create mode 100644 java-stub/package.sw.json diff --git a/java-stub/.empty b/java-stub/.empty new file mode 100644 index 0000000..e69de29 diff --git a/java-stub/package.sw.json b/java-stub/package.sw.json new file mode 100644 index 0000000..5cc8ade --- /dev/null +++ b/java-stub/package.sw.json @@ -0,0 +1 @@ +{"registry":"milaboratories","package":"milaboratory/small-binaries/stub-java-script/1.0.0.tgz"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9425552..21dc551 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@milaboratory/small-binaries", - "version": "1.9.0", + "version": "1.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@milaboratory/small-binaries", - "version": "1.9.0", + "version": "1.10.0", "license": "UNLICENSED", "devDependencies": { "@milaboratory/pl-package-builder": "^2.8.0" diff --git a/package.json b/package.json index e4f43eb..9dc1c5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@milaboratory/small-binaries", - "version": "1.9.0", + "version": "1.10.0", "description": "Small cross-platform binaries, like 'sleep' or 'hello-world', suitable for test needs", "scripts": { "cleanup": "rm -rf ./pkg-*.tgz && rm -rf ./build/ && rm -rf ./dist/", @@ -144,7 +144,19 @@ }, "root": "./python-stub" }, - "cmd": [ "python", "{pkg}/hello.py" ] + "cmd": [ "python", "got fake python by dependency", "pkg={pkg}", "python={python}" ] + } + }, + "stub-java-script": { + "binary": { + "artifact": { + "type": "java", + "registry": "milaboratories", + "version": "1.0.0", + "environment": ":runenv-java-stub", + "root": "./java-stub" + }, + "cmd": [ "java", "got fake java by dependency", "pkg={pkg}", "java={java}" ] } }, "read-file-to-stdout-with-sleep": {