Skip to content

Commit

Permalink
scaffold-eth#21 removed contract-types for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ShravanSunder committed Oct 21, 2021
1 parent b918586 commit 42f24a0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/hardhat-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@eth-optimism/hardhat-ovm": "^0.2.2",
"@ethereumjs/vm": "^5.5.3",
"@ethersproject/providers": "^5.4.1",
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.10",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@openzeppelin/contracts": "^4.1.0",
"@tenderly/hardhat-tenderly": "^1.0.10",
Expand Down
15 changes: 12 additions & 3 deletions packages/vite-app-ts/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
import { defineConfig } from 'vite';
//import reactRefresh from '@vitejs/plugin-react-refresh';
import macrosPlugin from 'vite-plugin-babel-macros';
import react from '@vitejs/plugin-react';
import reactPlugin from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import path, { resolve } from 'path';
import nodePolyfills from 'rollup-plugin-polyfill-node';
import { esbuildCommonjs } from '@originjs/vite-plugin-commonjs';
import React from 'react';
import reactdom from 'react-dom';

//console.log('env:dev', process.env.ENVIRONMENT);
// https://vitejs.dev/config/
export default defineConfig({
plugins: [nodePolyfills(), react(), macrosPlugin(), tsconfigPaths()],
plugins: [nodePolyfills(), reactPlugin(), macrosPlugin(), tsconfigPaths()],

build: {
// sourcemap: true,
commonjsOptions: {
include: /node_modules/,
transformMixedEsModules: true,
// esmExternals: true,
...{
namedExports: {
react: Object.keys(React),
'react-dom': Object.keys(reactdom),
// '@apollo/client': ['ApolloProvider', 'ApolloClient', 'HttpLink', 'InMemoryCache', 'useQuery', 'gql'],
// 'styled-components': ['styled', 'css', 'ThemeProvider'],
},
},
},
},
esbuild: {
Expand Down
21 changes: 11 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,16 @@ __metadata:
languageName: node
linkType: hard

"@nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers@^0.3.0-beta.10, hardhat-deploy-ethers@npm:^0.3.0-beta.10":
version: 0.3.0-beta.11
resolution: "hardhat-deploy-ethers@npm:0.3.0-beta.11"
peerDependencies:
ethers: ^5.0.0
hardhat: ^2.0.0
checksum: 0becd3dc7b1b447127cf74ef1018589b8d6d3c73bbeb893e3c27fe7e412aabb3a6d11aec1169fef427d85a6c2c512f1f99017ab1a928cdaab5960b74e445625a
languageName: node
linkType: hard

"@nomiclabs/hardhat-waffle@npm:^2.0.0, @nomiclabs/hardhat-waffle@npm:^2.0.1":
version: 2.0.1
resolution: "@nomiclabs/hardhat-waffle@npm:2.0.1"
Expand Down Expand Up @@ -2053,6 +2063,7 @@ __metadata:
"@eth-optimism/hardhat-ovm": ^0.2.2
"@ethereumjs/vm": ^5.5.3
"@ethersproject/providers": ^5.4.1
"@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers@^0.3.0-beta.10"
"@nomiclabs/hardhat-waffle": ^2.0.0
"@openzeppelin/contracts": ^4.1.0
"@tenderly/hardhat-tenderly": ^1.0.10
Expand Down Expand Up @@ -11270,16 +11281,6 @@ fsevents@~2.1.1:
languageName: node
linkType: hard

"hardhat-deploy-ethers@npm:^0.3.0-beta.10":
version: 0.3.0-beta.11
resolution: "hardhat-deploy-ethers@npm:0.3.0-beta.11"
peerDependencies:
ethers: ^5.0.0
hardhat: ^2.0.0
checksum: 0becd3dc7b1b447127cf74ef1018589b8d6d3c73bbeb893e3c27fe7e412aabb3a6d11aec1169fef427d85a6c2c512f1f99017ab1a928cdaab5960b74e445625a
languageName: node
linkType: hard

"hardhat-deploy@npm:^0.9.2":
version: 0.9.4
resolution: "hardhat-deploy@npm:0.9.4"
Expand Down

0 comments on commit 42f24a0

Please sign in to comment.