Update addons-linter
This commit is contained in:
Родитель
0b16a5143e
Коммит
fd7b118dcc
|
@ -5,6 +5,13 @@ var path = require('path');
|
||||||
var absoluteAppRoot = path.resolve(path.join(__dirname, '..'));
|
var absoluteAppRoot = path.resolve(path.join(__dirname, '..'));
|
||||||
global.appRoot = path.relative(process.cwd(), absoluteAppRoot);
|
global.appRoot = path.relative(process.cwd(), absoluteAppRoot);
|
||||||
|
|
||||||
require('../dist/addons-linter')
|
try {
|
||||||
.createInstance({runAsBinary: true})
|
require('../dist/addons-linter')
|
||||||
.run();
|
.createInstance({runAsBinary: true})
|
||||||
|
.run();
|
||||||
|
} catch (e) {
|
||||||
|
if (e.code == 'MODULE_NOT_FOUND') {
|
||||||
|
console.log("Please refer https://github.com/mozilla/addons-linter#readme");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче