Skip to content

Commit 5a7dfda

Browse files
tonyxiaoclaude
andcommitted
conformance: restore bin field check (without publishConfig)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
1 parent bdea160 commit 5a7dfda

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

e2e/conformance.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const packageDirs = readdirSync(packagesDir, { withFileTypes: true })
1717

1818
interface PkgJson {
1919
name: string
20+
bin?: Record<string, string>
2021
}
2122

2223
function readPkgJson(dir: string): PkgJson {
@@ -159,6 +160,15 @@ describe.each(destinations)('destination: $name', ({ name, mod: initialMod }) =>
159160
describe.each(connectorDirs)('connector bin: %s', (dir) => {
160161
const pkg = readPkgJson(dir)
161162

163+
it('package.json has a bin field pointing to .js', () => {
164+
expect(pkg.bin, 'bin field should exist').toBeDefined()
165+
const binPaths = Object.values(pkg.bin!)
166+
expect(binPaths.length).toBeGreaterThan(0)
167+
for (const p of binPaths) {
168+
expect(p, `bin path "${p}" should point to a .js file`).toMatch(/\.js$/)
169+
}
170+
})
171+
162172
it('createConnectorCli registers correct commands', async () => {
163173
const mod = await import(pkg.name)
164174
const connector = mod.default as Record<string, unknown>

0 commit comments

Comments
 (0)