T1.1: tsconfig.core.json (types: []) covers src/core; typecheck runs both passes, so process/Buffer in core fail compilation. tests/core-types.test.ts compiles a fixture with Node globals under both configs and rejects config errors as false positives. The fixture is excluded from the root tsconfig. O-2: devDependencies pinned to the locked versions, .npmrc save-exact=true. Lock updated only in the root specifiers: npm install on macOS would prune optional rolldown binaries for other platforms. Refs #3 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QKHeGuAYh4W1jNdjMConZa
5 lines
296 B
TypeScript
5 lines
296 B
TypeScript
// Фикстура для tests/core-types.test.ts: core-конфиг обязан отвергать Node-глобалы.
|
|
// Исключена из tsconfig.json, проверяется только тестом.
|
|
export const env = process.env.NODE_ENV;
|
|
export const bytes = Buffer.from('x');
|