Skip to content

Commit

Permalink
Merge pull request #31 from 0xPARC/vzheng/cleanup-for-npm
Browse files Browse the repository at this point in the history
Update snap
  • Loading branch information
veronicaz41 authored Mar 30, 2022
2 parents f424fbc + 7a10d8c commit c62a28e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion snap/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1>Hello, Snaps!</h1>
</body>

<script>
const snapId = `local:${window.location.href}`;
const snapId = `npm:cabal-xyz-snap@1.0.1`;

const connectButton = document.querySelector('button.connect')
const sendButton = document.querySelector('button.sendHello')
Expand Down
21 changes: 18 additions & 3 deletions snap/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
{
"name": "cabal-snap",
"version": "1.0.0",
"description": "",
"name": "cabal-xyz-snap",
"version": "1.0.1",
"description": "Metamask snap fo cabal.xyz",
"repository": {
"type": "git",
"url": "git@github.com:0xPARC/cabal.git"
},
"main": "src/index.js",
"files": [
"dist/",
"snap.manifest.json"
],
"scripts": {
"build:clean": "yarn clean && yarn build",
"build": "mm-snap build",
Expand Down Expand Up @@ -30,5 +38,12 @@
"circomlibjs": "github:lsankar4033/circomlibjs#lsankar4033/cabal-new",
"ethers": "5.6.2",
"snarkjs": "github:veronicaz41/snarkjs#vzheng/cabal-new"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=12.11.0"
}
}
12 changes: 8 additions & 4 deletions snap/snap.manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"version": "1.0.0",
"description": "Cabal Snap",
"proposedName": "cabal-snap",
"version": "1.0.1",
"description": "Snap for cabal.xyz",
"proposedName": "cabal-xyz-snap",
"repository": {
"type": "git",
"url": "git@github.com:0xPARC/cabal.git"
},
"source": {
"shasum": "XXZBisAZRJiowzXUOF2KR4QHKhnxhvkfhXl0OkJ5wlI=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
"packageName": "cabal-snap",
"packageName": "cabal-xyz-snap",
"registry": "https://registry.npmjs.org"
}
}
Expand Down

0 comments on commit c62a28e

Please sign in to comment.