@nx/devkit
Advanced tools
Comparing version 16.8.0-beta.2 to 16.8.0-beta.3
{ | ||
"name": "@nx/devkit", | ||
"version": "16.8.0-beta.2", | ||
"version": "16.8.0-beta.3", | ||
"private": false, | ||
@@ -31,3 +31,3 @@ "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.", | ||
"dependencies": { | ||
"@nrwl/devkit": "16.8.0-beta.2", | ||
"@nrwl/devkit": "16.8.0-beta.3", | ||
"ejs": "^3.1.7", | ||
@@ -50,3 +50,3 @@ "enquirer": "~2.3.6", | ||
"type": "commonjs", | ||
"gitHead": "9bcc04742f9e1516d8c1ddbfb1907770c347876f" | ||
"gitHead": "dcd48165a485bc8db57a1fb02b96a0772de3b7e9" | ||
} |
@@ -9,3 +9,3 @@ "use strict"; | ||
const names_1 = require("../utils/names"); | ||
const { joinPathFragments, normalizePath, logger, readJson, readNxJson, updateNxJson, } = (0, nx_1.requireNx)(); | ||
const { joinPathFragments, normalizePath, logger, readJson, readNxJson, updateNxJson, stripIndents, } = (0, nx_1.requireNx)(); | ||
function determineProjectNameAndRootOptions(tree, options) { | ||
@@ -75,3 +75,5 @@ var _a; | ||
}).then(({ format }) => format === asProvidedSelectedValue ? 'as-provided' : 'derived'); | ||
const deprecationWarning = 'In Nx 18, generating projects will no longer derive the name and root. Please provide the exact project name and root in the future.'; | ||
const deprecationWarning = stripIndents ` | ||
In Nx 18, generating projects will no longer derive the name and root. | ||
Please provide the exact project name and root in the future.`; | ||
if (result === 'as-provided' && callingGenerator) { | ||
@@ -96,3 +98,4 @@ const { saveDefault } = yield (0, enquirer_1.prompt)({ | ||
else { | ||
logger.warn(deprecationWarning); | ||
const example = `Example: nx g ${callingGenerator} ${formats[result].projectName} --directory ${formats[result].projectRoot}`; | ||
logger.warn(deprecationWarning + '\n' + example); | ||
} | ||
@@ -99,0 +102,0 @@ return result; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
187822
4579
+ Added@nrwl/devkit@16.8.0-beta.3(transitive)
- Removed@nrwl/devkit@16.8.0-beta.2(transitive)
Updated@nrwl/devkit@16.8.0-beta.3