Skip to content

Commit

Permalink
add packages (#1008)
Browse files Browse the repository at this point in the history
Co-authored-by: jmzwar <james@jmzwar.com>
  • Loading branch information
jmzwar and jmzwar authored Nov 6, 2023
1 parent 0d3a049 commit 60ceb5f
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
7 changes: 5 additions & 2 deletions v2/lib/formatters/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@snx-v2/formatters",
"private": true,
"main": "index.ts",
"version": "0.0.1-0",
"main": "dist/index.js",
"version": "1.0.0",
"scripts": {
"build": "tsc"
},
"dependencies": {
"date-fns": "^2.29.3"
},
Expand Down
9 changes: 9 additions & 0 deletions v2/lib/formatters/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../../tsconfig.base.module.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./"
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "**/*.test.ts", "./dist/**/*"]
}
5 changes: 4 additions & 1 deletion v2/lib/useGlobalProvidersWithFallback/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "@snx-v2/useGlobalProvidersWithFallback",
"private": true,
"main": "index.ts",
"main": "dist/index.js",
"version": "0.0.0",
"scripts": {
"build": "tsc"
},
"dependencies": {
"ethers": "^5.7.2",
"react": "^18.2.0"
Expand Down
10 changes: 10 additions & 0 deletions v2/lib/useGlobalProvidersWithFallback/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../tsconfig.base.module.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./",
"jsx": "react"
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "./dist/**/*"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useState } from 'react';

const mainnetId = 1;
const optimismId = 10;

export const useGlobalProvidersWithFallback = () => {
const [useInfura, setUseInfura] = useState(true);

Expand Down

1 comment on commit 60ceb5f

@vercel
Copy link

@vercel vercel bot commented on 60ceb5f Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

v2-storybook – ./v2/ui

v2-storybook-synthetixio.vercel.app
v2-storybook-git-master-synthetixio.vercel.app
staking-storybook.vercel.app

Please sign in to comment.