Upgrade to TypeScript 4.5
This commit is contained in:
parent
4673de5db4
commit
e12d978915
|
@ -2,14 +2,14 @@
|
||||||
"name": "@preserves/root",
|
"name": "@preserves/root",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.19",
|
"@types/jest": "^27.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^27.4",
|
||||||
"lerna": "^4.0.0",
|
"lerna": "^4.0",
|
||||||
"rollup": "^2.40.0",
|
"rollup": "^2.60",
|
||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0",
|
||||||
"ts-jest": "^26.5.2",
|
"ts-jest": "^27.0",
|
||||||
"ts-node-dev": "^1.1.6",
|
"ts-node-dev": "^1.1",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.5"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*"
|
"packages/*"
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@preserves/core": "^0.17.0",
|
"@preserves/core": "^0.17.0",
|
||||||
"@types/glob": "^7.1.3",
|
"@types/glob": "^7.1",
|
||||||
"@types/minimatch": "^3.0.3",
|
"@types/minimatch": "^3.0",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5",
|
||||||
"commander": "^7.2.0",
|
"commander": "^7.2",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1",
|
||||||
"minimatch": "^3.0.4"
|
"minimatch": "^3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,7 +69,7 @@ export function expandInputGlob(input: string[], base0: string | undefined): Exp
|
||||||
});
|
});
|
||||||
return [{ inputFilePath, text, baseRelPath, modulePath, schema }];
|
return [{ inputFilePath, text, baseRelPath, modulePath, schema }];
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
failures.push({ type: 'error', file: inputFilePath, detail: e });
|
failures.push({ type: 'error', file: inputFilePath, detail: e as Error });
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -125,7 +125,7 @@ export function runOnce(options: CommandLineArguments): CompilationResult {
|
||||||
failures.push({ type: 'warn', file: c.inputFilePath, detail: { message, pos } }),
|
failures.push({ type: 'warn', file: c.inputFilePath, detail: { message, pos } }),
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
failures.push({ type: 'error', file: c.inputFilePath, detail: e });
|
failures.push({ type: 'error', file: c.inputFilePath, detail: e as Error });
|
||||||
}
|
}
|
||||||
if (compiledModule !== void 0) {
|
if (compiledModule !== void 0) {
|
||||||
if (options.stdout) {
|
if (options.stdout) {
|
||||||
|
|
|
@ -366,7 +366,7 @@ function parsePattern(name: symbol, body0: Array<Input>): Pattern {
|
||||||
}
|
}
|
||||||
|
|
||||||
function findName(x: Input): symbol | false {
|
function findName(x: Input): symbol | false {
|
||||||
if (!Annotated.isAnnotated<never>(x)) return false;
|
if (!Annotated.isAnnotated(x)) return false;
|
||||||
for (const a0 of x.annotations) {
|
for (const a0 of x.annotations) {
|
||||||
const a = peel(a0);
|
const a = peel(a0);
|
||||||
if (typeof a === 'symbol') return M.isValidToken(a.description!) && a;
|
if (typeof a === 'symbol') return M.isValidToken(a.description!) && a;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue