diff --git a/packages/libnode-common/test/smoke.test.ts b/packages/libnode-common/test/smoke.test.ts index a8aec2765..b3930d457 100644 --- a/packages/libnode-common/test/smoke.test.ts +++ b/packages/libnode-common/test/smoke.test.ts @@ -1,14 +1,20 @@ // Loads a real libnode pack from a C program (smoke/smoke.c) the way the // scriptc runtime does. Packs are not built by the ordinary build, so this // runs only when SCRIPTC_LIBNODE names a pack directory (a CI artifact of -// the libnode-packs workflow, or a local build:native output). +// the libnode-packs workflow, or a local build:native output). CI's +// fallback development pack (dev-pack.json) is not a package: it has no +// package.json and may carry a different Node patch release, so it is +// exercised by the Node island tests instead. +import { existsSync } from "node:fs"; +import { join } from "node:path"; import { describe, expect, test } from "vitest"; import { verifyPack } from "../scripts/verify.mjs"; import { expectedTranscript, runSmoke } from "../scripts/smoke.mjs"; const pack = process.env["SCRIPTC_LIBNODE"]; +const isPackage = pack !== undefined && pack !== "" && existsSync(join(pack, "package.json")); -describe.skipIf(pack === undefined || pack === "")("libnode pack smoke test", () => { +describe.skipIf(!isPackage)("libnode pack smoke test", () => { test("the pack is complete", () => { expect(verifyPack(pack!)).toEqual([]); }); diff --git a/packages/libnode-darwin-arm64/package.json b/packages/libnode-darwin-arm64/package.json index e94c84e53..8c91e25e2 100644 --- a/packages/libnode-darwin-arm64/package.json +++ b/packages/libnode-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@scriptc/libnode-darwin-arm64", - "version": "0.4.1", + "version": "0.4.2", "private": true, "description": "Prebuilt Node.js shared library and scriptc bridge for Node islands on macOS arm64", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/libnode-darwin-x64/package.json b/packages/libnode-darwin-x64/package.json index 6622effe9..796d5eb6a 100644 --- a/packages/libnode-darwin-x64/package.json +++ b/packages/libnode-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@scriptc/libnode-darwin-x64", - "version": "0.4.1", + "version": "0.4.2", "private": true, "description": "Prebuilt Node.js shared library and scriptc bridge for Node islands on macOS x64", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/libnode-linux-arm64-gnu/package.json b/packages/libnode-linux-arm64-gnu/package.json index 50b1a8085..2b6e9b66f 100644 --- a/packages/libnode-linux-arm64-gnu/package.json +++ b/packages/libnode-linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@scriptc/libnode-linux-arm64-gnu", - "version": "0.4.1", + "version": "0.4.2", "private": true, "description": "Prebuilt Node.js shared library and scriptc bridge for Node islands on Linux arm64 glibc", "license": "SEE LICENSE IN LICENSE", diff --git a/packages/libnode-linux-x64-gnu/package.json b/packages/libnode-linux-x64-gnu/package.json index e533a5402..05e36bd1e 100644 --- a/packages/libnode-linux-x64-gnu/package.json +++ b/packages/libnode-linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@scriptc/libnode-linux-x64-gnu", - "version": "0.4.1", + "version": "0.4.2", "private": true, "description": "Prebuilt Node.js shared library and scriptc bridge for Node islands on Linux x64 glibc", "license": "SEE LICENSE IN LICENSE",