File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,6 @@ describe('config/massage', () => {
17
17
expect ( Array . isArray ( res . schedule ) ) . toBeTrue ( ) ;
18
18
} ) ;
19
19
20
- it ( 'massages npmToken' , ( ) => {
21
- const config : RenovateConfig = {
22
- npmToken : 'some-token' ,
23
- } ;
24
- expect ( massage . massageConfig ( config ) ) . toEqual ( {
25
- npmrc : '//registry.npmjs.org/:_authToken=some-token\n' ,
26
- } ) ;
27
- } ) ;
28
-
29
20
it ( 'massages packageRules matchUpdateTypes' , ( ) => {
30
21
const config : RenovateConfig = {
31
22
packageRules : [
Original file line number Diff line number Diff line change @@ -21,9 +21,6 @@ export function massageConfig(config: RenovateConfig): RenovateConfig {
21
21
for ( const [ key , val ] of Object . entries ( config ) ) {
22
22
if ( allowedStrings . includes ( key ) && is . string ( val ) ) {
23
23
massagedConfig [ key ] = [ val ] ;
24
- } else if ( key === 'npmToken' && is . string ( val ) && val . length < 50 ) {
25
- massagedConfig . npmrc = `//registry.npmjs.org/:_authToken=${ val } \n` ;
26
- delete massagedConfig . npmToken ;
27
24
} else if ( is . array ( val ) ) {
28
25
massagedConfig [ key ] = [ ] ;
29
26
val . forEach ( ( item ) => {
You can’t perform that action at this time.
0 commit comments