mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: TypeScript 5.1 with Nx 16.6 migrations (#10338)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user