Skip to content

Commit

Permalink
chore: fix patch script for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Dec 2, 2024
1 parent c2edb6c commit 97f7970
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ const n2$D = node2.getMatch('D')!.text()
const edit1 = node2.replace(`${n2$A}.use(${n2$D}).use`)
const transformed = root.commitEdits([edit1]).toString()

try {
await Deno.mkdir('./vendor', { recursive: true })
} catch (err) {
if (!(err instanceof Deno.errors.AlreadyExists)) {
throw err
}
}

await Deno.writeTextFile('./vendor/prettier-plugin-markdown.js', transformed)
await Deno.writeTextFile(
'./vendor/prettier-plugin-markdown.d.ts',
Expand Down

0 comments on commit 97f7970

Please sign in to comment.