@nx/devkit 16.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/LICENSE +22 -0
- package/README.md +63 -0
- package/index.d.ts +19 -0
- package/index.js +27 -0
- package/migrations.json +12 -0
- package/ngcli-adapter.d.ts +4 -0
- package/ngcli-adapter.js +13 -0
- package/ngcli-adapter.js.map +1 -0
- package/nx-reexports-pre16.d.ts +127 -0
- package/nx-reexports-pre16.js +141 -0
- package/nx-reexports-pre16.js.map +1 -0
- package/nx.d.ts +1 -0
- package/nx.js +13 -0
- package/nx.js.map +1 -0
- package/package.json +49 -0
- package/public-api.d.ts +82 -0
- package/public-api.js +114 -0
- package/public-api.js.map +1 -0
- package/src/executors/parse-target-string.d.ts +31 -0
- package/src/executors/parse-target-string.js +36 -0
- package/src/executors/parse-target-string.js.map +1 -0
- package/src/executors/read-target-options.d.ts +8 -0
- package/src/executors/read-target-options.js +24 -0
- package/src/executors/read-target-options.js.map +1 -0
- package/src/generators/executor-options-utils.d.ts +21 -0
- package/src/generators/executor-options-utils.js +50 -0
- package/src/generators/executor-options-utils.js.map +1 -0
- package/src/generators/format-files.d.ts +6 -0
- package/src/generators/format-files.js +75 -0
- package/src/generators/format-files.js.map +1 -0
- package/src/generators/generate-files.d.ts +26 -0
- package/src/generators/generate-files.js +120 -0
- package/src/generators/generate-files.js.map +1 -0
- package/src/generators/run-tasks-in-serial.d.ts +7 -0
- package/src/generators/run-tasks-in-serial.js +18 -0
- package/src/generators/run-tasks-in-serial.js.map +1 -0
- package/src/generators/to-js.d.ts +5 -0
- package/src/generators/to-js.js +25 -0
- package/src/generators/to-js.js.map +1 -0
- package/src/generators/typescript/insert-import.d.ts +1 -0
- package/src/generators/typescript/insert-import.js +6 -0
- package/src/generators/typescript/insert-import.js.map +1 -0
- package/src/generators/typescript/insert-statement.d.ts +1 -0
- package/src/generators/typescript/insert-statement.js +6 -0
- package/src/generators/typescript/insert-statement.js.map +1 -0
- package/src/generators/update-ts-configs-to-js.d.ts +4 -0
- package/src/generators/update-ts-configs-to-js.js +50 -0
- package/src/generators/update-ts-configs-to-js.js.map +1 -0
- package/src/generators/visit-not-ignored-files.d.ts +5 -0
- package/src/generators/visit-not-ignored-files.js +37 -0
- package/src/generators/visit-not-ignored-files.js.map +1 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
- package/src/tasks/install-packages-task.d.ts +10 -0
- package/src/tasks/install-packages-task.js +35 -0
- package/src/tasks/install-packages-task.js.map +1 -0
- package/src/utils/async-iterable/combine-async-iterables.d.ts +3 -0
- package/src/utils/async-iterable/combine-async-iterables.js +82 -0
- package/src/utils/async-iterable/combine-async-iterables.js.map +1 -0
- package/src/utils/async-iterable/create-async-iterable.d.ts +6 -0
- package/src/utils/async-iterable/create-async-iterable.js +62 -0
- package/src/utils/async-iterable/create-async-iterable.js.map +1 -0
- package/src/utils/async-iterable/index.d.ts +4 -0
- package/src/utils/async-iterable/index.js +8 -0
- package/src/utils/async-iterable/index.js.map +1 -0
- package/src/utils/async-iterable/map-async-iteratable.d.ts +1 -0
- package/src/utils/async-iterable/map-async-iteratable.js +24 -0
- package/src/utils/async-iterable/map-async-iteratable.js.map +1 -0
- package/src/utils/async-iterable/tap-async-iteratable.d.ts +1 -0
- package/src/utils/async-iterable/tap-async-iteratable.js +15 -0
- package/src/utils/async-iterable/tap-async-iteratable.js.map +1 -0
- package/src/utils/convert-nx-executor.d.ts +7 -0
- package/src/utils/convert-nx-executor.js +88 -0
- package/src/utils/convert-nx-executor.js.map +1 -0
- package/src/utils/get-workspace-layout.d.ts +25 -0
- package/src/utils/get-workspace-layout.js +53 -0
- package/src/utils/get-workspace-layout.js.map +1 -0
- package/src/utils/invoke-nx-generator.d.ts +6 -0
- package/src/utils/invoke-nx-generator.js +174 -0
- package/src/utils/invoke-nx-generator.js.map +1 -0
- package/src/utils/module-federation/dependencies.d.ts +6 -0
- package/src/utils/module-federation/dependencies.js +47 -0
- package/src/utils/module-federation/dependencies.js.map +1 -0
- package/src/utils/module-federation/index.d.ts +5 -0
- package/src/utils/module-federation/index.js +9 -0
- package/src/utils/module-federation/index.js.map +1 -0
- package/src/utils/module-federation/models/index.d.ts +39 -0
- package/src/utils/module-federation/models/index.js +3 -0
- package/src/utils/module-federation/models/index.js.map +1 -0
- package/src/utils/module-federation/package-json.d.ts +8 -0
- package/src/utils/module-federation/package-json.js +15 -0
- package/src/utils/module-federation/package-json.js.map +1 -0
- package/src/utils/module-federation/remotes.d.ts +19 -0
- package/src/utils/module-federation/remotes.js +59 -0
- package/src/utils/module-federation/remotes.js.map +1 -0
- package/src/utils/module-federation/secondary-entry-points.d.ts +12 -0
- package/src/utils/module-federation/secondary-entry-points.js +106 -0
- package/src/utils/module-federation/secondary-entry-points.js.map +1 -0
- package/src/utils/module-federation/share.d.ts +48 -0
- package/src/utils/module-federation/share.js +187 -0
- package/src/utils/module-federation/share.js.map +1 -0
- package/src/utils/module-federation/typescript.d.ts +3 -0
- package/src/utils/module-federation/typescript.js +39 -0
- package/src/utils/module-federation/typescript.js.map +1 -0
- package/src/utils/move-dir.d.ts +5 -0
- package/src/utils/move-dir.js +29 -0
- package/src/utils/move-dir.js.map +1 -0
- package/src/utils/names.d.ts +18 -0
- package/src/utils/names.js +63 -0
- package/src/utils/names.js.map +1 -0
- package/src/utils/offset-from-root.d.ts +13 -0
- package/src/utils/offset-from-root.js +30 -0
- package/src/utils/offset-from-root.js.map +1 -0
- package/src/utils/package-json.d.ts +74 -0
- package/src/utils/package-json.js +305 -0
- package/src/utils/package-json.js.map +1 -0
- package/src/utils/replace-package.d.ts +2 -0
- package/src/utils/replace-package.js +107 -0
- package/src/utils/replace-package.js.map +1 -0
- package/src/utils/rxjs-for-await.d.ts +109 -0
- package/src/utils/rxjs-for-await.js +373 -0
- package/src/utils/rxjs-for-await.js.map +1 -0
- package/src/utils/semver.d.ts +1 -0
- package/src/utils/semver.js +19 -0
- package/src/utils/semver.js.map +1 -0
- package/src/utils/string-change.d.ts +62 -0
- package/src/utils/string-change.js +110 -0
- package/src/utils/string-change.js.map +1 -0
- package/src/utils/string-utils.d.ts +95 -0
- package/src/utils/string-utils.js +148 -0
- package/src/utils/string-utils.js.map +1 -0
- package/testing-pre16.d.ts +2 -0
- package/testing-pre16.js +10 -0
- package/testing-pre16.js.map +1 -0
- package/testing.d.ts +2 -0
- package/testing.js +9 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-2023 Narwhal Technologies Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
'Software'), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
|
|
2
|
+
|
|
3
|
+
<div style="text-align: center;">
|
|
4
|
+
|
|
5
|
+
[](https://circleci.com/gh/nrwl/nx)
|
|
6
|
+
[]()
|
|
7
|
+
[](https://www.npmjs.com/@nrwl/workspace)
|
|
8
|
+
[]()
|
|
9
|
+
[](http://commitizen.github.io/cz-cli/)
|
|
10
|
+
[](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
11
|
+
[](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<hr>
|
|
17
|
+
|
|
18
|
+
# Nx: Smart, Fast and Extensible Build System
|
|
19
|
+
|
|
20
|
+
Nx is a next generation build system with first class monorepo support and powerful integrations.
|
|
21
|
+
|
|
22
|
+
This package contains a set of utilities for creating Nx plugins.
|
|
23
|
+
|
|
24
|
+
## Getting Started
|
|
25
|
+
|
|
26
|
+
### Creating an Nx Workspace
|
|
27
|
+
|
|
28
|
+
**Using `npx`**
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npx create-nx-workspace
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Using `npm init`**
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm init nx-workspace
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
**Using `yarn create`**
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
yarn create nx-workspace
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Adding Nx to an Existing Repository
|
|
47
|
+
|
|
48
|
+
Run:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx nx@latest init
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Documentation & Resources
|
|
55
|
+
|
|
56
|
+
- [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
|
|
57
|
+
- [Intro to Nx](https://nx.dev/getting-started/intro)
|
|
58
|
+
- [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
|
|
59
|
+
- [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
|
|
60
|
+
|
|
61
|
+
<p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
|
|
62
|
+
width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
|
|
63
|
+
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Nx Devkit is the underlying technology used to customize Nx to support
|
|
3
|
+
* different technologies and custom use-cases. It contains many utility
|
|
4
|
+
* functions for reading and writing files, updating configuration,
|
|
5
|
+
* working with Abstract Syntax Trees(ASTs), and more.
|
|
6
|
+
*
|
|
7
|
+
* As with most things in Nx, the core of Nx Devkit is very simple.
|
|
8
|
+
* It only uses language primitives and immutable objects
|
|
9
|
+
* (the tree being the only exception).
|
|
10
|
+
*
|
|
11
|
+
* @module @nrwl/devkit
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
// TODO(v17): remove this file, we can use the normally generated index.d.ts from index.ts
|
|
15
|
+
|
|
16
|
+
/* eslint-disable @typescript-eslint/no-restricted-imports */
|
|
17
|
+
export * from 'nx/src/devkit-exports';
|
|
18
|
+
|
|
19
|
+
export * from './public-api';
|
package/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Nx Devkit is the underlying technology used to customize Nx to support
|
|
3
|
+
* different technologies and custom use-cases. It contains many utility
|
|
4
|
+
* functions for reading and writing files, updating configuration,
|
|
5
|
+
* working with Abstract Syntax Trees(ASTs), and more.
|
|
6
|
+
*
|
|
7
|
+
* As with most things in Nx, the core of Nx Devkit is very simple.
|
|
8
|
+
* It only uses language primitives and immutable objects
|
|
9
|
+
* (the tree being the only exception).
|
|
10
|
+
*
|
|
11
|
+
* @module @nrwl/devkit
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
try {
|
|
15
|
+
// TODO(v17): We will not need to maintain this file anymore, change this to a regular export statement
|
|
16
|
+
// This file was introduced in the nx package in v15.7 but devkit is compatible down to v14.1 which doesn't have this file.
|
|
17
|
+
module.exports = require('nx/src/devkit-exports');
|
|
18
|
+
} catch {
|
|
19
|
+
// These are the nx-reexports from before v16
|
|
20
|
+
// TODO(v17): This can be removed once the above is done.
|
|
21
|
+
module.exports = require('./nx-reexports-pre16');
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports = {
|
|
25
|
+
...module.exports,
|
|
26
|
+
...require('./public-api'),
|
|
27
|
+
};
|
package/migrations.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-16-0-0-add-nx-packages": {
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"version": "16.0.0-beta.1",
|
|
6
|
+
"description": "Replace @nrwl/devkit with @nx/devkit",
|
|
7
|
+
"implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"packageJsonUpdates": {},
|
|
11
|
+
"version": "0.1"
|
|
12
|
+
}
|
package/ngcli-adapter.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NxScopedHost = exports.mockSchematicsForTesting = exports.overrideCollectionResolutionForTesting = exports.wrapAngularDevkitSchematic = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @category Ng CLI Adapter
|
|
6
|
+
*/
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
8
|
+
var ngcli_adapter_1 = require("nx/src/adapter/ngcli-adapter");
|
|
9
|
+
Object.defineProperty(exports, "wrapAngularDevkitSchematic", { enumerable: true, get: function () { return ngcli_adapter_1.wrapAngularDevkitSchematic; } });
|
|
10
|
+
Object.defineProperty(exports, "overrideCollectionResolutionForTesting", { enumerable: true, get: function () { return ngcli_adapter_1.overrideCollectionResolutionForTesting; } });
|
|
11
|
+
Object.defineProperty(exports, "mockSchematicsForTesting", { enumerable: true, get: function () { return ngcli_adapter_1.mockSchematicsForTesting; } });
|
|
12
|
+
Object.defineProperty(exports, "NxScopedHost", { enumerable: true, get: function () { return ngcli_adapter_1.NxScopedHost; } });
|
|
13
|
+
//# sourceMappingURL=ngcli-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngcli-adapter.js","sourceRoot":"","sources":["../../../packages/devkit/ngcli-adapter.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,oEAAoE;AACpE,8DAKsC;AAJpC,2HAAA,0BAA0B,OAAA;AAC1B,uIAAA,sCAAsC,OAAA;AACtC,yHAAA,wBAAwB,OAAA;AACxB,6GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* STOP! Do not change this file!
|
|
3
|
+
*
|
|
4
|
+
* If you need to export something from nx, it should go into nx/src/devkit-exports
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @category Tree
|
|
8
|
+
*/
|
|
9
|
+
export type { Tree, FileChange } from 'nx/src/generators/tree';
|
|
10
|
+
/**
|
|
11
|
+
* @category Workspace
|
|
12
|
+
*/
|
|
13
|
+
export type { WorkspaceJsonConfiguration, ProjectsConfigurations, TargetDependencyConfig, TargetConfiguration, ProjectConfiguration, ProjectType, Workspace, } from 'nx/src/config/workspace-json-project-json';
|
|
14
|
+
/**
|
|
15
|
+
* @category Workspace
|
|
16
|
+
*/
|
|
17
|
+
export type { Generator, GeneratorCallback, Executor, ExecutorContext, TaskGraphExecutor, GeneratorsJson, ExecutorsJson, MigrationsJson, CustomHasher, HasherContext, } from 'nx/src/config/misc-interfaces';
|
|
18
|
+
/**
|
|
19
|
+
* @category Workspace
|
|
20
|
+
*/
|
|
21
|
+
export { Workspaces } from 'nx/src/config/workspaces';
|
|
22
|
+
export { readAllWorkspaceConfiguration, workspaceLayout, } from 'nx/src/project-graph/file-utils';
|
|
23
|
+
export type { NxPlugin, ProjectTargetConfigurator, } from 'nx/src/utils/nx-plugin';
|
|
24
|
+
/**
|
|
25
|
+
* @category Workspace
|
|
26
|
+
*/
|
|
27
|
+
export type { Task, TaskGraph } from 'nx/src/config/task-graph';
|
|
28
|
+
/**
|
|
29
|
+
* @category Workspace
|
|
30
|
+
*/
|
|
31
|
+
export type { ImplicitDependencyEntry, ImplicitJsonSubsetDependency, NxJsonConfiguration, NxAffectedConfig, } from 'nx/src/config/nx-json';
|
|
32
|
+
/**
|
|
33
|
+
* @category Logger
|
|
34
|
+
*/
|
|
35
|
+
export { logger } from 'nx/src/utils/logger';
|
|
36
|
+
/**
|
|
37
|
+
* @category Utils
|
|
38
|
+
*/
|
|
39
|
+
export { output } from 'nx/src/utils/output';
|
|
40
|
+
/**
|
|
41
|
+
* @category Package Manager
|
|
42
|
+
*/
|
|
43
|
+
export type { PackageManager } from 'nx/src/utils/package-manager';
|
|
44
|
+
/**
|
|
45
|
+
* @category Package Manager
|
|
46
|
+
*/
|
|
47
|
+
export { getPackageManagerCommand, detectPackageManager, getPackageManagerVersion, } from 'nx/src/utils/package-manager';
|
|
48
|
+
/**
|
|
49
|
+
* @category Commands
|
|
50
|
+
*/
|
|
51
|
+
export type { Target } from 'nx/src/command-line/run';
|
|
52
|
+
/**
|
|
53
|
+
* @category Commands
|
|
54
|
+
*/
|
|
55
|
+
export { runExecutor } from 'nx/src/command-line/run';
|
|
56
|
+
/**
|
|
57
|
+
* @category Generators
|
|
58
|
+
*/
|
|
59
|
+
export { addProjectConfiguration, readProjectConfiguration, removeProjectConfiguration, updateProjectConfiguration, getProjects, } from 'nx/src/generators/utils/project-configuration';
|
|
60
|
+
/**
|
|
61
|
+
* @category Generators
|
|
62
|
+
*/
|
|
63
|
+
export { readNxJson, updateNxJson, readWorkspaceConfiguration, updateWorkspaceConfiguration, isStandaloneProject, WorkspaceConfiguration, getWorkspacePath, } from 'nx/src/generators/utils/project-configuration';
|
|
64
|
+
/**
|
|
65
|
+
* @category Project Graph
|
|
66
|
+
*/
|
|
67
|
+
export type { ProjectFileMap, FileData, ProjectGraph, ProjectGraphDependency, ProjectGraphNode, ProjectGraphProjectNode, ProjectGraphExternalNode, ProjectGraphProcessorContext, } from 'nx/src/config/project-graph';
|
|
68
|
+
/**
|
|
69
|
+
* @category Project Graph
|
|
70
|
+
*/
|
|
71
|
+
export { DependencyType } from 'nx/src/config/project-graph';
|
|
72
|
+
/**
|
|
73
|
+
* @category Project Graph
|
|
74
|
+
*/
|
|
75
|
+
export { ProjectGraphBuilder } from 'nx/src/project-graph/project-graph-builder';
|
|
76
|
+
/**
|
|
77
|
+
* @category Utils
|
|
78
|
+
*/
|
|
79
|
+
export { readJson, writeJson, updateJson } from 'nx/src/generators/utils/json';
|
|
80
|
+
/**
|
|
81
|
+
* @category Utils
|
|
82
|
+
*/
|
|
83
|
+
export { parseJson, serializeJson, stripJsonComments } from 'nx/src/utils/json';
|
|
84
|
+
/**
|
|
85
|
+
* @category Utils
|
|
86
|
+
*/
|
|
87
|
+
export type { JsonParseOptions, JsonSerializeOptions } from 'nx/src/utils/json';
|
|
88
|
+
/**
|
|
89
|
+
* @category Utils
|
|
90
|
+
*/
|
|
91
|
+
export { readJsonFile, writeJsonFile } from 'nx/src/utils/fileutils';
|
|
92
|
+
/**
|
|
93
|
+
* @category Utils
|
|
94
|
+
*/
|
|
95
|
+
export { stripIndents } from 'nx/src/utils/strip-indents';
|
|
96
|
+
/**
|
|
97
|
+
* @category Utils
|
|
98
|
+
*/
|
|
99
|
+
export { joinPathFragments, normalizePath, getImportPath, detectWorkspaceScope, } from 'nx/src/utils/path';
|
|
100
|
+
/**
|
|
101
|
+
* @category Utils
|
|
102
|
+
*/
|
|
103
|
+
export { workspaceRoot, appRootPath } from 'nx/src/utils/app-root';
|
|
104
|
+
/**
|
|
105
|
+
* @category Utils
|
|
106
|
+
*/
|
|
107
|
+
export { reverse } from 'nx/src/project-graph/operators';
|
|
108
|
+
/**
|
|
109
|
+
* @category Utils
|
|
110
|
+
*/
|
|
111
|
+
export { createProjectGraphAsync, readCachedProjectGraph, } from 'nx/src/project-graph/project-graph';
|
|
112
|
+
/**
|
|
113
|
+
* @category Utils
|
|
114
|
+
*/
|
|
115
|
+
export { getOutputsForTargetAndConfiguration } from 'nx/src/tasks-runner/utils';
|
|
116
|
+
/**
|
|
117
|
+
* @category Utils
|
|
118
|
+
*/
|
|
119
|
+
export { defaultTasksRunner, DefaultTasksRunnerOptions, RemoteCache, } from 'nx/src/tasks-runner/default-tasks-runner';
|
|
120
|
+
/**
|
|
121
|
+
* @category Utils
|
|
122
|
+
*/
|
|
123
|
+
export { Hash, Hasher } from 'nx/src/hasher/hasher';
|
|
124
|
+
/**
|
|
125
|
+
* @category Utils
|
|
126
|
+
*/
|
|
127
|
+
export { cacheDir } from 'nx/src/utils/cache-directory';
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* STOP! Do not change this file!
|
|
4
|
+
*
|
|
5
|
+
* If you need to export something from nx, it should go into nx/src/devkit-exports
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.cacheDir = exports.Hasher = exports.defaultTasksRunner = exports.getOutputsForTargetAndConfiguration = exports.readCachedProjectGraph = exports.createProjectGraphAsync = exports.reverse = exports.appRootPath = exports.workspaceRoot = exports.detectWorkspaceScope = exports.getImportPath = exports.normalizePath = exports.joinPathFragments = exports.stripIndents = exports.writeJsonFile = exports.readJsonFile = exports.stripJsonComments = exports.serializeJson = exports.parseJson = exports.updateJson = exports.writeJson = exports.readJson = exports.ProjectGraphBuilder = exports.DependencyType = exports.getWorkspacePath = exports.isStandaloneProject = exports.updateWorkspaceConfiguration = exports.readWorkspaceConfiguration = exports.updateNxJson = exports.readNxJson = exports.getProjects = exports.updateProjectConfiguration = exports.removeProjectConfiguration = exports.readProjectConfiguration = exports.addProjectConfiguration = exports.runExecutor = exports.getPackageManagerVersion = exports.detectPackageManager = exports.getPackageManagerCommand = exports.output = exports.logger = exports.workspaceLayout = exports.readAllWorkspaceConfiguration = exports.Workspaces = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* @category Workspace
|
|
11
|
+
*/
|
|
12
|
+
var workspaces_1 = require("nx/src/config/workspaces");
|
|
13
|
+
Object.defineProperty(exports, "Workspaces", { enumerable: true, get: function () { return workspaces_1.Workspaces; } });
|
|
14
|
+
// TODO (v16): Change this to export from 'nx/src/config/configuration'
|
|
15
|
+
var file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
16
|
+
Object.defineProperty(exports, "readAllWorkspaceConfiguration", { enumerable: true, get: function () { return file_utils_1.readAllWorkspaceConfiguration; } });
|
|
17
|
+
Object.defineProperty(exports, "workspaceLayout", { enumerable: true, get: function () { return file_utils_1.workspaceLayout; } });
|
|
18
|
+
/**
|
|
19
|
+
* @category Logger
|
|
20
|
+
*/
|
|
21
|
+
var logger_1 = require("nx/src/utils/logger");
|
|
22
|
+
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
|
|
23
|
+
/**
|
|
24
|
+
* @category Utils
|
|
25
|
+
*/
|
|
26
|
+
var output_1 = require("nx/src/utils/output");
|
|
27
|
+
Object.defineProperty(exports, "output", { enumerable: true, get: function () { return output_1.output; } });
|
|
28
|
+
/**
|
|
29
|
+
* @category Package Manager
|
|
30
|
+
*/
|
|
31
|
+
var package_manager_1 = require("nx/src/utils/package-manager");
|
|
32
|
+
Object.defineProperty(exports, "getPackageManagerCommand", { enumerable: true, get: function () { return package_manager_1.getPackageManagerCommand; } });
|
|
33
|
+
Object.defineProperty(exports, "detectPackageManager", { enumerable: true, get: function () { return package_manager_1.detectPackageManager; } });
|
|
34
|
+
Object.defineProperty(exports, "getPackageManagerVersion", { enumerable: true, get: function () { return package_manager_1.getPackageManagerVersion; } });
|
|
35
|
+
/**
|
|
36
|
+
* @category Commands
|
|
37
|
+
*/
|
|
38
|
+
var run_1 = require("nx/src/command-line/run");
|
|
39
|
+
Object.defineProperty(exports, "runExecutor", { enumerable: true, get: function () { return run_1.runExecutor; } });
|
|
40
|
+
/**
|
|
41
|
+
* @category Generators
|
|
42
|
+
*/
|
|
43
|
+
var project_configuration_1 = require("nx/src/generators/utils/project-configuration");
|
|
44
|
+
Object.defineProperty(exports, "addProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.addProjectConfiguration; } });
|
|
45
|
+
Object.defineProperty(exports, "readProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.readProjectConfiguration; } });
|
|
46
|
+
Object.defineProperty(exports, "removeProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.removeProjectConfiguration; } });
|
|
47
|
+
Object.defineProperty(exports, "updateProjectConfiguration", { enumerable: true, get: function () { return project_configuration_1.updateProjectConfiguration; } });
|
|
48
|
+
Object.defineProperty(exports, "getProjects", { enumerable: true, get: function () { return project_configuration_1.getProjects; } });
|
|
49
|
+
/**
|
|
50
|
+
* @category Generators
|
|
51
|
+
*/
|
|
52
|
+
var project_configuration_2 = require("nx/src/generators/utils/project-configuration");
|
|
53
|
+
Object.defineProperty(exports, "readNxJson", { enumerable: true, get: function () { return project_configuration_2.readNxJson; } });
|
|
54
|
+
Object.defineProperty(exports, "updateNxJson", { enumerable: true, get: function () { return project_configuration_2.updateNxJson; } });
|
|
55
|
+
Object.defineProperty(exports, "readWorkspaceConfiguration", { enumerable: true, get: function () { return project_configuration_2.readWorkspaceConfiguration; } });
|
|
56
|
+
Object.defineProperty(exports, "updateWorkspaceConfiguration", { enumerable: true, get: function () { return project_configuration_2.updateWorkspaceConfiguration; } });
|
|
57
|
+
Object.defineProperty(exports, "isStandaloneProject", { enumerable: true, get: function () { return project_configuration_2.isStandaloneProject; } });
|
|
58
|
+
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return project_configuration_2.getWorkspacePath; } });
|
|
59
|
+
/**
|
|
60
|
+
* @category Project Graph
|
|
61
|
+
*/
|
|
62
|
+
var project_graph_1 = require("nx/src/config/project-graph");
|
|
63
|
+
Object.defineProperty(exports, "DependencyType", { enumerable: true, get: function () { return project_graph_1.DependencyType; } });
|
|
64
|
+
/**
|
|
65
|
+
* @category Project Graph
|
|
66
|
+
*/
|
|
67
|
+
var project_graph_builder_1 = require("nx/src/project-graph/project-graph-builder");
|
|
68
|
+
Object.defineProperty(exports, "ProjectGraphBuilder", { enumerable: true, get: function () { return project_graph_builder_1.ProjectGraphBuilder; } });
|
|
69
|
+
/**
|
|
70
|
+
* @category Utils
|
|
71
|
+
*/
|
|
72
|
+
var json_1 = require("nx/src/generators/utils/json");
|
|
73
|
+
Object.defineProperty(exports, "readJson", { enumerable: true, get: function () { return json_1.readJson; } });
|
|
74
|
+
Object.defineProperty(exports, "writeJson", { enumerable: true, get: function () { return json_1.writeJson; } });
|
|
75
|
+
Object.defineProperty(exports, "updateJson", { enumerable: true, get: function () { return json_1.updateJson; } });
|
|
76
|
+
/**
|
|
77
|
+
* @category Utils
|
|
78
|
+
*/
|
|
79
|
+
var json_2 = require("nx/src/utils/json");
|
|
80
|
+
Object.defineProperty(exports, "parseJson", { enumerable: true, get: function () { return json_2.parseJson; } });
|
|
81
|
+
Object.defineProperty(exports, "serializeJson", { enumerable: true, get: function () { return json_2.serializeJson; } });
|
|
82
|
+
Object.defineProperty(exports, "stripJsonComments", { enumerable: true, get: function () { return json_2.stripJsonComments; } });
|
|
83
|
+
/**
|
|
84
|
+
* @category Utils
|
|
85
|
+
*/
|
|
86
|
+
var fileutils_1 = require("nx/src/utils/fileutils");
|
|
87
|
+
Object.defineProperty(exports, "readJsonFile", { enumerable: true, get: function () { return fileutils_1.readJsonFile; } });
|
|
88
|
+
Object.defineProperty(exports, "writeJsonFile", { enumerable: true, get: function () { return fileutils_1.writeJsonFile; } });
|
|
89
|
+
/**
|
|
90
|
+
* @category Utils
|
|
91
|
+
*/
|
|
92
|
+
var strip_indents_1 = require("nx/src/utils/strip-indents");
|
|
93
|
+
Object.defineProperty(exports, "stripIndents", { enumerable: true, get: function () { return strip_indents_1.stripIndents; } });
|
|
94
|
+
/**
|
|
95
|
+
* @category Utils
|
|
96
|
+
*/
|
|
97
|
+
var path_1 = require("nx/src/utils/path");
|
|
98
|
+
Object.defineProperty(exports, "joinPathFragments", { enumerable: true, get: function () { return path_1.joinPathFragments; } });
|
|
99
|
+
Object.defineProperty(exports, "normalizePath", { enumerable: true, get: function () { return path_1.normalizePath; } });
|
|
100
|
+
Object.defineProperty(exports, "getImportPath", { enumerable: true, get: function () { return path_1.getImportPath; } });
|
|
101
|
+
Object.defineProperty(exports, "detectWorkspaceScope", { enumerable: true, get: function () { return path_1.detectWorkspaceScope; } });
|
|
102
|
+
// TODO(v16): Change this to export from 'nx/src/utils/workspace-root'
|
|
103
|
+
/**
|
|
104
|
+
* @category Utils
|
|
105
|
+
*/
|
|
106
|
+
var app_root_1 = require("nx/src/utils/app-root");
|
|
107
|
+
Object.defineProperty(exports, "workspaceRoot", { enumerable: true, get: function () { return app_root_1.workspaceRoot; } });
|
|
108
|
+
Object.defineProperty(exports, "appRootPath", { enumerable: true, get: function () { return app_root_1.appRootPath; } });
|
|
109
|
+
/**
|
|
110
|
+
* @category Utils
|
|
111
|
+
*/
|
|
112
|
+
var operators_1 = require("nx/src/project-graph/operators");
|
|
113
|
+
Object.defineProperty(exports, "reverse", { enumerable: true, get: function () { return operators_1.reverse; } });
|
|
114
|
+
/**
|
|
115
|
+
* @category Utils
|
|
116
|
+
*/
|
|
117
|
+
var project_graph_2 = require("nx/src/project-graph/project-graph");
|
|
118
|
+
Object.defineProperty(exports, "createProjectGraphAsync", { enumerable: true, get: function () { return project_graph_2.createProjectGraphAsync; } });
|
|
119
|
+
Object.defineProperty(exports, "readCachedProjectGraph", { enumerable: true, get: function () { return project_graph_2.readCachedProjectGraph; } });
|
|
120
|
+
/**
|
|
121
|
+
* @category Utils
|
|
122
|
+
*/
|
|
123
|
+
var utils_1 = require("nx/src/tasks-runner/utils");
|
|
124
|
+
Object.defineProperty(exports, "getOutputsForTargetAndConfiguration", { enumerable: true, get: function () { return utils_1.getOutputsForTargetAndConfiguration; } });
|
|
125
|
+
/**
|
|
126
|
+
* @category Utils
|
|
127
|
+
*/
|
|
128
|
+
var default_tasks_runner_1 = require("nx/src/tasks-runner/default-tasks-runner");
|
|
129
|
+
Object.defineProperty(exports, "defaultTasksRunner", { enumerable: true, get: function () { return default_tasks_runner_1.defaultTasksRunner; } });
|
|
130
|
+
/**
|
|
131
|
+
* @category Utils
|
|
132
|
+
*/
|
|
133
|
+
var hasher_1 = require("nx/src/hasher/hasher");
|
|
134
|
+
Object.defineProperty(exports, "Hasher", { enumerable: true, get: function () { return hasher_1.Hasher; } });
|
|
135
|
+
/**
|
|
136
|
+
* @category Utils
|
|
137
|
+
*/
|
|
138
|
+
var cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
139
|
+
Object.defineProperty(exports, "cacheDir", { enumerable: true, get: function () { return cache_directory_1.cacheDir; } });
|
|
140
|
+
// STOP! Do not export any new things from the nx package
|
|
141
|
+
//# sourceMappingURL=nx-reexports-pre16.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nx-reexports-pre16.js","sourceRoot":"","sources":["../../../packages/devkit/nx-reexports-pre16.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAwCH;;GAEG;AACH,uDAAsD;AAA7C,wGAAA,UAAU,OAAA;AAEnB,uEAAuE;AACvE,8DAGyC;AAFvC,2HAAA,6BAA6B,OAAA;AAC7B,6GAAA,eAAe,OAAA;AAuBjB;;GAEG;AACH,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AAEf;;GAEG;AACH,8CAA6C;AAApC,gGAAA,MAAM,OAAA;AAOf;;GAEG;AACH,gEAIsC;AAHpC,2HAAA,wBAAwB,OAAA;AACxB,uHAAA,oBAAoB,OAAA;AACpB,2HAAA,wBAAwB,OAAA;AAO1B;;GAEG;AACH,+CAAsD;AAA7C,kGAAA,WAAW,OAAA;AAEpB;;GAEG;AACH,uFAMuD;AALrD,gIAAA,uBAAuB,OAAA;AACvB,iIAAA,wBAAwB,OAAA;AACxB,mIAAA,0BAA0B,OAAA;AAC1B,mIAAA,0BAA0B,OAAA;AAC1B,oHAAA,WAAW,OAAA;AAGb;;GAEG;AACH,uFAQuD;AAPrD,mHAAA,UAAU,OAAA;AACV,qHAAA,YAAY,OAAA;AACZ,mIAAA,0BAA0B,OAAA;AAC1B,qIAAA,4BAA4B,OAAA;AAC5B,4HAAA,mBAAmB,OAAA;AAEnB,yHAAA,gBAAgB,OAAA;AAiBlB;;GAEG;AACH,6DAA6D;AAApD,+GAAA,cAAc,OAAA;AAEvB;;GAEG;AACH,oFAAiF;AAAxE,4HAAA,mBAAmB,OAAA;AAE5B;;GAEG;AACH,qDAA+E;AAAtE,gGAAA,QAAQ,OAAA;AAAE,iGAAA,SAAS,OAAA;AAAE,kGAAA,UAAU,OAAA;AAExC;;GAEG;AACH,0CAAgF;AAAvE,iGAAA,SAAS,OAAA;AAAE,qGAAA,aAAa,OAAA;AAAE,yGAAA,iBAAiB,OAAA;AAOpD;;GAEG;AACH,oDAAqE;AAA5D,yGAAA,YAAY,OAAA;AAAE,0GAAA,aAAa,OAAA;AAEpC;;GAEG;AACH,4DAA0D;AAAjD,6GAAA,YAAY,OAAA;AAErB;;GAEG;AACH,0CAK2B;AAJzB,yGAAA,iBAAiB,OAAA;AACjB,qGAAA,aAAa,OAAA;AACb,qGAAA,aAAa,OAAA;AACb,4GAAA,oBAAoB,OAAA;AAGtB,sEAAsE;AACtE;;GAEG;AACH,kDAAmE;AAA1D,yGAAA,aAAa,OAAA;AAAE,uGAAA,WAAW,OAAA;AAEnC;;GAEG;AACH,4DAAyD;AAAhD,oGAAA,OAAO,OAAA;AAChB;;GAEG;AACH,oEAG4C;AAF1C,wHAAA,uBAAuB,OAAA;AACvB,uHAAA,sBAAsB,OAAA;AAGxB;;GAEG;AACH,mDAAgF;AAAvE,4HAAA,mCAAmC,OAAA;AAE5C;;GAEG;AACH,iFAIkD;AAHhD,0HAAA,kBAAkB,OAAA;AAKpB;;GAEG;AACH,+CAAoD;AAArC,gGAAA,MAAM,OAAA;AAErB;;GAEG;AACH,gEAAwD;AAA/C,2GAAA,QAAQ,OAAA;AAEjB,yDAAyD"}
|
package/nx.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function requireNx(): typeof import('nx/src/devkit-exports');
|
package/nx.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.requireNx = void 0;
|
|
4
|
+
function requireNx() {
|
|
5
|
+
try {
|
|
6
|
+
return require('nx/src/devkit-exports');
|
|
7
|
+
}
|
|
8
|
+
catch (_a) {
|
|
9
|
+
return require('./nx-reexports-pre16');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.requireNx = requireNx;
|
|
13
|
+
//# sourceMappingURL=nx.js.map
|
package/nx.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nx.js","sourceRoot":"","sources":["../../../packages/devkit/nx.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS;IACvB,IAAI;QACF,OAAO,OAAO,CAAC,uBAAuB,CAAC,CAAC;KACzC;IAAC,WAAM;QACN,OAAO,OAAO,CAAC,sBAAsB,CAAC,CAAC;KACxC;AACH,CAAC;AAND,8BAMC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nx/devkit",
|
|
3
|
+
"version": "16.0.0-beta.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "The Nx Devkit is used to customize Nx for different technologies and use cases. It contains many utility functions for reading and writing files, updating configuration, working with Abstract Syntax Trees(ASTs), and more.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/nrwl/nx.git",
|
|
9
|
+
"directory": "packages/devkit"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Monorepo",
|
|
13
|
+
"Angular",
|
|
14
|
+
"React",
|
|
15
|
+
"Web",
|
|
16
|
+
"Node",
|
|
17
|
+
"Nest",
|
|
18
|
+
"Jest",
|
|
19
|
+
"Cypress",
|
|
20
|
+
"CLI"
|
|
21
|
+
],
|
|
22
|
+
"main": "./index",
|
|
23
|
+
"typings": "./index.d.ts",
|
|
24
|
+
"author": "Victor Savkin",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/nrwl/nx/issues"
|
|
28
|
+
},
|
|
29
|
+
"homepage": "https://nx.dev",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@nrwl/devkit": "16.0.0-beta.1",
|
|
32
|
+
"ejs": "^3.1.7",
|
|
33
|
+
"ignore": "^5.0.4",
|
|
34
|
+
"semver": "7.3.4",
|
|
35
|
+
"tmp": "~0.2.1",
|
|
36
|
+
"tslib": "^2.3.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"nx": ">= 14.1 <= 16"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
},
|
|
44
|
+
"nx-migrations": {
|
|
45
|
+
"migrations": "./migrations.json"
|
|
46
|
+
},
|
|
47
|
+
"types": "./index.d.ts",
|
|
48
|
+
"gitHead": "abf534c265f5aa3aac146e55bb31de598ea281d7"
|
|
49
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Note to developers: STOP! This is the Public API of @nrwl/devkit.
|
|
3
|
+
* @nrwl/devkit should be compatible with versions of Nx 1 major version prior.
|
|
4
|
+
* This is so that plugins can use the latest @nrwl/devkit while their users may use versions +/- 1 of Nx.
|
|
5
|
+
*
|
|
6
|
+
* 1. Try hard to not add to this API to reduce the surface area we need to maintain.
|
|
7
|
+
* 2. Do not add newly created paths from the nx package to this file as they will not be available in older versions of Nx.
|
|
8
|
+
* a. We might need to duplicate code instead of importing from nx until all supported versions of nx contain the file.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* @category Generators
|
|
12
|
+
*/
|
|
13
|
+
export { formatFiles } from './src/generators/format-files';
|
|
14
|
+
/**
|
|
15
|
+
* @category Generators
|
|
16
|
+
*/
|
|
17
|
+
export { generateFiles } from './src/generators/generate-files';
|
|
18
|
+
/**
|
|
19
|
+
* @category Generators
|
|
20
|
+
*/
|
|
21
|
+
export { toJS } from './src/generators/to-js';
|
|
22
|
+
/**
|
|
23
|
+
* @category Generators
|
|
24
|
+
*/
|
|
25
|
+
export { updateTsConfigsToJs } from './src/generators/update-ts-configs-to-js';
|
|
26
|
+
/**
|
|
27
|
+
* @category Generators
|
|
28
|
+
*/
|
|
29
|
+
export { runTasksInSerial } from './src/generators/run-tasks-in-serial';
|
|
30
|
+
/**
|
|
31
|
+
* @category Generators
|
|
32
|
+
*/
|
|
33
|
+
export { visitNotIgnoredFiles } from './src/generators/visit-not-ignored-files';
|
|
34
|
+
export { parseTargetString, targetToTargetString, } from './src/executors/parse-target-string';
|
|
35
|
+
/**
|
|
36
|
+
* @category Executors
|
|
37
|
+
*/
|
|
38
|
+
export { readTargetOptions } from './src/executors/read-target-options';
|
|
39
|
+
/**
|
|
40
|
+
* @category Utils
|
|
41
|
+
*/
|
|
42
|
+
export { addDependenciesToPackageJson, ensurePackage, removeDependenciesFromPackageJson, NX_VERSION, } from './src/utils/package-json';
|
|
43
|
+
/**
|
|
44
|
+
* @category Utils
|
|
45
|
+
*/
|
|
46
|
+
export { installPackagesTask } from './src/tasks/install-packages-task';
|
|
47
|
+
/**
|
|
48
|
+
* @category Utils
|
|
49
|
+
*/
|
|
50
|
+
export { names } from './src/utils/names';
|
|
51
|
+
/**
|
|
52
|
+
* @category Utils
|
|
53
|
+
*/
|
|
54
|
+
export { getWorkspaceLayout, extractLayoutDirectory, } from './src/utils/get-workspace-layout';
|
|
55
|
+
/**
|
|
56
|
+
* @category Utils
|
|
57
|
+
*/
|
|
58
|
+
export type { StringChange, StringDeletion, StringInsertion, } from './src/utils/string-change';
|
|
59
|
+
/**
|
|
60
|
+
* @category Utils
|
|
61
|
+
*/
|
|
62
|
+
export { applyChangesToString, ChangeType } from './src/utils/string-change';
|
|
63
|
+
/**
|
|
64
|
+
* @category Utils
|
|
65
|
+
*/
|
|
66
|
+
export { offsetFromRoot } from './src/utils/offset-from-root';
|
|
67
|
+
/**
|
|
68
|
+
* @category Utils
|
|
69
|
+
*/
|
|
70
|
+
export { convertNxGenerator } from './src/utils/invoke-nx-generator';
|
|
71
|
+
/**
|
|
72
|
+
* @category Utils
|
|
73
|
+
*/
|
|
74
|
+
export { convertNxExecutor } from './src/utils/convert-nx-executor';
|
|
75
|
+
/**
|
|
76
|
+
* @category Utils
|
|
77
|
+
*/
|
|
78
|
+
export { moveFilesToNewDirectory } from './src/utils/move-dir';
|
|
79
|
+
/**
|
|
80
|
+
* @category Utils
|
|
81
|
+
*/
|
|
82
|
+
export { SharedLibraryConfig, SharedWorkspaceLibraryConfig, AdditionalSharedConfig, applySharedFunction, applyAdditionalShared, mapRemotes, mapRemotesForSSR, getNpmPackageSharedConfig, shareWorkspaceLibraries, sharePackages, getDependentPackagesForProject, ModuleFederationConfig, ModuleFederationLibrary, readRootPackageJson, WorkspaceLibrary, SharedFunction, WorkspaceLibrarySecondaryEntryPoint, Remotes, } from './src/utils/module-federation';
|