Skip to content

Commit

Permalink
fix: remove ts-reset out of runtime files
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsartem committed Dec 20, 2024
1 parent 6d54465 commit 5c619bb
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/cli-connector/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import ReactDOM from "react-dom/client";
import { WagmiProvider, deepEqual } from "wagmi";

import { App } from "./App.jsx";
import "@total-typescript/ts-reset";
import "./index.css";

globalThis.Buffer = Buffer;
Expand Down
18 changes: 18 additions & 0 deletions packages/cli-connector/src/reset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Fluence CLI
* Copyright (C) 2024 Fluence DAO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import "@total-typescript/ts-reset";
2 changes: 0 additions & 2 deletions packages/cli/package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import "@total-typescript/ts-reset";

export { run } from "@oclif/core";
18 changes: 18 additions & 0 deletions packages/cli/package/src/reset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Fluence CLI
* Copyright (C) 2024 Fluence DAO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import "@total-typescript/ts-reset";
2 changes: 1 addition & 1 deletion packages/cli/package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"verbatimModuleSyntax": true
},
"include": ["src/**/*"],
"files": ["src/environment.d.ts", "src/types.d.ts"],
"files": ["src/environment.d.ts", "src/types.d.ts", "src/reset.d.ts"],
"types": ["node"]
}
1 change: 0 additions & 1 deletion packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import "@total-typescript/ts-reset";
import type { TransactionRequest } from "ethers";

export const DEFAULT_PUBLIC_FLUENCE_ENV = "testnet";
Expand Down
18 changes: 18 additions & 0 deletions packages/common/src/reset.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Fluence CLI
* Copyright (C) 2024 Fluence DAO
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

import "@total-typescript/ts-reset";

0 comments on commit 5c619bb

Please sign in to comment.