@nx/devkit 17.0.0-rc.3 → 17.0.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": "17.0.0
|
|
3
|
+
"version": "17.0.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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tmp": "~0.2.1",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"semver": "7.5.3",
|
|
37
|
-
"@nrwl/devkit": "17.0.0
|
|
37
|
+
"@nrwl/devkit": "17.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"nx": ">= 16 <= 18"
|
|
@@ -41,6 +41,7 @@ export type NameAndDirectoryOptions = {
|
|
|
41
41
|
export declare function determineArtifactNameAndDirectoryOptions(tree: Tree, options: ArtifactGenerationOptions): Promise<NameAndDirectoryOptions & {
|
|
42
42
|
nameAndDirectoryFormat: NameAndDirectoryFormat;
|
|
43
43
|
}>;
|
|
44
|
+
export declare function getRelativeCwd(): string;
|
|
44
45
|
/**
|
|
45
46
|
* Function for setting cwd during testing
|
|
46
47
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setCwd = exports.determineArtifactNameAndDirectoryOptions = void 0;
|
|
3
|
+
exports.setCwd = exports.getRelativeCwd = exports.determineArtifactNameAndDirectoryOptions = void 0;
|
|
4
4
|
const enquirer_1 = require("enquirer");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const nx_1 = require("../../nx");
|
|
@@ -218,6 +218,7 @@ function isTTY() {
|
|
|
218
218
|
function getRelativeCwd() {
|
|
219
219
|
return normalizePath((0, path_1.relative)(workspaceRoot, getCwd()));
|
|
220
220
|
}
|
|
221
|
+
exports.getRelativeCwd = getRelativeCwd;
|
|
221
222
|
/**
|
|
222
223
|
* Function for setting cwd during testing
|
|
223
224
|
*/
|