Skip to content

Commit

Permalink
Migration fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BSekula committed May 21, 2024
1 parent 00e8955 commit 32a6ed8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
22 changes: 9 additions & 13 deletions lib/core/migrations/move-out-alfresco-api/move-out-alfresco-api.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
File renamed without changes.
5 changes: 4 additions & 1 deletion lib/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 32a6ed8

Please sign in to comment.