@naturalcycles/dev-lib 20.22.1 → 20.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/dev-lib.js +9 -3
- package/package.json +1 -1
package/dist/bin/dev-lib.js
CHANGED
|
@@ -17,7 +17,8 @@ const commands = [
|
|
|
17
17
|
{ name: 'bt', fn: bt, desc: 'Build & Test: run "typecheck" (via oxlint) and then "test".' },
|
|
18
18
|
{
|
|
19
19
|
name: 'typecheck',
|
|
20
|
-
fn: typecheckWithOxlint,
|
|
20
|
+
// fn: typecheckWithOxlint,
|
|
21
|
+
fn: typecheckWithTSC, // todo: attempt tsgo
|
|
21
22
|
desc: 'Run typecheck via oxlint --type-aware',
|
|
22
23
|
},
|
|
23
24
|
{
|
|
@@ -157,6 +158,7 @@ runScript(async () => {
|
|
|
157
158
|
});
|
|
158
159
|
async function check() {
|
|
159
160
|
await lintAllCommand();
|
|
161
|
+
await typecheckWithTSC(); // unfortunately still needed since oxlint doesn't catch all ts errors
|
|
160
162
|
runTest();
|
|
161
163
|
}
|
|
162
164
|
async function quickCheck() {
|
|
@@ -164,15 +166,19 @@ async function quickCheck() {
|
|
|
164
166
|
runTest();
|
|
165
167
|
}
|
|
166
168
|
async function bt() {
|
|
167
|
-
|
|
169
|
+
// Still using tsc, as oxlint is found to fail in certain cases
|
|
170
|
+
// todo: attempt to use tsgo!
|
|
171
|
+
// await typecheckWithOxlint()
|
|
172
|
+
await typecheckWithTSC();
|
|
168
173
|
runTest();
|
|
169
174
|
}
|
|
170
|
-
async function
|
|
175
|
+
async function _typecheckWithOxlint() {
|
|
171
176
|
requireOxlintConfig();
|
|
172
177
|
const fix = !CI;
|
|
173
178
|
runOxlint(fix);
|
|
174
179
|
}
|
|
175
180
|
async function typecheckWithTSC() {
|
|
181
|
+
// todo: try tsgo
|
|
176
182
|
await runTSCInFolders(['src', 'scripts', 'e2e'], ['--noEmit']);
|
|
177
183
|
}
|
|
178
184
|
async function cleanDist() {
|