Skip to content

Commit

Permalink
move flat-options.js from lib/config/ to lib/utils/
Browse files Browse the repository at this point in the history
PR-URL: #1688
Credit: @isaacs
Close: #1688
Reviewed-by: @ruyadorno
  • Loading branch information
isaacs authored and ruyadorno committed Aug 20, 2020
1 parent 8872be9 commit ea80f35
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/npm.js
Expand Up @@ -141,7 +141,7 @@ const npm = module.exports = new class extends EventEmitter {
this.log.warn('using --force', 'Recommended protections disabled.')
}
if (!er && !this[_flatOptions]) {
this[_flatOptions] = require('./config/flat-options.js')(this)
this[_flatOptions] = require('./utils/flat-options.js')(this)
process.env.npm_command = this.command
}
process.emit('timeEnd', 'npm:load')
Expand Down
File renamed without changes.
Expand Up @@ -5,7 +5,7 @@
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/config/flat-options.js TAP basic > flat options 1`] = `
exports[`test/lib/utils/flat-options.js TAP basic > flat options 1`] = `
Object {
"@scope:registry": "@scope:registry",
"//nerf.dart:_authToken": "//nerf.dart:_authToken",
Expand Down
Expand Up @@ -119,7 +119,7 @@ class MockConfig {
}
}

const flatOptions = require('../../../lib/config/flat-options.js')
const flatOptions = require('../../../lib/utils/flat-options.js')
t.match(logs, [[
'verbose',
'npm-session',
Expand Down

0 comments on commit ea80f35

Please sign in to comment.