Socket
Socket
Sign inDemoInstall

@nx/devkit

Package Overview
Dependencies
Maintainers
5
Versions
600
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nx/devkit - npm Package Compare versions

Comparing version 16.8.0-beta.0 to 16.8.0-beta.1

6

package.json
{
"name": "@nx/devkit",
"version": "16.8.0-beta.0",
"version": "16.8.0-beta.1",
"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.0",
"@nrwl/devkit": "16.8.0-beta.1",
"ejs": "^3.1.7",

@@ -50,3 +50,3 @@ "enquirer": "~2.3.6",

"type": "commonjs",
"gitHead": "818352404283c1d34ab303d91b3bd16474f54916"
"gitHead": "231a998e004c13e559c171ba6c164a9127886153"
}

@@ -41,3 +41,5 @@ "use strict";

}
tree.write(file.path, prettier.format(file.content.toString('utf-8'), options));
tree.write(file.path,
// In prettier v3 the format result is a promise
yield prettier.format(file.content.toString('utf-8'), options));
}

@@ -44,0 +46,0 @@ catch (e) {

@@ -9,3 +9,3 @@ "use strict";

const names_1 = require("../utils/names");
const { joinPathFragments, normalizePath, readJson, readNxJson, updateNxJson } = (0, nx_1.requireNx)();
const { joinPathFragments, normalizePath, logger, readJson, readNxJson, updateNxJson, } = (0, nx_1.requireNx)();
function determineProjectNameAndRootOptions(tree, options) {

@@ -58,3 +58,3 @@ var _a;

Root: ${formats['derived'].projectRoot}`;
const derivedSelectedValue = `${formats['derived'].projectName} @ ${formats['derived'].projectRoot} (This was derived from the folder structure. Please provide the exact name and directory in the future)`;
const derivedSelectedValue = `${formats['derived'].projectName} @ ${formats['derived'].projectRoot}`;
const result = yield (0, enquirer_1.prompt)({

@@ -76,7 +76,9 @@ type: 'select',

}).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.';
if (result === 'as-provided' && callingGenerator) {
const { saveDefault } = yield (0, enquirer_1.prompt)({
type: 'confirm',
message: 'Would you like to save this layout as a default?',
message: `Would you like to configure Nx to always take project name and root as provided for ${callingGenerator}?`,
name: 'saveDefault',
initial: true,
});

@@ -90,3 +92,9 @@ if (saveDefault) {

}
else {
logger.warn(deprecationWarning);
}
}
else {
logger.warn(deprecationWarning);
}
return result;

@@ -93,0 +101,0 @@ });

@@ -32,5 +32,2 @@ "use strict";

};
if (pmc.preInstall) {
(0, child_process_1.execSync)(pmc.preInstall, execSyncOptions);
}
(0, child_process_1.execSync)(pmc.install, execSyncOptions);

@@ -37,0 +34,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc