@terrazzo/cli 0.0.10 → 0.0.11
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 +1 -1
- package/bin/cli.js +5 -2
- package/package.json +3 -3
package/README.md
CHANGED
package/bin/cli.js
CHANGED
|
@@ -140,7 +140,7 @@ export default async function main() {
|
|
|
140
140
|
printErrors([err.message || err]);
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
const configWatcher = chokidar.watch(
|
|
143
|
+
const configWatcher = chokidar.watch(resolveConfig(configPath));
|
|
144
144
|
configWatcher.on('change', async (filePath) => {
|
|
145
145
|
try {
|
|
146
146
|
console.log(
|
|
@@ -302,7 +302,10 @@ async function loadTokens(tokenPaths) {
|
|
|
302
302
|
return allTokens[0];
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
/**
|
|
305
|
+
/**
|
|
306
|
+
* resolve config
|
|
307
|
+
* @return {string | undefined} resolvedPath
|
|
308
|
+
*/
|
|
306
309
|
function resolveConfig(filename) {
|
|
307
310
|
// --config [configpath]
|
|
308
311
|
if (filename) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@terrazzo/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "CLI for managing design tokens using the Design Tokens Community Group (DTCG) standard and generating code for any platform via plugins.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"merge-anything": "^5.1.7",
|
|
38
38
|
"picocolors": "^1.0.1",
|
|
39
39
|
"yargs-parser": "^21.1.1",
|
|
40
|
-
"@terrazzo/parser": "^0.0.
|
|
40
|
+
"@terrazzo/parser": "^0.0.11",
|
|
41
41
|
"@terrazzo/token-tools": "^0.0.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"build:ts": "tsc -p tsconfig.build.json",
|
|
50
50
|
"dev": "tsc -p tsconfig.build.json -w",
|
|
51
51
|
"lint": "biome check .",
|
|
52
|
-
"test": "pnpm run \"/^test:.*/\"",
|
|
52
|
+
"test": "pnpm --filter @terrazzo/cli run \"/^test:.*/\"",
|
|
53
53
|
"test:js": "vitest run",
|
|
54
54
|
"test:ts": "tsc --noEmit"
|
|
55
55
|
}
|