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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
b5b3f606
Commit
b5b3f606
authored
5 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix(npm): don’t massage name, engines, scripts
parent
3bdb0c89
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/manager/npm/post-update/index.ts
+0
-17
0 additions, 17 deletions
lib/manager/npm/post-update/index.ts
with
0 additions
and
17 deletions
lib/manager/npm/post-update/index.ts
+
0
−
17
View file @
b5b3f606
...
...
@@ -14,7 +14,6 @@ import * as lerna from './lerna';
import
*
as
npm
from
'
./npm
'
;
import
*
as
pnpm
from
'
./pnpm
'
;
import
*
as
yarn
from
'
./yarn
'
;
import
{
PackageJson
}
from
'
type-fest
'
;
// Strips empty values, deduplicates, and returns the directories from filenames
// istanbul ignore next
...
...
@@ -140,22 +139,6 @@ export async function writeExistingFiles(
config
.
localDir
,
path
.
dirname
(
packageFile
.
packageFile
)
);
logger
.
trace
(
`Writing package.json to
${
basedir
}
`
);
// Massage the file to eliminate yarn errors
const
massagedFile
:
PackageJson
=
JSON
.
parse
(
await
platform
.
getFile
(
packageFile
.
packageFile
)
);
if
(
massagedFile
)
{
if
(
massagedFile
.
name
)
{
massagedFile
.
name
=
massagedFile
.
name
.
replace
(
/
[
{}
]
/g
,
''
);
}
delete
massagedFile
.
engines
;
delete
massagedFile
.
scripts
;
await
fs
.
outputFile
(
upath
.
join
(
basedir
,
'
package.json
'
),
JSON
.
stringify
(
massagedFile
)
);
}
const
npmrc
=
packageFile
.
npmrc
||
config
.
npmrc
;
if
(
npmrc
)
{
await
fs
.
outputFile
(
upath
.
join
(
basedir
,
'
.npmrc
'
),
npmrc
);
...
...
This diff is collapsed.
Click to expand it.
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