mirror of
https://github.com/Instadapp/boardroom-inc-protocol-Info.git
synced 2024-07-29 22:37:02 +00:00
fix: export the protocl type also
This commit is contained in:
parent
b7a6d73768
commit
73528a159a
|
@ -12,7 +12,7 @@
|
||||||
"isEnabled": false,
|
"isEnabled": false,
|
||||||
"hasOnchain": false,
|
"hasOnchain": false,
|
||||||
"claim": {
|
"claim": {
|
||||||
"isClaimed": false,
|
"isClaimed": true,
|
||||||
"claimer": "",
|
"claimer": "",
|
||||||
"signature": ""
|
"signature": ""
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,9 +3,7 @@ import mkdirp from "mkdirp";
|
||||||
|
|
||||||
const protocols = fs.readdirSync("./protocols");
|
const protocols = fs.readdirSync("./protocols");
|
||||||
|
|
||||||
const protocolInfo = protocols.map((protocol) =>
|
const protocolInfo = protocols.map((protocol) => fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8"));
|
||||||
fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8")
|
|
||||||
);
|
|
||||||
|
|
||||||
mkdirp.sync("./dist");
|
mkdirp.sync("./dist");
|
||||||
fs.copyFileSync("./types.ts", "./dist/types.ts");
|
fs.copyFileSync("./types.ts", "./dist/types.ts");
|
||||||
|
@ -13,7 +11,10 @@ fs.writeFileSync(
|
||||||
"./dist/index.ts",
|
"./dist/index.ts",
|
||||||
`
|
`
|
||||||
import { Protocol } from "../types";
|
import { Protocol } from "../types";
|
||||||
|
export {
|
||||||
|
Protocol
|
||||||
|
}
|
||||||
|
|
||||||
export default [${protocolInfo.toString()}] as Protocol[];
|
export default [${protocolInfo.toString()}] as Protocol[];
|
||||||
`
|
`,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user