Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
eb1f645e
Commit
eb1f645e
authored
4 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix(npm): allow npm constraint install to fail
parent
38331a7d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/manager/npm/post-update/lerna.ts
+1
-1
1 addition, 1 deletion
lib/manager/npm/post-update/lerna.ts
lib/manager/npm/post-update/npm.ts
+1
-1
1 addition, 1 deletion
lib/manager/npm/post-update/npm.ts
with
2 additions
and
2 deletions
lib/manager/npm/post-update/lerna.ts
+
1
−
1
View file @
eb1f645e
...
...
@@ -60,7 +60,7 @@ export async function generateLockFiles(
let
installNpm
=
'
npm i -g npm
'
;
const
npmCompatibility
=
config
.
constraints
?.
npm
;
if
(
validRange
(
npmCompatibility
))
{
installNpm
+=
`@
${
quote
(
npmCompatibility
)}
`
;
installNpm
+=
`@
${
quote
(
npmCompatibility
)}
|| true
`
;
}
preCommands
.
push
(
installNpm
,
'
hash -d npm
'
);
cmdOptions
=
'
--ignore-scripts --no-audit
'
;
...
...
This diff is collapsed.
Click to expand it.
lib/manager/npm/post-update/npm.ts
+
1
−
1
View file @
eb1f645e
...
...
@@ -36,7 +36,7 @@ export async function generateLockFile(
if
(
npmCompatibility
)
{
// istanbul ignore else
if
(
validRange
(
npmCompatibility
))
{
installNpm
=
`npm i -g
${
quote
(
`npm@
${
npmCompatibility
}
`
)}
`
;
installNpm
=
`npm i -g
${
quote
(
`npm@
${
npmCompatibility
}
`
)}
|| true
`
;
}
else
{
logger
.
debug
(
{
npmCompatibility
},
...
...
This diff is collapsed.
Click to expand it.
Botaniker (Bot)
@botaniker
mentioned in commit
17de9315
·
4 years ago
mentioned in commit
17de9315
mentioned in commit 17de9315558c59a3ff6ef396a9204b6dc0a24953
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment