From d332fe696314161ac5750447fd955112334f218e Mon Sep 17 00:00:00 2001 From: garthdb Date: Mon, 25 Sep 2023 14:40:15 -0600 Subject: [PATCH] chore: updated diff task to accept tag parameter --- packages/tokens/tasks/diff.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/tokens/tasks/diff.js b/packages/tokens/tasks/diff.js index 6cd2f1bd..4c96e66e 100644 --- a/packages/tokens/tasks/diff.js +++ b/packages/tokens/tasks/diff.js @@ -21,7 +21,7 @@ import tmp from "tmp-promise"; const execP = promisify(exec); -const tag = "latest"; +const tag = process.argv[2] || "latest"; const tokenPath = "dist/json/variables.json"; const localRootDir = join(dirname(fileURLToPath(import.meta.url)), ".."); const localTokenPath = join(localRootDir, tokenPath); @@ -71,6 +71,7 @@ async function getOldTokens() { }); const oldTokenPath = join(tmpDir.path, "package", tokenPath); await access(oldTokenPath); + console.log(`Comparing against ${stdout.trim()}`); return JSON.parse(await readFile(oldTokenPath, { encoding: "utf8" })); }