@tokens-studio/tokenscript-schemas 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +152 -0
- package/bundled/functions/invert.json +23 -0
- package/bundled/functions.json +28 -0
- package/bundled/registry.json +212 -0
- package/bundled/types/hex-color.json +25 -0
- package/bundled/types/rgb-color.json +64 -0
- package/bundled/types/rgba-color.json +89 -0
- package/bundled/types.json +183 -0
- package/dist/cli/index.cjs +652 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +645 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.cjs +333 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +158 -0
- package/dist/index.d.ts +158 -0
- package/dist/index.js +326 -0
- package/dist/index.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/bundler/bundle-schema.ts","../src/bundler/utils.ts","../src/bundler/index.ts","../src/downloader/index.ts"],"names":["join","mkdir","writeFile"],"mappings":";;;;AA0BA,eAAsB,yBAAA,CACpB,WACA,OAAA,EAC8B;AAE9B,EAAA,MAAM,cAAA,GAAiB,IAAA,CAAK,SAAA,EAAW,aAAa,CAAA;AACpD,EAAA,MAAM,aAAA,GAAgB,MAAM,QAAA,CAAS,cAAA,EAAgB,OAAO,CAAA;AAC5D,EAAA,MAAM,MAAA,GAAS,IAAA,CAAK,KAAA,CAAM,aAAa,CAAA;AAEvC,EAAA,IAAI,MAAA,CAAO,SAAS,UAAA,EAAY;AAC9B,IAAA,OAAO,MAAM,8BAAA;AAAA,MACX,SAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF,CAAA,MAAO;AACL,IAAA,OAAO,MAAM,2BAAA,CAA4B,SAAA,EAAW,MAAA,EAA8B,OAAO,CAAA;AAAA,EAC3F;AACF;AAK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AAA,OAAA,CAAQ,IAAI,CAAA,kBAAA,EAAgB,MAAA,CAAO,IAAI,CAAA,IAAA,EAAO,UAAU,CAAA,CAAE,CAAA;AAC5D;AAKA,eAAsB,kBAAA,CAAmB,MAAA,GAAgC,EAAC,EAAkB;AAC1F,EAAA,MAAM,UAAA,GAAa,EAAE,GAAG,cAAA,EAAgB,GAAG,MAAA,EAAO;AAGlD,EAAA,MAAM,OAAA,GAAU,MAAM,eAAA,CAAgB,UAAU,CAAA;AAGhD,EAAA,KAAA,MAAW,UAAU,OAAA,EAAS;AAC5B,IAAA,IAAI;AACF,MAAA,MAAM,cAAA,CAAe,QAAQ,UAAU,CAAA;AAAA,IACzC,SAAS,KAAA,EAAO;AACd,MAAA,OAAA,CAAQ,KAAA,CAAM,CAAA,mBAAA,EAAsB,MAAA,CAAO,IAAI,KAAK,KAAK,CAAA;AAAA,IAC3D;AAAA,EACF;AAEA,EAAA,OAAA,CAAQ,IAAI,+CAA0C,CAAA;AACxD","file":"index.js","sourcesContent":["/**\n * Shared schema bundling logic\n * Used by both the build-time bundler and runtime test helpers\n */\n\nimport { readFile } from \"node:fs/promises\";\nimport { join } from \"node:path\";\nimport type {\n ColorSpecification,\n FunctionSpecification,\n SchemaSpecification,\n} from \"@/bundler/types.js\";\n\nexport interface BundleOptions {\n /**\n * Base URL to prepend to relative schema URIs\n * If provided, transforms /api/v1/... to https://domain.com/api/v1/...\n * If not provided, keeps URIs as-is (useful for tests)\n */\n baseUrl?: string;\n}\n\n/**\n * Replace script file references with actual content\n * This is the core bundling logic shared by build and runtime\n */\nexport async function bundleSchemaFromDirectory(\n schemaDir: string,\n options?: BundleOptions,\n): Promise<SchemaSpecification> {\n // Read schema.json which contains the full specification\n const schemaJsonPath = join(schemaDir, \"schema.json\");\n const schemaContent = await readFile(schemaJsonPath, \"utf-8\");\n const schema = JSON.parse(schemaContent) as SchemaSpecification;\n\n if (schema.type === \"function\") {\n return await inlineFunctionScriptReferences(\n schemaDir,\n schema as FunctionSpecification,\n options,\n );\n } else {\n return await inlineColorScriptReferences(schemaDir, schema as ColorSpecification, options);\n }\n}\n\n/**\n * Inline script file references in a color schema specification\n */\nasync function inlineColorScriptReferences(\n schemaDir: string,\n schema: ColorSpecification,\n options?: BundleOptions,\n): Promise<ColorSpecification> {\n const result = JSON.parse(JSON.stringify(schema)) as ColorSpecification;\n\n // Inline initializer scripts and transform URIs\n for (const initializer of result.initializers) {\n if (initializer.script.script.startsWith(\"./\")) {\n const scriptPath = join(schemaDir, initializer.script.script.slice(2));\n const scriptContent = await readFile(scriptPath, \"utf-8\");\n initializer.script.script = scriptContent.trim();\n }\n\n // Transform script type URI if baseUrl is provided\n if (options?.baseUrl) {\n initializer.script.type = addBaseUrl(initializer.script.type, options.baseUrl);\n }\n }\n\n // Inline conversion scripts and transform URIs\n for (const conversion of result.conversions) {\n if (conversion.script.script.startsWith(\"./\")) {\n const scriptPath = join(schemaDir, conversion.script.script.slice(2));\n const scriptContent = await readFile(scriptPath, \"utf-8\");\n conversion.script.script = scriptContent.trim();\n }\n\n // Transform URIs if baseUrl is provided\n if (options?.baseUrl) {\n conversion.script.type = addBaseUrl(conversion.script.type, options.baseUrl);\n\n // Transform source and target URIs (but not $self)\n if (conversion.source !== \"$self\") {\n conversion.source = addBaseUrl(conversion.source, options.baseUrl);\n }\n if (conversion.target !== \"$self\") {\n conversion.target = addBaseUrl(conversion.target, options.baseUrl);\n }\n }\n }\n\n return result;\n}\n\n/**\n * Inline script file references in a function specification\n */\nasync function inlineFunctionScriptReferences(\n schemaDir: string,\n schema: FunctionSpecification,\n options?: BundleOptions,\n): Promise<FunctionSpecification> {\n const result = JSON.parse(JSON.stringify(schema)) as FunctionSpecification;\n\n // Inline the main function script\n if (result.script.script.startsWith(\"./\")) {\n const scriptPath = join(schemaDir, result.script.script.slice(2));\n const scriptContent = await readFile(scriptPath, \"utf-8\");\n result.script.script = scriptContent.trim();\n }\n\n // Transform script type URI if baseUrl is provided\n if (options?.baseUrl) {\n result.script.type = addBaseUrl(result.script.type, options.baseUrl);\n\n // Transform requirement URIs\n if (result.requirements) {\n const baseUrl = options.baseUrl;\n result.requirements = result.requirements.map((req) => addBaseUrl(req, baseUrl));\n }\n }\n\n return result;\n}\n\n/**\n * Add base URL to relative schema URIs\n * Transforms /api/v1/... to https://domain.com/api/v1/...\n */\nfunction addBaseUrl(uri: string, baseUrl: string): string {\n // If URI already has a protocol, return as-is\n if (uri.includes(\"://\")) {\n return uri;\n }\n\n // If URI is relative (starts with /), prepend base URL\n if (uri.startsWith(\"/\")) {\n // Remove trailing slash from baseUrl if present\n const cleanBaseUrl = baseUrl.endsWith(\"/\") ? baseUrl.slice(0, -1) : baseUrl;\n return `${cleanBaseUrl}${uri}`;\n }\n\n // Otherwise return as-is (e.g., $self)\n return uri;\n}\n","/**\n * Bundler utilities\n */\n\nimport { readdir, readFile, stat } from \"node:fs/promises\";\nimport { join } from \"node:path\";\n\n/**\n * Check if a path is a directory\n */\nexport async function isDirectory(path: string): Promise<boolean> {\n try {\n const stats = await stat(path);\n return stats.isDirectory();\n } catch {\n return false;\n }\n}\n\n/**\n * Get all subdirectories in a directory\n */\nexport async function getSubdirectories(dir: string): Promise<string[]> {\n const entries = await readdir(dir);\n const subdirs: string[] = [];\n\n for (const entry of entries) {\n const fullPath = join(dir, entry);\n if (await isDirectory(fullPath)) {\n subdirs.push(entry);\n }\n }\n\n return subdirs;\n}\n\n/**\n * Read all tokenscript files from a schema directory\n */\nexport async function readTokenScriptFiles(schemaDir: string): Promise<Record<string, string>> {\n const entries = await readdir(schemaDir);\n const scripts: Record<string, string> = {};\n\n for (const entry of entries) {\n if (entry.endsWith(\".tokenscript\")) {\n const filePath = join(schemaDir, entry);\n const content = await readFile(filePath, \"utf-8\");\n const scriptName = entry.replace(\".tokenscript\", \"\");\n scripts[scriptName] = content;\n }\n }\n\n return scripts;\n}\n\n/**\n * Read and parse a JSON file\n */\nexport async function readJsonFile<T = unknown>(filePath: string): Promise<T> {\n const content = await readFile(filePath, \"utf-8\");\n return JSON.parse(content) as T;\n}\n\n/**\n * Check if a file exists\n */\nexport async function fileExists(filePath: string): Promise<boolean> {\n try {\n await stat(filePath);\n return true;\n } catch {\n return false;\n }\n}\n","/**\n * Schema bundler - bundles schemas for distribution\n */\n\nimport { mkdir, writeFile } from \"node:fs/promises\";\nimport { join } from \"node:path\";\nimport { bundleSchemaFromDirectory } from \"@/bundler/bundle-schema\";\nimport type {\n BundledRegistry,\n ColorSpecification,\n FunctionSpecification,\n SchemaSpecification,\n} from \"@/bundler/types.js\";\nimport { getSubdirectories } from \"@/bundler/utils\";\n\n/**\n * Default registry URL for build-time bundling\n */\nconst DEFAULT_REGISTRY_URL = \"https://schema.tokenscript.dev.gcp.tokens.studio\";\n\n/**\n * Bundle a single schema from its directory\n */\nasync function bundleSchema(schemaDir: string, schemaSlug: string): Promise<SchemaSpecification> {\n // Use shared bundling logic with baseUrl for build-time\n const bundled = await bundleSchemaFromDirectory(schemaDir, {\n baseUrl: DEFAULT_REGISTRY_URL,\n });\n\n // Add slug from folder name\n bundled.slug = schemaSlug;\n\n return bundled;\n}\n\n/**\n * Bundle all color type schemas from a category directory\n */\nasync function bundleTypeCategory(categoryDir: string): Promise<ColorSpecification[]> {\n const bundles: ColorSpecification[] = [];\n const schemaSlugs = await getSubdirectories(categoryDir);\n\n for (const slug of schemaSlugs) {\n const schemaDir = join(categoryDir, slug);\n console.log(` Bundling ${slug}...`);\n\n try {\n const bundle = await bundleSchema(schemaDir, slug);\n if (bundle.type === \"color\") {\n bundles.push(bundle as ColorSpecification);\n }\n } catch (error) {\n console.error(` ✗ Failed to bundle ${slug}:`, error);\n }\n }\n\n return bundles;\n}\n\n/**\n * Bundle all function schemas from a category directory\n */\nasync function bundleFunctionCategory(categoryDir: string): Promise<FunctionSpecification[]> {\n const bundles: FunctionSpecification[] = [];\n const schemaSlugs = await getSubdirectories(categoryDir);\n\n for (const slug of schemaSlugs) {\n const schemaDir = join(categoryDir, slug);\n console.log(` Bundling ${slug}...`);\n\n try {\n const bundle = await bundleSchema(schemaDir, slug);\n if (bundle.type === \"function\") {\n bundles.push(bundle as FunctionSpecification);\n }\n } catch (error) {\n console.error(` ✗ Failed to bundle ${slug}:`, error);\n }\n }\n\n return bundles;\n}\n\n/**\n * Bundle all schemas from the schemas directory\n */\nexport async function bundleAllSchemas(\n schemasDir: string,\n outputDir: string,\n): Promise<BundledRegistry> {\n // Bundle types\n console.log(\"\\nBundling type schemas...\");\n const typesDir = join(schemasDir, \"types\");\n const types = await bundleTypeCategory(typesDir);\n console.log(`✓ Bundled ${types.length} type schemas`);\n\n // Bundle functions\n console.log(\"\\nBundling function schemas...\");\n const functionsDir = join(schemasDir, \"functions\");\n const functions = await bundleFunctionCategory(functionsDir);\n console.log(`✓ Bundled ${functions.length} function schemas`);\n\n // Create bundled registry\n const registry: BundledRegistry = {\n version: \"0.0.10\",\n types,\n functions,\n metadata: {\n generatedAt: new Date().toISOString(),\n totalSchemas: types.length + functions.length,\n },\n };\n\n // Ensure output directory exists\n await mkdir(outputDir, { recursive: true });\n\n // Write complete registry\n const registryPath = join(outputDir, \"registry.json\");\n await writeFile(registryPath, JSON.stringify(registry, null, 2));\n console.log(`\\n✓ Written complete registry to ${registryPath}`);\n\n // Write individual category bundles\n const typesPath = join(outputDir, \"types.json\");\n await writeFile(typesPath, JSON.stringify({ version: registry.version, types }, null, 2));\n console.log(`✓ Written types bundle to ${typesPath}`);\n\n const functionsPath = join(outputDir, \"functions.json\");\n await writeFile(functionsPath, JSON.stringify({ version: registry.version, functions }, null, 2));\n console.log(`✓ Written functions bundle to ${functionsPath}`);\n\n // Write individual schema bundles\n const typesOutputDir = join(outputDir, \"types\");\n await mkdir(typesOutputDir, { recursive: true });\n for (const type of types) {\n const typePath = join(typesOutputDir, `${type.slug}.json`);\n await writeFile(typePath, JSON.stringify(type, null, 2));\n }\n console.log(`✓ Written ${types.length} individual type schemas`);\n\n const functionsOutputDir = join(outputDir, \"functions\");\n await mkdir(functionsOutputDir, { recursive: true });\n for (const func of functions) {\n const funcPath = join(functionsOutputDir, `${func.slug}.json`);\n await writeFile(funcPath, JSON.stringify(func, null, 2));\n }\n console.log(`✓ Written ${functions.length} individual function schemas`);\n\n return registry;\n}\n\nexport type * from \"@/bundler/types.js\";\n","/**\n * Schema downloader - fetches schemas from the TokenScript API\n */\n\nimport { mkdir, writeFile } from \"node:fs/promises\";\nimport { join } from \"node:path\";\nimport type {\n SchemaConfig,\n SchemaDetails,\n SchemaListItem,\n SchemaVersion,\n} from \"@/downloader/types.js\";\n\nconst DEFAULT_CONFIG: SchemaConfig = {\n apiBaseUrl: \"https://schema.tokenscript.dev.gcp.tokens.studio/api/v1\",\n outputDir: \"src/schemas\",\n targetVersion: \"0.0.10\",\n};\n\n/**\n * Fetch all schemas from the API\n */\nexport async function fetchSchemaList(\n config: SchemaConfig = DEFAULT_CONFIG,\n): Promise<SchemaListItem[]> {\n const url = `${config.apiBaseUrl}/schema/?format=json`;\n\n console.log(`Fetching schema list from ${url}...`);\n const response = await fetch(url);\n\n if (!response.ok) {\n throw new Error(`Failed to fetch schemas: ${response.statusText}`);\n }\n\n const data = (await response.json()) as SchemaListItem[];\n console.log(`Found ${data.length} schemas`);\n\n return data;\n}\n\n/**\n * Fetch versions for a schema\n */\nexport async function fetchSchemaVersions(\n schemaSlug: string,\n config: SchemaConfig = DEFAULT_CONFIG,\n): Promise<SchemaVersion[]> {\n const url = `${config.apiBaseUrl}/schema/${schemaSlug}/versions/?format=json`;\n\n const response = await fetch(url);\n\n if (!response.ok) {\n throw new Error(`Failed to fetch versions for ${schemaSlug}: ${response.statusText}`);\n }\n\n return (await response.json()) as SchemaVersion[];\n}\n\n/**\n * Create the folder structure for a schema\n */\nasync function createSchemaFolder(\n schemaSlug: string,\n schemaType: \"type\" | \"function\",\n baseDir: string,\n): Promise<string> {\n const schemaPath = join(baseDir, schemaType === \"type\" ? \"types\" : \"functions\", schemaSlug);\n await mkdir(schemaPath, { recursive: true });\n return schemaPath;\n}\n\n/**\n * Write schema.json file\n */\nasync function writeSchemaJson(\n schemaPath: string,\n schema: SchemaDetails,\n targetVersion: string,\n): Promise<void> {\n const content = schema.content as any;\n\n const schemaJson = {\n id: schema.id,\n slug: schema.slug,\n name: schema.name,\n description: schema.description,\n type: schema.type,\n version: targetVersion,\n originalVersion: schema.version,\n contentType: content.type || null,\n metadata: schema.metadata || {},\n };\n\n await writeFile(join(schemaPath, \"schema.json\"), JSON.stringify(schemaJson, null, 2));\n}\n\n/**\n * Generate a unit test stub\n */\nasync function createUnitTestStub(\n schemaPath: string,\n schemaName: string,\n schemaType: \"type\" | \"function\",\n): Promise<void> {\n const testContent = `import { describe, test, expect } from \"vitest\";\n\ndescribe(\"${schemaName}\", () => {\n test.todo(\"should implement ${schemaType} functionality\");\n});\n`;\n\n await writeFile(join(schemaPath, \"unit.test.ts\"), testContent);\n}\n\n/**\n * Extract conversion script name from source/target\n */\nfunction getConversionFileName(source: string, target: string): string {\n // Extract the type name from URLs like \"https://schema.../core/hex-color/0/\"\n const extractType = (url: string): string => {\n const match = url.match(/\\/([^/]+)\\/\\d+\\/?$/);\n return match ? match[1] : url;\n };\n\n const sourceType = extractType(source);\n const targetType = extractType(target);\n\n if (target === \"$self\") {\n return `to-${sourceType}.tokenscript`;\n }\n if (source === \"$self\") {\n return `from-${targetType}.tokenscript`;\n }\n\n return `${sourceType}-to-${targetType}.tokenscript`;\n}\n\n/**\n * Write TokenScript files from schema content\n */\nasync function writeTokenScriptFiles(schemaPath: string, schema: SchemaDetails): Promise<void> {\n const content = schema.content as any;\n\n // Write the main schema definition as JSON\n if (content.schema) {\n await writeFile(\n join(schemaPath, \"schema-definition.json\"),\n JSON.stringify(content.schema, null, 2),\n );\n }\n\n // Extract and write conversion scripts\n if (content.conversions && Array.isArray(content.conversions)) {\n for (const conversion of content.conversions) {\n if (conversion.script?.script) {\n const fileName = getConversionFileName(conversion.source || \"\", conversion.target || \"\");\n\n // Add description as comment if available\n let scriptContent = \"\";\n if (conversion.description) {\n scriptContent += `# ${conversion.description}\\n`;\n scriptContent += `# Source: ${conversion.source}\\n`;\n scriptContent += `# Target: ${conversion.target}\\n`;\n scriptContent += `# Lossless: ${conversion.lossless || false}\\n\\n`;\n }\n\n scriptContent += conversion.script.script;\n\n await writeFile(join(schemaPath, fileName), scriptContent);\n }\n }\n }\n\n // Create initializer if no conversions found\n if (!content.conversions || content.conversions.length === 0) {\n const initializerContent = `# ${schema.name} Initializer\n# TODO: Implement initialization logic\n\n`;\n await writeFile(join(schemaPath, \"initializer.tokenscript\"), initializerContent);\n }\n}\n\n/**\n * Download and organize a single schema\n */\nexport async function downloadSchema(\n schema: SchemaListItem,\n config: SchemaConfig = DEFAULT_CONFIG,\n): Promise<void> {\n console.log(`Downloading ${schema.slug}...`);\n\n // Fetch all versions\n const versions = await fetchSchemaVersions(schema.slug, config);\n\n if (versions.length === 0) {\n console.warn(`No versions found for ${schema.slug}, skipping`);\n return;\n }\n\n // Get the latest version (first one)\n const latestVersion = versions[0];\n\n // Create folder structure\n const schemaPath = await createSchemaFolder(schema.slug, schema.type, config.outputDir);\n\n // Combine schema info with version info\n const details: SchemaDetails = {\n id: schema.id,\n slug: schema.slug,\n name: schema.name,\n description: schema.description,\n type: schema.type,\n version: latestVersion.version,\n content: latestVersion.content,\n };\n\n // Write files\n await writeSchemaJson(schemaPath, details, config.targetVersion);\n await writeTokenScriptFiles(schemaPath, details);\n await createUnitTestStub(schemaPath, schema.name, schema.type);\n\n console.log(`✓ Downloaded ${schema.slug} to ${schemaPath}`);\n}\n\n/**\n * Download all schemas from the API\n */\nexport async function downloadAllSchemas(config: Partial<SchemaConfig> = {}): Promise<void> {\n const fullConfig = { ...DEFAULT_CONFIG, ...config };\n\n // Fetch schema list\n const schemas = await fetchSchemaList(fullConfig);\n\n // Download each schema\n for (const schema of schemas) {\n try {\n await downloadSchema(schema, fullConfig);\n } catch (error) {\n console.error(`Failed to download ${schema.slug}:`, error);\n }\n }\n\n console.log(\"\\n✓ All schemas downloaded successfully!\");\n}\n\nexport { DEFAULT_CONFIG };\nexport type * from \"@/downloader/types.js\";\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tokens-studio/tokenscript-schemas",
|
|
3
|
+
"version": "0.0.10",
|
|
4
|
+
"description": "Schema registry for TokenScript with bundled schemas and validation",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"bin": {
|
|
9
|
+
"tokenscript-schemas": "./dist/cli/index.js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/index.d.cts",
|
|
19
|
+
"default": "./dist/index.cjs"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"bundled",
|
|
26
|
+
"README.md"
|
|
27
|
+
],
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=16.0.0"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsup",
|
|
34
|
+
"build:watch": "tsup --watch",
|
|
35
|
+
"clean": "rm -rf dist",
|
|
36
|
+
"test": "vitest run",
|
|
37
|
+
"test:watch": "vitest",
|
|
38
|
+
"test:coverage": "vitest run --coverage",
|
|
39
|
+
"test:debug": "LOG_LEVEL=debug vitest run",
|
|
40
|
+
"test:verbose": "LOG_LEVEL=info vitest run",
|
|
41
|
+
"check": "biome ci . --diagnostic-level=error",
|
|
42
|
+
"lint": "biome lint --max-diagnostics=none .",
|
|
43
|
+
"lint:fix": "biome lint --write .",
|
|
44
|
+
"format": "biome format --write .",
|
|
45
|
+
"format:check": "biome format .",
|
|
46
|
+
"fix": "biome check --write .",
|
|
47
|
+
"ts:typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json && tsc --noEmit -p tsconfig.scripts.json",
|
|
48
|
+
"download": "tsx scripts/download-schemas.ts",
|
|
49
|
+
"update-versions": "tsx scripts/update-versions.ts",
|
|
50
|
+
"bundle": "tsx scripts/bundle-schemas.ts",
|
|
51
|
+
"push": "tsx scripts/push-to-registry.ts",
|
|
52
|
+
"demo:parity": "tsx scripts/generate-demo.ts",
|
|
53
|
+
"demo:advanced": "tsx scripts/generate-advanced-demo.ts",
|
|
54
|
+
"demo:functions": "tsx scripts/generate-functions-playground.ts",
|
|
55
|
+
"demo:paths": "tsx scripts/generate-path-explorer.ts",
|
|
56
|
+
"demo:all": "npm run demo:parity && npm run demo:advanced && npm run demo:functions && npm run demo:paths",
|
|
57
|
+
"colorjs:compare": "tsx scripts/compare-colorjs.ts",
|
|
58
|
+
"release": "node scripts/release.js"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"tokenscript",
|
|
62
|
+
"schema",
|
|
63
|
+
"registry",
|
|
64
|
+
"validation"
|
|
65
|
+
],
|
|
66
|
+
"author": "Tokens Studio (https://tokens.studio)",
|
|
67
|
+
"license": "MPL-2.0",
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@tokens-studio/tokenscript-interpreter": "^0.16.0",
|
|
70
|
+
"arktype": "^2.1.25",
|
|
71
|
+
"cac": "^6.7.14",
|
|
72
|
+
"ulog": "^2.0.0-beta.19"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@biomejs/biome": "^2.2.4",
|
|
76
|
+
"@types/node": "^22.18.6",
|
|
77
|
+
"colorjs.io": "^0.6.0-beta.3",
|
|
78
|
+
"tsup": "^8.5.0",
|
|
79
|
+
"tsx": "^4.20.5",
|
|
80
|
+
"typescript": "^5.9.2",
|
|
81
|
+
"vitest": "^3.2.4"
|
|
82
|
+
}
|
|
83
|
+
}
|