We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae85cf commit f27dce0Copy full SHA for f27dce0
index.js
@@ -6,6 +6,12 @@ var log = require('db-migrate-shared').log;
6
exports.dataType = require('db-migrate-shared').dataType;
7
8
function loadPluginList (options) {
9
+ try {
10
+ fs.accessSync(path.join(options.cwd, 'package.json'), fs.constants.R_OK);
11
+ } catch (err) {
12
+ return {};
13
+ }
14
+
15
var plugins = JSON.parse(
16
fs.readFileSync(path.join(options.cwd, 'package.json'), 'utf-8')
17
);
0 commit comments