fix build error that occurs with new node version
This commit is contained in:
parent
a5735af4c1
commit
9ee16463e8
|
@ -18,7 +18,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
- name: Install, build, test
|
||||
run: |
|
||||
|
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version: 16
|
||||
cache: "yarn"
|
||||
- name: Check if version has been updated
|
||||
id: check
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import * as T from "./src/types";
|
||||
import { inflectWord } from "./src/lib/src/pashto-inflector";
|
||||
import * as tp from "./src/lib/src/type-predicates";
|
||||
|
||||
// Script to try inflecting all the words in the dictionary and make sure that
|
||||
// no errors are thrown in the process
|
||||
|
@ -27,6 +28,19 @@ async function checkAll() {
|
|||
err: e.toString(),
|
||||
});
|
||||
}
|
||||
if (tp.isVerbEntry(entry)) {
|
||||
const complement = entry.l
|
||||
? entries.find((e) => e.ts === entry.l)
|
||||
: undefined;
|
||||
if (entry.l && !complement) {
|
||||
errors.push({
|
||||
ts: entry.ts,
|
||||
p: entry.p,
|
||||
f: entry.f,
|
||||
err: "verb complement missing",
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
return errors;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue