* Add support for Azure DevOps and BitBucket * Remove `console.log` * Fix ESLint config - Fix the ESLint config - Fix all lint errors that cropped up as a result - Add scripts to lint - Add prettier format script - Add `husky` / `lint-staged` to lint/format files when they're pushed * Move provider configs to new file as requested * Fixes to meet maintainers specs * Fix remaining lint warns/errs * eslint fix * Update eslint/prettier packges Remove unused `@types/node-fetch` package * Add `eslint-plugin-jsdoc` * Add eslint rule for allowing providers to reassign params in their `replaceIcon` functions * Add sensible defaults for prettier to override any local editor settings * Some final cleanup * Loosen the required engines to allow for easier installing Co-authored-by: Claudio Santos <Claudiohbsantos@users.noreply.github.com>
21 lines
642 B
JavaScript
21 lines
642 B
JavaScript
/**
|
|
* Copies version from package.json into src/manifest.json
|
|
*/
|
|
|
|
const path = require('path');
|
|
const fs = require('fs').promises;
|
|
|
|
const package = require(path.resolve(__dirname, '..', 'package.json'));
|
|
|
|
const manifestPath = path.resolve(__dirname, '..', 'src', 'manifests', 'base.json');
|
|
const manifest = require(manifestPath);
|
|
|
|
const updatedManifest = { ...manifest, version: package.version };
|
|
const updatedManifestStr = `${JSON.stringify(updatedManifest, null, 2)}\n`;
|
|
|
|
fs.writeFile(manifestPath, updatedManifestStr)
|
|
.then(() => {
|
|
console.log(`Updated manifest.json version to ${package.version}`);
|
|
})
|
|
.catch(console.error);
|