4 months ago
6e176ecAdd a new test (test/package-import-closure.test.ts) that runs `npm pack --dry-run` and verifies that all relative imports within packaged files resolve to files included in the npm tarball; it also enforces an allowlist and validation for deliberate relative imports into node_modules. Update package.json to stop excluding src/server/jsonrpc/schema.backups.ts and src/shared/jsonrpcControlSchemas.ts from the published files list, and update test/package-manifest.test.ts expectations accordingly because runtime route handlers require these JSON-RPC control schemas to ship. The new tests only run on POSIX CI/dev shells and include resolution heuristics to mirror TS/ESM resolution rules.
Parente98f9b2