Skip to content

Commit

Permalink
fix broken import EventEmitter and remove unused packages from nextjs…
Browse files Browse the repository at this point in the history
… app
  • Loading branch information
0xmaayan committed Dec 9, 2022
1 parent 5ce072c commit 67b587e
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ node_modules
.pnp
.pnp.js

# build
dist

# testing
coverage

Expand Down
2 changes: 0 additions & 2 deletions apps/nextjs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@aptos-labs/eslint-config-adapter": "workspace:*",
"@aptos-labs/wallet-adapter-tsconfig": "workspace:*",
"@babel/core": "^7.0.0",
"@types/node": "^17.0.12",
"@types/react": "^18.0.22",
Expand Down
17 changes: 16 additions & 1 deletion apps/nextjs-example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
{
"extends": "@aptos-labs/wallet-adapter-tsconfig/nextjs.json",
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
4 changes: 3 additions & 1 deletion packages/wallet-adapter-core/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.turbo
.turbo
.eslintrc.js
tsconfig.json
2 changes: 1 addition & 1 deletion packages/wallet-adapter-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-core",
"version": "0.1.4",
"version": "0.1.7",
"description": "Aptos Wallet Adapter Core",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/wallet-adapter-core/src/WalletCore.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Types } from "aptos";
import { EventEmitter } from "eventemitter3";
import EventEmitter from "eventemitter3";

import { WalletReadyState } from "./constants";
import {
Expand Down
4 changes: 3 additions & 1 deletion packages/wallet-adapter-react/.npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
.turbo
.turbo
.eslintrc.js
tsconfig.json
2 changes: 1 addition & 1 deletion packages/wallet-adapter-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-react",
"version": "0.1.6",
"version": "0.1.7",
"description": "Aptos Wallet Adapter React Provider",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
14 changes: 5 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67b587e

Please sign in to comment.