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
  • Loading branch information
isaacs committed Aug 18, 2020
1 parent 29cf9aa commit 650040b
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
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 650040b

Please sign in to comment.