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>
7 lines
206 B
TypeScript
7 lines
206 B
TypeScript
import { expect, test } from 'vitest';
|
|
import { VERSION } from '../src/index';
|
|
|
|
test('package loads and exposes a CalVer VERSION', () => {
|
|
expect(VERSION).toMatch(/^\d{2}\.\d{2}\.\d+(-beta\.\d+)?$/);
|
|
});
|