hops-bootstrap
Advanced tools
Comparing version 13.0.0-rc.0 to 13.0.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [13.0.0](https://github.com/xing/hops/compare/v13.0.0-rc.0...v13.0.0) (2020-09-28) | ||
### Bug Fixes | ||
* update dependency enhanced-resolve to v5 ([4842d30](https://github.com/xing/hops/commit/4842d307931699b3d5aef656a8b0900e038be768)) | ||
# [13.0.0-rc.0](https://github.com/xing/hops/compare/v13.0.0-alpha.2...v13.0.0-rc.0) (2020-09-07) | ||
@@ -8,0 +19,0 @@ |
@@ -20,3 +20,3 @@ 'use strict'; | ||
exports.getConfig = ({ untoolNamespace = 'hops', ...overrides } = {}) => { | ||
exports.getConfig = (overrides = {}) => { | ||
const pkgFile = findUp('package.json'); | ||
@@ -46,3 +46,3 @@ const pkgData = require(pkgFile); | ||
}; | ||
const settings = loadConfig(untoolNamespace, pkgData, rootDir); | ||
const settings = loadConfig(pkgData, rootDir); | ||
@@ -59,3 +59,3 @@ const merge = mergeFactory(getMixinSortOrder(settings, overrides)); | ||
_workspace: lockFile ? dirname(lockFile) : rootDir, | ||
_overrides: { untoolNamespace, ...overrides }, | ||
_overrides: overrides, | ||
}; | ||
@@ -62,0 +62,0 @@ debug(config); |
@@ -12,8 +12,7 @@ 'use strict'; | ||
class Loader { | ||
constructor(namespace, pkgData) { | ||
this.namespace = namespace; | ||
constructor(pkgData) { | ||
this.pkgData = pkgData; | ||
} | ||
load(context, module) { | ||
const { load } = cosmiconfig(this.namespace); | ||
const { load } = cosmiconfig('hops'); | ||
const presetJsFilePath = resolvePreset(context, module); | ||
@@ -24,3 +23,3 @@ const loadedPreset = load(presetJsFilePath); | ||
search(stopDir) { | ||
const { search } = cosmiconfig(this.namespace, { stopDir }); | ||
const { search } = cosmiconfig('hops', { stopDir }); | ||
return search(stopDir); | ||
@@ -82,4 +81,4 @@ } | ||
exports.loadConfig = (namespace, pkgData, rootDir) => { | ||
const loader = new Loader(namespace, pkgData); | ||
exports.loadConfig = (pkgData, rootDir) => { | ||
const loader = new Loader(pkgData); | ||
@@ -86,0 +85,0 @@ const settings = loader.loadSettings(rootDir); |
{ | ||
"name": "hops-bootstrap", | ||
"version": "13.0.0-rc.0", | ||
"version": "13.0.0", | ||
"description": "Hops bootstrap", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dotenv": "^8.1.0", | ||
"enhanced-resolve": "^4.1.1", | ||
"enhanced-resolve": "^5.0.0", | ||
"escape-string-regexp": "^4.0.0", | ||
@@ -33,3 +33,3 @@ "find-up": "^5.0.0", | ||
}, | ||
"gitHead": "92230c1e4886e49ab13c10547beb0f26fcd440c5" | ||
"gitHead": "ea2d2b03a2c3583cf2aa4e49d1fa5f2a44cb9ee6" | ||
} |
# `hops-bootstrap` | ||
`hops-bootstrap` is the functional foundation every other `hops` component is built upon. It contains a comprehensive configuration engine and a mixin base class. | ||
`hops-bootstrap` is the functional foundation every other `hops` component is built upon. It contains a comprehensive configuration engine and takes care of loading mixins and presets. | ||
@@ -35,3 +35,3 @@ ### Installation | ||
```bash | ||
$ PORT=12345 un start | ||
$ PORT=12345 hops start | ||
``` | ||
@@ -234,2 +234,2 @@ | ||
You will only ever have to call it if you want to use `hops-bootstrap` programmatically. You can pass it an `configOverrides` object that will be merged into the main config object, and and options object mixins might use instead of CLI arguments. | ||
You will only ever have to call it if you want to use `hops-bootstrap` programmatically. You can pass it an `configOverrides` object that will be merged into the main config object, and an options object mixins might use instead of CLI arguments. |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
33296
0
667
+ Addedenhanced-resolve@5.18.0(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedtapable@2.2.1(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedenhanced-resolve@4.5.0(transitive)
- Removederrno@0.1.8(transitive)
- Removedimport-fresh@3.3.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmemory-fs@0.5.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedprr@1.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedtapable@1.1.3(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedenhanced-resolve@^5.0.0