Harden public package installation and release validation
Some checks failed
Release package / package (macos-latest) (push) Has been cancelled
Release package / package (ubuntu-latest) (push) Has been cancelled
Release package / package (windows-latest) (push) Has been cancelled

This commit is contained in:
oliver 2026-10-11 13:32:36 +08:00
parent 9271494b37
commit 9b2166e5b6
41 changed files with 994 additions and 363 deletions

View file

@ -9,7 +9,7 @@ const read = (path) => readFile(resolve(root, path), 'utf8')
test('package declares Desktop 0.2 client contract', async () => {
const pkg = JSON.parse(await read('package.json'))
assert.equal(pkg.version, '0.1.69')
assert.match(pkg.version, /^\d+\.\d+\.\d+$/)
assert.equal(pkg.engines.node, '>=20')
assert.equal(pkg.dsh.client.immediately, false)
assert.deepEqual(pkg.dsh.client.inject, [