build(types): ENG-04 add strict projects and legacy compiler checks

This commit is contained in:
Harvey Zhao committed 2026-09-10 21:21:39 +08:00
1 parent 09902b8b8c
commit 771482426f
22 files changed
+346 -49

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ test('toolchain guard rejects unlocked dependencies, competing locks and the wro
writeManifest({ ...manifest, devDependencies: { ...manifest.devDependencies, 'unlocked-tool': '1.0.0' } })
assert.match(run().stderr, /Lock resolution differs: unlocked-tool/)
writeManifest({ ...manifest, devDependencies: { ...manifest.devDependencies, 'typescript-compat': 'npm:typescript@^4.3.5' } })
assert.match(run().stderr, /Unpinned development dependency: typescript-compat/)
writeManifest(manifest)
fs.writeFileSync(path.join(fixture, 'packages/example/package.json'), JSON.stringify({ name: 'example', dependencies: { 'option-validator': '^99.0.0' } }))
assert.match(run().stderr, /Dependency missing from Yarn lock: option-validator/)