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/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 16
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- name: Install, build, test
|
- name: Install, build, test
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 16
|
||||||
cache: "yarn"
|
cache: "yarn"
|
||||||
- name: Check if version has been updated
|
- name: Check if version has been updated
|
||||||
id: check
|
id: check
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import * as T from "./src/types";
|
import * as T from "./src/types";
|
||||||
import { inflectWord } from "./src/lib/src/pashto-inflector";
|
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
|
// Script to try inflecting all the words in the dictionary and make sure that
|
||||||
// no errors are thrown in the process
|
// no errors are thrown in the process
|
||||||
|
@ -27,6 +28,19 @@ async function checkAll() {
|
||||||
err: e.toString(),
|
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;
|
return errors;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue