@nx/devkit 16.0.0-beta.8 → 16.0.0-rc.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/devkit",
3
- "version": "16.0.0-beta.8",
3
+ "version": "16.0.0-rc.0",
4
4
  "private": false,
5
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
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://nx.dev",
30
30
  "dependencies": {
31
- "@nrwl/devkit": "16.0.0-beta.8",
31
+ "@nrwl/devkit": "16.0.0-rc.0",
32
32
  "ejs": "^3.1.7",
33
33
  "ignore": "^5.0.4",
34
34
  "semver": "7.3.4",
@@ -45,5 +45,5 @@
45
45
  "migrations": "./migrations.json"
46
46
  },
47
47
  "types": "./index.d.ts",
48
- "gitHead": "200cf327337f17cea009d83e9055a628346b4084"
48
+ "gitHead": "19e34df1cd3e286cacc9e73781cbb8fbbcd6fc69"
49
49
  }
package/public-api.d.ts CHANGED
@@ -78,5 +78,6 @@ export { convertNxExecutor } from './src/utils/convert-nx-executor';
78
78
  export { moveFilesToNewDirectory } from './src/utils/move-dir';
79
79
  /**
80
80
  * @category Utils
81
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
81
82
  */
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';
83
+ export { AdditionalSharedConfig, ModuleFederationConfig, SharedLibraryConfig, SharedWorkspaceLibraryConfig, WorkspaceLibrary, SharedFunction, WorkspaceLibrarySecondaryEntryPoint, Remotes, ModuleFederationLibrary, applySharedFunction, applyAdditionalShared, getNpmPackageSharedConfig, shareWorkspaceLibraries, sharePackages, mapRemotes, mapRemotesForSSR, getDependentPackagesForProject, readRootPackageJson, } from './src/utils/module-federation/public-api';
package/public-api.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * a. We might need to duplicate code instead of importing from nx until all supported versions of nx contain the file.
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.readRootPackageJson = exports.getDependentPackagesForProject = exports.sharePackages = exports.shareWorkspaceLibraries = exports.getNpmPackageSharedConfig = exports.mapRemotesForSSR = exports.mapRemotes = exports.applyAdditionalShared = exports.applySharedFunction = exports.moveFilesToNewDirectory = exports.convertNxExecutor = exports.convertNxGenerator = exports.offsetFromRoot = exports.ChangeType = exports.applyChangesToString = exports.extractLayoutDirectory = exports.getWorkspaceLayout = exports.names = exports.installPackagesTask = exports.NX_VERSION = exports.removeDependenciesFromPackageJson = exports.ensurePackage = exports.addDependenciesToPackageJson = exports.readTargetOptions = exports.targetToTargetString = exports.parseTargetString = exports.visitNotIgnoredFiles = exports.runTasksInSerial = exports.updateTsConfigsToJs = exports.toJS = exports.generateFiles = exports.formatFiles = void 0;
12
+ exports.readRootPackageJson = exports.getDependentPackagesForProject = exports.mapRemotesForSSR = exports.mapRemotes = exports.sharePackages = exports.shareWorkspaceLibraries = exports.getNpmPackageSharedConfig = exports.applyAdditionalShared = exports.applySharedFunction = exports.moveFilesToNewDirectory = exports.convertNxExecutor = exports.convertNxGenerator = exports.offsetFromRoot = exports.ChangeType = exports.applyChangesToString = exports.extractLayoutDirectory = exports.getWorkspaceLayout = exports.names = exports.installPackagesTask = exports.NX_VERSION = exports.removeDependenciesFromPackageJson = exports.ensurePackage = exports.addDependenciesToPackageJson = exports.readTargetOptions = exports.targetToTargetString = exports.parseTargetString = exports.visitNotIgnoredFiles = exports.runTasksInSerial = exports.updateTsConfigsToJs = exports.toJS = exports.generateFiles = exports.formatFiles = void 0;
13
13
  /**
14
14
  * @category Generators
15
15
  */
@@ -100,15 +100,16 @@ var move_dir_1 = require("./src/utils/move-dir");
100
100
  Object.defineProperty(exports, "moveFilesToNewDirectory", { enumerable: true, get: function () { return move_dir_1.moveFilesToNewDirectory; } });
101
101
  /**
102
102
  * @category Utils
103
- */
104
- var module_federation_1 = require("./src/utils/module-federation");
105
- Object.defineProperty(exports, "applySharedFunction", { enumerable: true, get: function () { return module_federation_1.applySharedFunction; } });
106
- Object.defineProperty(exports, "applyAdditionalShared", { enumerable: true, get: function () { return module_federation_1.applyAdditionalShared; } });
107
- Object.defineProperty(exports, "mapRemotes", { enumerable: true, get: function () { return module_federation_1.mapRemotes; } });
108
- Object.defineProperty(exports, "mapRemotesForSSR", { enumerable: true, get: function () { return module_federation_1.mapRemotesForSSR; } });
109
- Object.defineProperty(exports, "getNpmPackageSharedConfig", { enumerable: true, get: function () { return module_federation_1.getNpmPackageSharedConfig; } });
110
- Object.defineProperty(exports, "shareWorkspaceLibraries", { enumerable: true, get: function () { return module_federation_1.shareWorkspaceLibraries; } });
111
- Object.defineProperty(exports, "sharePackages", { enumerable: true, get: function () { return module_federation_1.sharePackages; } });
112
- Object.defineProperty(exports, "getDependentPackagesForProject", { enumerable: true, get: function () { return module_federation_1.getDependentPackagesForProject; } });
113
- Object.defineProperty(exports, "readRootPackageJson", { enumerable: true, get: function () { return module_federation_1.readRootPackageJson; } });
103
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
104
+ */
105
+ var public_api_1 = require("./src/utils/module-federation/public-api");
106
+ Object.defineProperty(exports, "applySharedFunction", { enumerable: true, get: function () { return public_api_1.applySharedFunction; } });
107
+ Object.defineProperty(exports, "applyAdditionalShared", { enumerable: true, get: function () { return public_api_1.applyAdditionalShared; } });
108
+ Object.defineProperty(exports, "getNpmPackageSharedConfig", { enumerable: true, get: function () { return public_api_1.getNpmPackageSharedConfig; } });
109
+ Object.defineProperty(exports, "shareWorkspaceLibraries", { enumerable: true, get: function () { return public_api_1.shareWorkspaceLibraries; } });
110
+ Object.defineProperty(exports, "sharePackages", { enumerable: true, get: function () { return public_api_1.sharePackages; } });
111
+ Object.defineProperty(exports, "mapRemotes", { enumerable: true, get: function () { return public_api_1.mapRemotes; } });
112
+ Object.defineProperty(exports, "mapRemotesForSSR", { enumerable: true, get: function () { return public_api_1.mapRemotesForSSR; } });
113
+ Object.defineProperty(exports, "getDependentPackagesForProject", { enumerable: true, get: function () { return public_api_1.getDependentPackagesForProject; } });
114
+ Object.defineProperty(exports, "readRootPackageJson", { enumerable: true, get: function () { return public_api_1.readRootPackageJson; } });
114
115
  //# sourceMappingURL=public-api.js.map
