chore: TypeScript 5.1 with Nx 16.6 migrations (#10338)

This commit is contained in:
Nathan Walker
2023-08-11 07:09:32 -07:00
committed by GitHub
parent 7a353eca14
commit d3a0f2c9a6
61 changed files with 741 additions and 483 deletions

View File

@@ -67,7 +67,7 @@
"jest-matcher-utils": "29.4.1",
"nativescript-vue-template-compiler": "2.9.3",
"ts-jest": "29.1.0",
"typescript": "~4.9.5"
"typescript": "5.1.6"
},
"peerDependencies": {
"nativescript-vue-template-compiler": "^2.8.1"

View File

@@ -12,7 +12,7 @@ export default function (ctx: ts.TransformationContext) {
decorators = ts.getDecorators(node);
} else {
// fallback to old behavior on older typescript versions
decorators = node.decorators;
decorators = (node as any).decorators;
}
return !!decorators?.some((d) => {
@@ -53,6 +53,6 @@ export default function (ctx: ts.TransformationContext) {
return (source: ts.SourceFile) =>
ts.factory.updateSourceFile(
source,
ts.visitNodes(source.statements, visitNode)
ts.visitNodes(source.statements, visitNode) as ts.NodeArray<ts.Statement>
);
}