release-it 19.0.0 → 19.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/lib/config.js +0 -4
- package/package.json +1 -1
- package/test/config.js +0 -7
package/lib/config.js
CHANGED
|
@@ -153,10 +153,6 @@ async function loadLocalConfig(constructorConfig) {
|
|
|
153
153
|
throw new Error(`Invalid configuration file at ${file}`);
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
if (Object.keys(resolvedConfig.config).length === 0) {
|
|
157
|
-
throw new Error(`no such file ${resolvedConfig.configFile}`);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
156
|
debug('Loaded local config', resolvedConfig.config);
|
|
161
157
|
return isObjectStrict(resolvedConfig.config) ? resolvedConfig.config : {};
|
|
162
158
|
|
package/package.json
CHANGED
package/test/config.js
CHANGED
|
@@ -83,13 +83,6 @@ describe('config', async () => {
|
|
|
83
83
|
assert.deepEqual(config.options.foo, { bar: 1 });
|
|
84
84
|
});
|
|
85
85
|
|
|
86
|
-
test('should throw if provided config file is not found', async () => {
|
|
87
|
-
await assert.rejects(async () => {
|
|
88
|
-
const config = new Config({ config: 'nofile' });
|
|
89
|
-
await config.init();
|
|
90
|
-
}, /no such file.+nofile/);
|
|
91
|
-
});
|
|
92
|
-
|
|
93
86
|
test('should throw if provided config file is invalid (cosmiconfig exception)', async () => {
|
|
94
87
|
await assert.rejects(async () => {
|
|
95
88
|
const config = new Config({ config: './test/stub/config/invalid-config-txt' });
|