refactor(#179): migrate Configuration Module to sdk/src/config (#244)

* refactor(#179): migrate configuration module to sdk/src/config

* chore(#179): add changeset for config module path migration
This commit is contained in:
Tom Boucher
2026-05-24 20:49:35 -04:00
committed by GitHub
parent b2a8411e4d
commit 9aae41f22d
14 changed files with 28 additions and 23 deletions

View File

@@ -90,15 +90,15 @@ test('CJS DYNAMIC_KEY_PATTERNS .source fields match manifest dynamicKeyPatterns'
// ─── SDK side: verify config-schema.ts re-exports from configuration module ─
test('SDK config-schema.ts re-exports from configuration module (not inline literals)', () => {
test('SDK config-schema.ts re-exports from config module (not inline literals)', () => {
const SDK_SCHEMA_PATH = path.join(ROOT, 'sdk', 'src', 'query', 'config-schema.ts');
const src = fs.readFileSync(SDK_SCHEMA_PATH, 'utf8');
// After Cycle 5, the file must NOT contain inline key literals.
// It should import/re-export from '../configuration/index.js'.
// It should import/re-export from '../config/index.js'.
assert.ok(
src.includes("from '../configuration/index.js'"),
'sdk/src/query/config-schema.ts must re-export from ../configuration/index.js (not inline literals)',
src.includes("from '../config/index.js'"),
'sdk/src/query/config-schema.ts must re-export from ../config/index.js (not inline literals)',
);
// Must NOT contain a standalone new Set([...]) block with key literals.