chore(release): dual ESM/CJS build via tsup; fix packaging; 26.07.0-beta.0

Packaging was broken for consumers: `main` resolved to a nonexistent
dist/index.js (tsc emitted dist/src/index.js), and the tarball shipped
tests, benches and sources. Build with tsup to emit CJS + ESM (+ types)
behind an `exports` map so `require` and `import` both resolve; a
createRequire banner keeps the lazy require('ws')/require('busboy') working
under ESM. Add the `files` allowlist and a `prepublishOnly` gate.

Bump to the first CalVer beta, published under the npm `beta` dist-tag.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-07 11:59:57 -05:00
1 parent 3ca4c8680e
commit 9d79972f62
4 files changed
+3117 -7

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import { expect, test } from 'vitest';
import { VERSION } from '../src/index';
test('package loads and exposes VERSION', () => {
expect(VERSION).toBe('0.0.0');
test('package loads and exposes a CalVer VERSION', () => {
expect(VERSION).toMatch(/^\d{2}\.\d{2}\.\d+(-beta\.\d+)?$/);
});