import { readFileSync } from 'node:fs' import path from 'node:path' import { describe, expect, it } from 'vitest' /** * The published 0.1.2 failed to start with "Cannot find package 'sqlite'": the * bundler stripped the `node:` prefix, and `node:sqlite` exists only under it. */ describe('the CLI bundle keeps the node: protocol', () => { it('tsup is told not to strip it', () => { const config = readFileSync(path.resolve(__dirname, '../../tsup.config.ts'), 'utf8') expect(config).toMatch(/removeNodeProtocol:\s*false/) }) })