mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Import createPatch in ts/sql_format directly
This commit is contained in:
parent
a7c3aec5dc
commit
5a11566ff2
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
import sqlFormatter from "@sqltools/formatter";
|
||||
import * as Diff from "diff";
|
||||
import { createPatch } from "diff";
|
||||
import process from "process";
|
||||
import path from "path";
|
||||
import fs from "fs";
|
||||
|
@ -38,7 +38,7 @@ for (const path of process.argv.slice(2)) {
|
|||
errorFound = true;
|
||||
console.log("SQL formatting issues found:");
|
||||
}
|
||||
console.log(Diff.createPatch(path, orig, formatted));
|
||||
console.log(createPatch(path, orig, formatted));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue