hops-bootstrap
Advanced tools
Comparing version 14.0.0-nightly.3 to 14.0.0-nightly.4
@@ -6,2 +6,14 @@ # Change Log | ||
# [14.0.0-nightly.4](https://github.com/xing/hops/compare/v14.0.0-nightly.3...v14.0.0-nightly.4) (2020-12-07) | ||
### Bug Fixes | ||
* **bootstrap:** do not try to resolve ESM packages for presets ([e00c047](https://github.com/xing/hops/commit/e00c047c21eec896a4e00b7b2383771271b6cd63)) | ||
* update dependency supports-color to v8 ([910aba9](https://github.com/xing/hops/commit/910aba9e16ebefab136db29c9eb242a59f548cbf)) | ||
# [14.0.0-nightly.3](https://github.com/xing/hops/compare/v14.0.0-nightly.2...v14.0.0-nightly.3) (2020-11-20) | ||
@@ -8,0 +20,0 @@ |
@@ -9,3 +9,8 @@ 'use strict'; | ||
const { merge: mergeFactory, getMixinSortOrder } = require('./utils'); | ||
const { resolve, resolvePreset, isResolveError } = require('./resolver'); | ||
const { | ||
resolve, | ||
resolvePreset, | ||
isResolveError, | ||
isESMExportsError, | ||
} = require('./resolver'); | ||
@@ -34,3 +39,3 @@ class Loader { | ||
} catch (error) { | ||
if (!isResolveError(error)) throw error; | ||
if (!(isResolveError(error) || isESMExportsError(error))) throw error; | ||
throw new Error(`Can't find preset '${preset}' in '${context}'`); | ||
@@ -37,0 +42,0 @@ } |
@@ -45,1 +45,6 @@ 'use strict'; | ||
exports.isResolveError = (error) => compatibleMessage(error, /^Can't resolve/); | ||
exports.isESMExportsError = (error) => | ||
compatibleMessage( | ||
error, | ||
/^Package path .\/package\.json is not exported from package/ | ||
); |
{ | ||
"name": "hops-bootstrap", | ||
"version": "14.0.0-nightly.3", | ||
"version": "14.0.0-nightly.4", | ||
"description": "Hops bootstrap", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"mixinable": "^5.0.1", | ||
"supports-color": "^7.1.0" | ||
"supports-color": "^8.0.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "engines": { | ||
}, | ||
"gitHead": "23a49d771b31a4a901749f82740f3eb3253f8893" | ||
"gitHead": "92be19e7a93f99b437ed2c33f0637881632d9728" | ||
} |
33376
678
+ Addedsupports-color@8.1.1(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedsupports-color@^8.0.0