IAPL rename, scripted: preferred names in src, bin, scripts, services, tests; bin files and skill folders moved
Replaced by an explicit list of forms only (ten exported names, runtime env names, project file names and marks, commands, skill names, the log prefix, the brand in prose). Package name, import paths, routes, CSS tokens, data attributes, custom keys, context flags, the cookie and kv keys are not touched. package.json keeps the five old bin names beside the five new ones. The old names stop working in this commit and come back as aliases in the next; docs follow. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
414a4702df
commit
0a4f001797
@@ -48,7 +48,7 @@ export const BRAND_ROLES: readonly ColorRole[] = [
|
||||
|
||||
function check(keys: Iterable<string>, known: Record<string, unknown>, where: string) {
|
||||
for (const key of keys) {
|
||||
if (!(key in known)) {throw new Error(`ipal-kit tokens: unknown ${where} "${key}"`)}
|
||||
if (!(key in known)) {throw new Error(`IAPL tokens: unknown ${where} "${key}"`)}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ export function defineTokens<T extends TokensInput>(input: T): T {
|
||||
check(Object.keys(input.fs ?? {}).map((k) => `fs-${k}`), FLUID_SCALE, 'fs size')
|
||||
check(Object.keys(input.space ?? {}).map((k) => `space-${k}`), FLUID_SCALE, 'space size')
|
||||
if (input.theme && !['both', 'dark', 'light'].includes(input.theme)) {
|
||||
throw new Error(`ipal-kit tokens: theme must be 'both', 'light' or 'dark'`)
|
||||
throw new Error(`IAPL tokens: theme must be 'both', 'light' or 'dark'`)
|
||||
}
|
||||
return input
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user