libcipm
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.0.4"></a> | ||
## [4.0.4](https://github.com/npm/libcipm/compare/v4.0.3...v4.0.4) (2019-09-24) | ||
### Bug Fixes | ||
* pack git directories properly ([576ab36](https://github.com/npm/libcipm/commit/576ab36)), closes [#4](https://github.com/npm/libcipm/issues/4) | ||
<a name="4.0.3"></a> | ||
@@ -7,0 +17,0 @@ ## [4.0.3](https://github.com/npm/libcipm/compare/v4.0.2...v4.0.3) (2019-08-12) |
10
index.js
@@ -247,3 +247,6 @@ 'use strict' | ||
const includeProd = !/^dev(elopment)?$/.test(this.opts.only) | ||
return (dep.dev && includeDev) || (!dep.dev && includeProd) | ||
const includeOptional = includeProd && this.opts.optional | ||
return (dep.dev && includeDev) || | ||
(dep.optional && includeOptional) || | ||
(!dep.dev && !dep.optional && includeProd) | ||
} | ||
@@ -374,3 +377,6 @@ | ||
// config practices. | ||
config: Object.assign({}, this.opts, { log: null }), | ||
config: Object.assign({}, this.opts, { | ||
log: null, | ||
dirPacker: null | ||
}), | ||
dir: this.prefix | ||
@@ -377,0 +383,0 @@ })) |
@@ -15,3 +15,4 @@ 'use strict' | ||
const ExtractOpts = figgyPudding({ | ||
log: {} | ||
log: {}, | ||
dirPacker: {} | ||
}) | ||
@@ -18,0 +19,0 @@ |
{ | ||
"name": "libcipm", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "programmatic API for cipm: a ci-oriented package installer for npm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
37203
564