Skip to content

Commit 7723212

Browse files
committed
log before and after file paths in api-diff
1 parent 7cde843 commit 7723212

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tools/deno/api-diff.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ if (args.help) printHelpAndExit()
124124

125125
const { base, head } = await getCommitRange(args._)
126126

127-
const tmpDirBase = await genForCommit(base, args.force)
128-
const tmpDirHead = await genForCommit(head, args.force)
127+
const basePath = (await genForCommit(base, args.force)) + '/Api.ts'
128+
const headPath = (await genForCommit(head, args.force)) + '/Api.ts'
129129

130-
await $`${diffTool} ${tmpDirBase}/Api.ts ${tmpDirHead}/Api.ts || true`
130+
await $`${diffTool} ${basePath} ${headPath} || true`
131+
132+
// useful if you want to open the file directly in an editor
133+
console.log('Before:', basePath)
134+
console.log('After: ', headPath)

0 commit comments

Comments
 (0)