prettier
This commit is contained in:
parent
d9134e7085
commit
ae9d139754
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"tabWidth": 4,
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 100,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"quoteProps": "preserve",
|
||||||
|
"endOfLine": "auto"
|
||||||
|
}
|
|
@ -34,7 +34,9 @@ for (const plugin of data.plugins) {
|
||||||
if (plugin.manifest.locale) {
|
if (plugin.manifest.locale) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
plugin.manifest = JSON.parse(fs.readFileSync(`docs/plugins/${plugin.manifest.name}/manifest.json`, 'utf8'));
|
plugin.manifest = JSON.parse(
|
||||||
|
fs.readFileSync(`docs/plugins/${plugin.manifest.name}/manifest.json`, 'utf8')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Checking for changes...');
|
console.log('Checking for changes...');
|
||||||
|
@ -53,11 +55,13 @@ console.log('Signing...');
|
||||||
|
|
||||||
const dataToSign = Buffer.from(JSON.stringify(data, null, 2));
|
const dataToSign = Buffer.from(JSON.stringify(data, null, 2));
|
||||||
|
|
||||||
sign(dataToSign).then(signature => {
|
sign(dataToSign)
|
||||||
data.signature = signature.toString('base64');
|
.then(signature => {
|
||||||
fs.writeFileSync('docs/plugins.json', JSON.stringify(data, null, 2));
|
data.signature = signature.toString('base64');
|
||||||
console.log('Done');
|
fs.writeFileSync('docs/plugins.json', JSON.stringify(data, null, 2));
|
||||||
}).catch(err => {
|
console.log('Done');
|
||||||
console.error('Sign error', err);
|
})
|
||||||
process.exit(1);
|
.catch(err => {
|
||||||
});
|
console.error('Sign error', err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue