Files
gnome-jarvis/packaging/bare-smoke.js
T
snxraven a3314db1e9
Rolling release / release (push) Canceled after 14m9s
CI / verify (push) Canceled after 14m18s
Run daemon on packaged Bare runtime
2026-09-11 15:52:53 -04:00

12 lines
658 B
JavaScript

import fs from 'node:fs';
import path from 'node:path';
import os from 'node:os';
import { EventEmitter } from 'node:events';
if (!globalThis.Bare) throw new Error('Bare runtime was not detected');
if (typeof fs.readFileSync !== 'function') throw new Error('bare-fs mapping is missing');
if (path.join('jarvis', 'qvac') !== 'jarvis/qvac') throw new Error('bare-path mapping is missing');
if (typeof os.tmpdir !== 'function') throw new Error('bare-os mapping is missing');
if (typeof EventEmitter !== 'function') throw new Error('bare-events mapping is missing');
console.log(JSON.stringify({ runtime: 'bare', version: Bare.version, tmpdir: os.tmpdir() }));