libnpmexec
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -7,3 +7,3 @@ 'use strict' | ||
const Arborist = require('@npmcli/arborist') | ||
const ciDetect = require('@npmcli/ci-detect') | ||
const ciInfo = require('ci-info') | ||
const crypto = require('crypto') | ||
@@ -114,3 +114,3 @@ const log = require('proc-log') | ||
const needPackageCommandSwap = (args.length > 0) && (packages.length === 0) | ||
let needPackageCommandSwap = (args.length > 0) && (packages.length === 0) | ||
// If they asked for a command w/o specifying a package, see if there is a | ||
@@ -131,5 +131,7 @@ // bin that directly matches that name: | ||
// bin links get set up | ||
flatOptions.installLinks = false | ||
// args[0] will exist when the package is installed | ||
packages.push(path) | ||
yes = true | ||
flatOptions.installLinks = false | ||
needPackageCommandSwap = false | ||
} else { | ||
@@ -248,3 +250,3 @@ const dir = dirname(dirname(localBin)) | ||
if (noTTY() || ciDetect()) { | ||
if (noTTY() || ciInfo.isCI) { | ||
log.warn('exec', `The following package${ | ||
@@ -251,0 +253,0 @@ add.length === 1 ? ' was' : 's were' |
const chalk = require('chalk') | ||
const ciDetect = require('@npmcli/ci-detect') | ||
const ciInfo = require('ci-info') | ||
const runScript = require('@npmcli/run-script') | ||
@@ -47,6 +47,4 @@ const readPackageJson = require('read-package-json-fast') | ||
if (script === scriptShell) { | ||
const isTTY = !noTTY() | ||
if (isTTY) { | ||
if (ciDetect()) { | ||
if (!noTTY()) { | ||
if (ciInfo.isCI) { | ||
return log.warn('exec', 'Interactive mode disabled in CI environment') | ||
@@ -53,0 +51,0 @@ } |
{ | ||
"name": "libnpmexec", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"files": [ | ||
@@ -54,3 +54,3 @@ "bin/", | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "4.9.0", | ||
"@npmcli/template-oss": "4.10.0", | ||
"bin-links": "^4.0.1", | ||
@@ -62,6 +62,6 @@ "minify-registry-metadata": "^2.2.0", | ||
"dependencies": { | ||
"@npmcli/arborist": "^6.1.2", | ||
"@npmcli/ci-detect": "^3.0.1", | ||
"@npmcli/arborist": "^6.1.3", | ||
"@npmcli/run-script": "^6.0.0", | ||
"chalk": "^4.1.0", | ||
"ci-info": "^3.6.1", | ||
"npm-package-arg": "^10.0.0", | ||
@@ -78,5 +78,5 @@ "npmlog": "^7.0.1", | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "4.9.0", | ||
"version": "4.10.0", | ||
"content": "../../scripts/template-oss/index.js" | ||
} | ||
} |
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
16873
373
+ Addedci-info@^3.6.1
+ Addedci-info@3.9.0(transitive)
- Removed@npmcli/ci-detect@^3.0.1
- Removed@npmcli/ci-detect@3.0.2(transitive)
Updated@npmcli/arborist@^6.1.3