From d5a0de66eefe8a2a532d2cf7a675b608966e3d6e Mon Sep 17 00:00:00 2001 From: a-tylenda Date: Thu, 1 Feb 2024 11:11:12 +0000 Subject: [PATCH] Fix for javascript sequences --- js/bad-sequence/package.json | 3 +- js/hello-world/package.json | 45 ++++++++++++++-------------- js/hostclient-basic/package.json | 3 +- js/hostclient-start-seq/package.json | 3 +- js/simple-stdio/package.json | 3 +- 5 files changed, 31 insertions(+), 26 deletions(-) diff --git a/js/bad-sequence/package.json b/js/bad-sequence/package.json index df5d9d2a..68586a94 100644 --- a/js/bad-sequence/package.json +++ b/js/bad-sequence/package.json @@ -4,7 +4,8 @@ "description":"Sequence that suppose to crash and return error.", "main": "app.js", "scripts": { - "build:refapps": "node ../../scripts/build-all.js", + "build:refapps": "build:refapps:only", + "build:refapps:only": "mkdir -p dist/ && cp -r *.js package.json dist/ && (cd dist && npm i --omit=dev)", "postbuild:refapps": "yarn packseq", "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", "clean": "rm -rf ./dist" diff --git a/js/hello-world/package.json b/js/hello-world/package.json index a0b6a66a..30575535 100644 --- a/js/hello-world/package.json +++ b/js/hello-world/package.json @@ -1,24 +1,25 @@ { - "name": "@scramjet/hello-world", - "version": "0.0.1", - "main": "index.js", - "author": "a-tylenda", - "license": "GPL-3.0", - "description": "Simple Sequence that prints out 'Hello World!' to the Instance output.", - "keywords": [ - "easy" - ], - "repository": { - "type": "git", - "url": "https://github.com/scramjetorg/reference-apps.git" - }, - "engines": { - "node": ">=14" - }, - "scripts": { - "build:refapps": "node ../../scripts/build-all.js", - "postbuild:refapps": "yarn packseq", - "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", - "clean": "rm -rf ./dist" - } + "name": "@scramjet/hello-world", + "version": "0.0.1", + "main": "index.js", + "author": "a-tylenda", + "license": "GPL-3.0", + "description": "Simple Sequence that prints out 'Hello World!' to the Instance output.", + "keywords": [ + "easy" + ], + "repository": { + "type": "git", + "url": "https://github.com/scramjetorg/reference-apps.git" + }, + "engines": { + "node": ">=14" + }, + "scripts": { + "build:refapps": "build:refapps:only", + "build:refapps:only": "mkdir -p dist/ && cp -r *.js package.json dist/ && (cd dist && npm i --omit=dev)", + "postbuild:refapps": "yarn packseq", + "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", + "clean": "rm -rf ./dist" + } } \ No newline at end of file diff --git a/js/hostclient-basic/package.json b/js/hostclient-basic/package.json index 46a6d79b..ad49f85e 100644 --- a/js/hostclient-basic/package.json +++ b/js/hostclient-basic/package.json @@ -13,7 +13,8 @@ "node": ">=14.0.0" }, "scripts": { - "build:refapps": "node ../../scripts/build-all.js", + "build:refapps": "build:refapps:only", + "build:refapps:only": "mkdir -p dist/ && cp -r *.js package.json dist/ && (cd dist && npm i --omit=dev)", "postbuild:refapps": "yarn packseq", "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", "clean": "rm -rf ./dist" diff --git a/js/hostclient-start-seq/package.json b/js/hostclient-start-seq/package.json index 7b8981f4..a66cca0f 100644 --- a/js/hostclient-start-seq/package.json +++ b/js/hostclient-start-seq/package.json @@ -13,7 +13,8 @@ "node": ">=14.0.0" }, "scripts": { - "build:refapps": "node ../../scripts/build-all.js", + "build:refapps": "build:refapps:only", + "build:refapps:only": "mkdir -p dist/ && cp -r *.js package.json dist/ && (cd dist && npm i --omit=dev)", "postbuild:refapps": "yarn packseq", "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", "clean": "rm -rf ./dist" diff --git a/js/simple-stdio/package.json b/js/simple-stdio/package.json index c7c437d0..17ac51cb 100644 --- a/js/simple-stdio/package.json +++ b/js/simple-stdio/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.js", "scripts": { - "build:refapps": "mkdir -p dist/ && cp -r *.js package.json dist/", + "build:refapps": "build:refapps:only", + "build:refapps:only": "mkdir -p dist/ && cp -r *.js package.json dist/ && (cd dist && npm i --omit=dev)", "postbuild:refapps": "yarn packseq", "packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js", "clean": "rm -rf ./dist"