From bb27779d0638c6658b67d2beaf9f4402c286b6f9 Mon Sep 17 00:00:00 2001 From: Zetazzz Date: Mon, 26 Feb 2024 20:09:00 +0800 Subject: [PATCH] fixed build scripts in juno and osmosis --- packages/juno/.eslintrc.json | 1 + packages/juno/scripts/build.js | 6 +++--- packages/osmosis/.eslintrc.json | 1 + packages/osmosis/scripts/build.js | 6 +++--- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/juno/.eslintrc.json b/packages/juno/.eslintrc.json index 04afd5d7b..b61122721 100644 --- a/packages/juno/.eslintrc.json +++ b/packages/juno/.eslintrc.json @@ -25,6 +25,7 @@ "jest": true }, "rules": { + "@typescript-eslint/no-var-requires": 0, // "react-hooks/rules-of-hooks": 2, // "react-hooks/exhaustive-deps": 1, "simple-import-sort/imports": 2, diff --git a/packages/juno/scripts/build.js b/packages/juno/scripts/build.js index f8c050b61..723f2131b 100644 --- a/packages/juno/scripts/build.js +++ b/packages/juno/scripts/build.js @@ -1,6 +1,6 @@ -import { getAssetLists } from '@chain-registry/utils'; -import { assets, chains, ibc } from 'chain-registry'; -import { writeFileSync } from 'fs'; +const { getAssetLists } = require('@chain-registry/utils'); +const { assets, chains, ibc } = require('chain-registry'); +const { writeFileSync } = require('fs'); const chainName = 'juno'; diff --git a/packages/osmosis/.eslintrc.json b/packages/osmosis/.eslintrc.json index 04afd5d7b..b61122721 100644 --- a/packages/osmosis/.eslintrc.json +++ b/packages/osmosis/.eslintrc.json @@ -25,6 +25,7 @@ "jest": true }, "rules": { + "@typescript-eslint/no-var-requires": 0, // "react-hooks/rules-of-hooks": 2, // "react-hooks/exhaustive-deps": 1, "simple-import-sort/imports": 2, diff --git a/packages/osmosis/scripts/build.js b/packages/osmosis/scripts/build.js index 4b140ed20..a6b496525 100644 --- a/packages/osmosis/scripts/build.js +++ b/packages/osmosis/scripts/build.js @@ -1,6 +1,6 @@ -import { getAssetLists } from '@chain-registry/utils'; -import { assets, chains, ibc } from 'chain-registry'; -import { writeFileSync } from 'fs'; +const { getAssetLists } = require('@chain-registry/utils'); +const { assets, chains, ibc } = require('chain-registry'); +const { writeFileSync } = require('fs'); const chainName = 'osmosis';