From 8263ef1e4751c48bb59c7c1da867243f4fe78cef Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 10 May 2022 13:57:39 +0200 Subject: [PATCH] took care of files --- .../remix-ui/solidity-compiler/src/lib/compiler-container.tsx | 2 -- .../solidity-compiler/src/lib/compilerConfiguration.tsx | 4 +++- libs/remix-ui/solidity-compiler/tsconfig.json | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) rename apps/remix-ide/contracts/solidity_compiler_config.json => libs/remix-ui/solidity-compiler/src/lib/compilerConfiguration.tsx (90%) diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 2173e3d9b2..78a147387a 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -9,8 +9,6 @@ import { resetEditorMode, listenToEvents } from './actions/compiler' import { OverlayTrigger, Tooltip } from 'react-bootstrap' // eslint-disable-line import { getValidLanguage } from '@remix-project/remix-solidity' import { CopyToClipboard } from '@remix-ui/clipboard' -// eslint-disable-next-line @nrwl/nx/enforce-module-boundaries -import * as json_config from '../../../../../apps/remix-ide/contracts/solidity_compiler_config.json' import { configFileContent } from './compilerConfiguration' import './css/style.css' diff --git a/apps/remix-ide/contracts/solidity_compiler_config.json b/libs/remix-ui/solidity-compiler/src/lib/compilerConfiguration.tsx similarity index 90% rename from apps/remix-ide/contracts/solidity_compiler_config.json rename to libs/remix-ui/solidity-compiler/src/lib/compilerConfiguration.tsx index c5f984ca34..d05e1ab21c 100644 --- a/apps/remix-ide/contracts/solidity_compiler_config.json +++ b/libs/remix-ui/solidity-compiler/src/lib/compilerConfiguration.tsx @@ -1,3 +1,4 @@ +export const configFileContent = ` { "language": "Solidity", "settings": { @@ -13,4 +14,5 @@ }, "evmVersion": "byzantium" } -} \ No newline at end of file +} +` \ No newline at end of file diff --git a/libs/remix-ui/solidity-compiler/tsconfig.json b/libs/remix-ui/solidity-compiler/tsconfig.json index efb99f9af9..3375d6822b 100644 --- a/libs/remix-ui/solidity-compiler/tsconfig.json +++ b/libs/remix-ui/solidity-compiler/tsconfig.json @@ -5,7 +5,6 @@ "allowJs": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, - "resolveJsonModule": true }, "files": [], "include": [],