New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-nx-workspace

Package Overview
Dependencies
Maintainers
7
Versions
1928
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-nx-workspace - npm Package Compare versions

Comparing version 20.5.0-canary.20250207-8fb9592 to 20.5.0-canary.20250208-c0fd00d

32

bin/create-nx-workspace.js

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

}
async function determineFormatterOptions(args) {
async function determineFormatterOptions(args, opts) {
if (args.formatter)

@@ -341,3 +341,3 @@ return args.formatter;

],
initial: 1,
initial: opts?.preferPrettier ? 0 : 1,
skip: !args.interactive || (0, is_ci_1.isCI)(),

@@ -348,3 +348,3 @@ },

}
async function determineLinterOptions(args) {
async function determineLinterOptions(args, opts) {
const reply = await enquirer.prompt([

@@ -363,3 +363,3 @@ {

],
initial: 1,
initial: opts?.preferEslint ? 0 : 1,
skip: !args.interactive || (0, is_ci_1.isCI)(),

@@ -572,4 +572,6 @@ },

if (workspaces) {
linter = await determineLinterOptions(parsedArgs);
formatter = await determineFormatterOptions(parsedArgs);
linter = await determineLinterOptions(parsedArgs, { preferEslint: true });
formatter = await determineFormatterOptions(parsedArgs, {
preferPrettier: true,
});
}

@@ -678,4 +680,6 @@ else {

if (workspaces) {
linter = await determineLinterOptions(parsedArgs);
formatter = await determineFormatterOptions(parsedArgs);
linter = await determineLinterOptions(parsedArgs, { preferEslint: true });
formatter = await determineFormatterOptions(parsedArgs, {
preferPrettier: true,
});
}

@@ -916,4 +920,6 @@ else {

if (workspaces) {
linter = await determineLinterOptions(parsedArgs);
formatter = await determineFormatterOptions(parsedArgs);
linter = await determineLinterOptions(parsedArgs, { preferEslint: true });
formatter = await determineFormatterOptions(parsedArgs, {
preferPrettier: true,
});
}

@@ -1208,5 +1214,5 @@ else {

if (a.name === 'none')
return 1;
if (b.name === 'none')
return -1;
if (b.name === 'none')
return 1;
if (options?.preferVitest && a.name === 'vitest')

@@ -1218,3 +1224,3 @@ return -1;

}),
initial: 0,
initial: 0, // This should be either vite or jest
},

@@ -1221,0 +1227,0 @@ ]);

{
"name": "create-nx-workspace",
"version": "20.5.0-canary.20250207-8fb9592",
"version": "20.5.0-canary.20250208-c0fd00d",
"private": false,

@@ -5,0 +5,0 @@ "description": "Smart Monorepos · Fast CI",

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