Skip to content

Commit

Permalink
📦️ feat(wallets): Initialize metamask wallet package (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception authored Oct 4, 2023
1 parent 5adb832 commit 84ac7dc
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
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
})

0 comments on commit 84ac7dc

Please sign in to comment.