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,
|
||||
"hasOnchain": false,
|
||||
"claim": {
|
||||
"isClaimed": false,
|
||||
"isClaimed": true,
|
||||
"claimer": "",
|
||||
"signature": ""
|
||||
},
|
||||
|
|
|
@ -3,9 +3,7 @@ import mkdirp from "mkdirp";
|
|||
|
||||
const protocols = fs.readdirSync("./protocols");
|
||||
|
||||
const protocolInfo = protocols.map((protocol) =>
|
||||
fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8")
|
||||
);
|
||||
const protocolInfo = protocols.map((protocol) => fs.readFileSync(`./protocols/${protocol}/index.json`, "utf8"));
|
||||
|
||||
mkdirp.sync("./dist");
|
||||
fs.copyFileSync("./types.ts", "./dist/types.ts");
|
||||
|
@ -13,7 +11,10 @@ fs.writeFileSync(
|
|||
"./dist/index.ts",
|
||||
`
|
||||
import { Protocol } from "../types";
|
||||
export {
|
||||
Protocol
|
||||
}
|
||||
|
||||
export default [${protocolInfo.toString()}] as Protocol[];
|
||||
`
|
||||
`,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user