Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix: respect and retain all configs passed in
Browse files Browse the repository at this point in the history
This is part 1 of fixing the issue where npm ci does not share
npmrc values with lifecycle scripts
  • Loading branch information
isaacs committed Aug 12, 2019
1 parent 21efbcc commit 20b7372
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,6 @@ const statAsync = BB.promisify(fs.stat)
const symlinkAsync = BB.promisify(fs.symlink)
const writeFileAsync = BB.promisify(fs.writeFile)

const CipmOpts = figgyPudding({
also: {},
dev: 'development',
development: {},
dirPacker: {},
force: {},
global: {},
ignoreScripts: 'ignore-scripts',
'ignore-scripts': {},
log: {},
loglevel: {},
only: {},
prefix: {},
prod: 'production',
production: {},
Promise: { default: () => BB },
umask: {}
})

const LifecycleOpts = figgyPudding({
config: {},
'script-shell': {},
Expand All @@ -59,7 +40,7 @@ const LifecycleOpts = figgyPudding({

class Installer {
constructor (opts) {
this.opts = CipmOpts(opts)
this.opts = opts

// Stats
this.startTime = Date.now()
Expand Down

0 comments on commit 20b7372

Please sign in to comment.