1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.moveProject = void 0;
|
4 | const devkit_1 = require("@nrwl/devkit");
|
5 | const path_1 = require("path");
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | function moveProject(tree, schema, project) {
|
12 | (0, devkit_1.visitNotIgnoredFiles)(tree, project.root, (file) => {
|
13 |
|
14 | const content = tree.read(file);
|
15 | const relativeFromOriginalSource = (0, path_1.relative)(project.root, file);
|
16 | const newFilePath = (0, path_1.join)(schema.relativeToRootDestination, relativeFromOriginalSource);
|
17 | tree.write(newFilePath, content);
|
18 | tree.delete(file);
|
19 | });
|
20 | }
|
21 | exports.moveProject = moveProject;
|
22 |
|
\ | No newline at end of file |