1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01:00

Merge pull request #676 from verdaccio/fix-673

fix: allow do not include storage if uses a storage plugin
This commit is contained in:
Juan Picado @jotadeveloper 2018-05-05 16:11:00 +02:00 committed by GitHub
commit 64e72d5002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 9 deletions

@ -91,9 +91,7 @@ class Config {
// some weird shell scripts are valid yaml files parsed as string
assert.equal(typeof(config), 'object', 'CONFIG: it doesn\'t look like a valid config file');
assert(self.storage, 'CONFIG: storage path not defined');
// sanity check for strategic config properties
// sanity check for strategic config properties
strategicConfigProps.forEach(function(x) {
if (self[x] == null) self[x] = {};
assert(Utils.isObject(self[x]), `CONFIG: bad "${x}" value (object expected)`);

@ -842,6 +842,7 @@ class LocalStorage implements IStorage {
const Storage = this._loadStorePlugin();
if (_.isNil(Storage)) {
assert(this.config.storage, 'CONFIG: storage path not defined');
return new LocalDatabase(this.config, logger);
} else {
return Storage;

@ -1,6 +1,3 @@
# this is useless yet since we use a custom storage, just ignore it
storage: ./store-e2e
web:
enable: true
title: verdaccio-server-protected-e2e

@ -1,6 +1,3 @@
# this is useless yet since we use a custom storage, just ignore it
storage: ./store-e2e
web:
enable: true
title: verdaccio-server-e2e