diff --git a/lib/core/migrations/move-out-alfresco-api/move-out-alfresco-api.ts b/lib/core/migrations/move-out-alfresco-api/move-out-alfresco-api.ts index 4f54ce7ed29..0ab1d03421a 100644 --- a/lib/core/migrations/move-out-alfresco-api/move-out-alfresco-api.ts +++ b/lib/core/migrations/move-out-alfresco-api/move-out-alfresco-api.ts @@ -1,6 +1,6 @@ /*! * @license - * Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved. + * Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,22 +24,18 @@ import { Project } from 'ts-morph'; * @param path string * @param callback function */ -function visitAllFiles( - tree: Tree, - path: string, - callback: (filePath: string, hostTree: Tree, project: Project) => void - ) { +function visitAllFiles(tree: Tree, path: string, callback: (filePath: string, hostTree: Tree, project: Project) => void) { const project = new Project(); tree.children(path).forEach((fileName) => { - const filePath = `${path}/${fileName}`; - if (!tree.isFile(filePath)) { - visitAllFiles(tree, filePath, callback); - } else { - callback(filePath, tree, project); - } + const filePath = `${path}/${fileName}`; + if (!tree.isFile(filePath)) { + visitAllFiles(tree, filePath, callback); + } else { + callback(filePath, tree, project); + } }); - } +} /** * Moving out alfresco-api from adf core diff --git a/lib/core/migrations.json b/lib/core/nx-migrations.json similarity index 100% rename from lib/core/migrations.json rename to lib/core/nx-migrations.json diff --git a/lib/core/package.json b/lib/core/package.json index 5cdbe17aab2..e485b57644e 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -48,6 +48,9 @@ ], "license": "Apache-2.0", "ng-update": { - "migrations": "./migrations.json" + "migrations": "./lib/core/schematics/migrations/collection.json" + }, + "nx-migrations": { + "migrations": "./nx-migrations.json" } }