package/public-api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../packages/devkit/public-api.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH;;GAEG;AACH,8DAA4D;AAAnD,2GAAA,WAAW,OAAA;AAEpB;;GAEG;AACH,kEAAgE;AAAvD,+GAAA,aAAa,OAAA;AAEtB;;GAEG;AACH,gDAA8C;AAArC,6FAAA,IAAI,OAAA;AAEb;;GAEG;AACH,oFAA+E;AAAtE,8HAAA,mBAAmB,OAAA;AAE5B;;GAEG;AACH,4EAAwE;AAA/D,uHAAA,gBAAgB,OAAA;AAEzB;;GAEG;AACH,oFAAgF;AAAvE,+HAAA,oBAAoB,OAAA;AAE7B,2EAG6C;AAF3C,wHAAA,iBAAiB,OAAA;AACjB,2HAAA,oBAAoB,OAAA;AAGtB;;GAEG;AACH,2EAAwE;AAA/D,wHAAA,iBAAiB,OAAA;AAE1B;;GAEG;AACH,yDAKkC;AAJhC,4HAAA,4BAA4B,OAAA;AAC5B,6GAAA,aAAa,OAAA;AACb,iIAAA,iCAAiC,OAAA;AACjC,0GAAA,UAAU,OA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iBAAiB,OAAA;AACjB,2HAAA,oBAAoB,OAAA;AAGtB;;GAEG;AACH,2EAAwE;AAA/D,wHAAA,iBAAiB,OAAA;AAE1B;;GAEG;AACH,yDAKkC;AAJhC,4HAAA,4BAA4B,OAAA;AAC5B,6GAAA,aAAa,OAAA;AACb,iIAAA,iCAAiC,OAAA;AACjC,0GAAA,UAAU,OAAA;AAGZ;;GAEG;AACH,2EAAwE;AAA/D,4HAAA,mBAAmB,OAAA;AAE5B;;GAEG;AACH,2CAA0C;AAAjC,8FAAA,KAAK,OAAA;AAEd;;GAEG;AACH,yEAG0C;AAFxC,0HAAA,kBAAkB,OAAA;AAClB,8HAAA,sBAAsB,OAAA;AAYxB;;GAEG;AACH,2DAA6E;AAApE,qHAAA,oBAAoB,OAAA;AAAE,2GAAA,UAAU,OAAA;AAEzC;;GAEG;AACH,iEAA8D;AAArD,kHAAA,cAAc,OAAA;AAEvB;;GAEG;AACH,uEAAqE;AAA5D,yHAAA,kBAAkB,OAAA;AAE3B;;GAEG;AACH,uEAAoE;AAA3D,wHAAA,iBAAiB,OAAA;AAE1B;;GAEG;AACH,iDAA+D;AAAtD,mHAAA,uBAAuB,OAAA;AAEhC;;;GAGG;AACH,uEAmBkD;AAThD,iHAAA,mBAAmB,OAAA;AACnB,mHAAA,qBAAqB,OAAA;AACrB,uHAAA,yBAAyB,OAAA;AACzB,qHAAA,uBAAuB,OAAA;AACvB,2GAAA,aAAa,OAAA;AACb,wGAAA,UAAU,OAAA;AACV,8GAAA,gBAAgB,OAAA;AAChB,4HAAA,8BAA8B,OAAA;AAC9B,iHAAA,mBAAmB,OAAA"}
@@ -0,0 +1,78 @@
1
+ import { AdditionalSharedConfig, ModuleFederationConfig, ModuleFederationLibrary, Remotes, SharedFunction, SharedLibraryConfig, SharedWorkspaceLibraryConfig, WorkspaceLibrary, WorkspaceLibrarySecondaryEntryPoint } from './models';
2
+ import { applyAdditionalShared, applySharedFunction, getNpmPackageSharedConfig, sharePackages, shareWorkspaceLibraries } from './share';
3
+ import { mapRemotes, mapRemotesForSSR } from './remotes';
4
+ import { getDependentPackagesForProject } from './dependencies';
5
+ import { readRootPackageJson } from './package-json';
6
+ export {
7
+ /**
8
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
9
+ */
10
+ ModuleFederationConfig,
11
+ /**
12
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
13
+ */
14
+ SharedLibraryConfig,
15
+ /**
16
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
17
+ */
18
+ SharedWorkspaceLibraryConfig,
19
+ /**
20
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
21
+ */
22
+ AdditionalSharedConfig,
23
+ /**
24
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
25
+ */
26
+ WorkspaceLibrary,
27
+ /**
28
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
29
+ */
30
+ SharedFunction,
31
+ /**
32
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
33
+ */
34
+ WorkspaceLibrarySecondaryEntryPoint,
35
+ /**
36
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
37
+ */
38
+ Remotes,
39
+ /**
40
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
41
+ */
42
+ ModuleFederationLibrary,
43
+ /**
44
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
45
+ */
46
+ applySharedFunction,
47
+ /**
48
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
49
+ */
50
+ applyAdditionalShared,
51
+ /**
52
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
53
+ */
54
+ getNpmPackageSharedConfig,
55
+ /**
56
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
57
+ */
58
+ shareWorkspaceLibraries,
59
+ /**
60
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
61
+ */
62
+ sharePackages,
63
+ /**
64
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
65
+ */
66
+ mapRemotes,
67
+ /**
68
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
69
+ */
70
+ mapRemotesForSSR,
71
+ /**
72
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
73
+ */
74
+ getDependentPackagesForProject,
75
+ /**
76
+ * @deprecated Accessing the Module Federation Utils from the Public API of @nx/devkit is deprecated and they will be removed from the Public API in v17.
77
+ */
78
+ readRootPackageJson, };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.readRootPackageJson = exports.getDependentPackagesForProject = exports.mapRemotesForSSR = exports.mapRemotes = exports.sharePackages = exports.shareWorkspaceLibraries = exports.getNpmPackageSharedConfig = exports.applyAdditionalShared = exports.applySharedFunction = void 0;
4
+ const share_1 = require("./share");
5
+ Object.defineProperty(exports, "applyAdditionalShared", { enumerable: true, get: function () { return share_1.applyAdditionalShared; } });
6
+ Object.defineProperty(exports, "applySharedFunction", { enumerable: true, get: function () { return share_1.applySharedFunction; } });
7
+ Object.defineProperty(exports, "getNpmPackageSharedConfig", { enumerable: true, get: function () { return share_1.getNpmPackageSharedConfig; } });
8
+ Object.defineProperty(exports, "sharePackages", { enumerable: true, get: function () { return share_1.sharePackages; } });
9
+ Object.defineProperty(exports, "shareWorkspaceLibraries", { enumerable: true, get: function () { return share_1.shareWorkspaceLibraries; } });
10
+ const remotes_1 = require("./remotes");
11
+ Object.defineProperty(exports, "mapRemotes", { enumerable: true, get: function () { return remotes_1.mapRemotes; } });
12
+ Object.defineProperty(exports, "mapRemotesForSSR", { enumerable: true, get: function () { return remotes_1.mapRemotesForSSR; } });
13
+ const dependencies_1 = require("./dependencies");
14
+ Object.defineProperty(exports, "getDependentPackagesForProject", { enumerable: true, get: function () { return dependencies_1.getDependentPackagesForProject; } });
15
+ const package_json_1 = require("./package-json");
16
+ Object.defineProperty(exports, "readRootPackageJson", { enumerable: true, get: function () { return package_json_1.readRootPackageJson; } });
17
+ //# sourceMappingURL=public-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../../packages/devkit/src/utils/module-federation/public-api.ts"],"names":[],"mappings":";;;AAYA,mCAMiB;AAoDf,sGAzDA,6BAAqB,OAyDA;AAJrB,oGApDA,2BAAmB,OAoDA;AAQnB,0GA3DA,iCAAyB,OA2DA;AAQzB,8FAlEA,qBAAa,OAkEA;AAJb,wGA7DA,+BAAuB,OA6DA;AA1DzB,uCAAyD;AAkEvD,2FAlEO,oBAAU,OAkEP;AAIV,iGAtEmB,0BAAgB,OAsEnB;AApElB,iDAAgE;AAwE9D,+GAxEO,6CAA8B,OAwEP;AAtEhC,iDAAqD;AA0EnD,oGA1EO,kCAAmB,OA0EP"}