release 1.0.1: publish as @coulomb/testdrive-jsui to the coulomb Forgejo npm registry
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

Scoped name, publishConfig.registry, secret-free .npmrc (token from
NPM_AUTH_TOKEN env), changelog (1.0.0 tagged but never published), install
docs without public-CDN claims, consumer smoke uses the package name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

Assistant: claude-code
Assistant-Model: sonnet
Assistant-Process: 299063@bnt-lap001
Assistant-Session: 53eb1e1c-c13a-4277-9ce2-3702960d93f7
This commit is contained in:
tegwick 2026-10-03 00:53:03 +02:00
parent d748e2fa22
commit 71a2a1e52c
7 changed files with 34 additions and 19 deletions

View file

@ -9,6 +9,7 @@ trap 'rm -rf "$TMP"' EXIT
cd "$ROOT" && npm run build:prod >/dev/null
TARBALL="$(npm pack --pack-destination "$TMP" 2>/dev/null | tail -1)"
cd "$TMP" && npm init -y >/dev/null
PKG="$(node -p "require('$ROOT/package.json').name")"
npm i --no-audit --no-fund marked@13 jsdom "./$TARBALL" >/dev/null 2>&1
SETUP="const {JSDOM}=require('jsdom');const d=new JSDOM('<!doctype html><body></body>',{url:'http://localhost/'});
globalThis.window=globalThis;globalThis.document=d.window.document;globalThis.location=d.window.location;
@ -19,7 +20,7 @@ check() { # check <marker> <label> <node args...>
local out; out="$(node "$@" 2>&1 || true)"
grep -q "^$marker" <<<"$out" || { echo "FAIL: $label"; exit 1; }
}
check 'CJS ok' "CJS require" -e "$SETUP const m=require('testdrive-jsui');console.log('CJS ok',typeof m)"
check 'ESM ok' "ESM import" -e "$SETUP import('testdrive-jsui').then(m=>console.log('ESM ok',typeof m.default))"
check 'CSS ok' "style.css" -e "console.log('CSS ok',require.resolve('testdrive-jsui/style.css'))"
check 'CJS ok' "CJS require" -e "$SETUP const m=require('$PKG');console.log('CJS ok',typeof m)"
check 'ESM ok' "ESM import" -e "$SETUP import('$PKG').then(m=>console.log('ESM ok',typeof m.default))"
check 'CSS ok' "style.css" -e "console.log('CSS ok',require.resolve('$PKG/style.css'))"
echo "consumer smoke: ESM, CJS, CSS ok"