Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦️ feat(wallets): Initialize metamask wallet package #909

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pnpm-lock.yaml

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

32 changes: 32 additions & 0 deletions wallets/metamask/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "metamask",
"version": "1.0.0",
"type": "module",
"exports": {
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"files": [
"dist",
"src",
"types"
],
"scripts": {
"build": "pnpm run clean && pnpm run build:dist && pnpm run build:types",
"build:dist": "tsup",
"build:types": "tsc --emitDeclarationOnly",
"clean": "rimraf dist types",
"types:check": "tsc --noEmit"
},
"devDependencies": {
"rimraf": "^5.0.1",
"tsconfig": "workspace:*",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
}
}
3 changes: 3 additions & 0 deletions wallets/metamask/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function hello() {
return 'Hello World!'
}
13 changes: 13 additions & 0 deletions wallets/metamask/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "tsconfig/base.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "types",
"declaration": true,
"sourceMap": true,
"declarationMap": true
},
"include": [
"src"
]
}
10 changes: 10 additions & 0 deletions wallets/metamask/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'tsup'

export default defineConfig({
name: 'metamask',
entry: ['src/index.ts'],
outDir: 'dist',
format: 'esm',
splitting: false,
sourcemap: true
})