@graphql-codegen/cli 2.0.0-alpha-2a3d5d099.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +6 -6
- package/index.cjs.js +6 -6
- package/index.cjs.js.map +1 -1
- package/index.esm.js +6 -6
- package/index.esm.js.map +1 -1
- package/package.json +5 -5
package/index.esm.js
CHANGED
|
@@ -243,10 +243,10 @@ async function getPluginByName(name, pluginLoader) {
|
|
|
243
243
|
return await pluginLoader(moduleName);
|
|
244
244
|
}
|
|
245
245
|
catch (err) {
|
|
246
|
-
if (err.code !== 'MODULE_NOT_FOUND'
|
|
246
|
+
if (err.code !== 'MODULE_NOT_FOUND') {
|
|
247
247
|
throw new DetailedError(`Unable to load template plugin matching ${name}`, `
|
|
248
248
|
Unable to load template plugin matching '${name}'.
|
|
249
|
-
Reason:
|
|
249
|
+
Reason:
|
|
250
250
|
${err.message}
|
|
251
251
|
`);
|
|
252
252
|
}
|
|
@@ -260,7 +260,7 @@ async function getPluginByName(name, pluginLoader) {
|
|
|
260
260
|
throw new DetailedError(`Unable to find template plugin matching ${name}`, `
|
|
261
261
|
Unable to find template plugin matching '${name}'
|
|
262
262
|
Install one of the following packages:
|
|
263
|
-
|
|
263
|
+
|
|
264
264
|
${possibleNamesMsg}
|
|
265
265
|
`);
|
|
266
266
|
}
|
|
@@ -279,10 +279,10 @@ async function getPresetByName(name, loader) {
|
|
|
279
279
|
return loaded;
|
|
280
280
|
}
|
|
281
281
|
catch (err) {
|
|
282
|
-
if (err.code !== 'MODULE_NOT_FOUND'
|
|
282
|
+
if (err.code !== 'MODULE_NOT_FOUND') {
|
|
283
283
|
throw new DetailedError(`Unable to load preset matching ${name}`, `
|
|
284
284
|
Unable to load preset matching '${name}'.
|
|
285
|
-
Reason:
|
|
285
|
+
Reason:
|
|
286
286
|
${err.message}
|
|
287
287
|
`);
|
|
288
288
|
}
|
|
@@ -296,7 +296,7 @@ async function getPresetByName(name, loader) {
|
|
|
296
296
|
throw new DetailedError(`Unable to find preset matching ${name}`, `
|
|
297
297
|
Unable to find preset matching '${name}'
|
|
298
298
|
Install one of the following packages:
|
|
299
|
-
|
|
299
|
+
|
|
300
300
|
${possibleNamesMsg}
|
|
301
301
|
`);
|
|
302
302
|
}
|