Skip to content

Commit

Permalink
fix: update dl-gh-releases
Browse files Browse the repository at this point in the history
  • Loading branch information
BelfordZ committed Sep 30, 2020
1 parent b103fb8 commit 1db7522
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 73 deletions.
7 changes: 5 additions & 2 deletions bin/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const writeFile = promisify(fs.writeFile);
const { ensureDir } = require('fs-extra');
const {listReleases} = require("@etclabscore/dl-github-releases");

const setOpenRPCVersionEnum = async (s) => {
Expand All @@ -17,7 +16,11 @@ const build = async () => {
const withVersionEnum = await setOpenRPCVersionEnum(schema);

const dir = path.resolve(__dirname, "../build/");
await ensureDir(dir);
try {
fs.makedirSync(dir);
} catch (e) {

}
await writeFile(`${dir}/schema.json`, JSON.stringify(withVersionEnum, undefined, " "));
console.log("wrote schema.json");
};
Expand Down
122 changes: 52 additions & 70 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
],
"dependencies": {},
"devDependencies": {
"@etclabscore/dl-github-releases": "^1.1.0",
"@etclabscore/dl-github-releases": "^1.2.0",
"@types/jest": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
Expand Down

0 comments on commit 1db7522

Please sign in to comment.