From caaa07bf016eda7f07362859dde0e40f835f11c8 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Tue, 18 Jan 2022 00:52:30 -0800 Subject: [PATCH] Rename package, rebuild snap --- CHANGELOG.md | 1 + README.md | 2 +- package.json | 2 +- scripts/build-website.js | 2 +- snap.manifest.json | 8 ++++---- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 532804c..7135207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.7.0] ### Changed +- Package renamed to `@metamask/template-snap` - @metamask/snaps-cli@0.7.0 ([#4](https://github.com/MetaMask/snap-template/pull/4)) - Add more content to the custom confirmation - Add cleanup script, more instructions in readme diff --git a/README.md b/README.md index b8c8e79..ae7bfa6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# @metamask/example-snap +# @metamask/template-snap The "Hello, world!" of MetaMask Snaps, and also a GitHub template repository. For instructions, see [the MetaMask documentation](https://docs.metamask.io/guide/snaps-tutorial.html). diff --git a/package.json b/package.json index 923c60d..0fc824b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@metamask/example-snap", + "name": "@metamask/template-snap", "version": "0.7.0", "description": "The 'Hello, world!' of MetaMask Snaps.", "repository": { diff --git a/scripts/build-website.js b/scripts/build-website.js index 85f32b2..6db4be1 100644 --- a/scripts/build-website.js +++ b/scripts/build-website.js @@ -24,7 +24,7 @@ async function main() { htmlContents.replace( // eslint-disable-next-line no-template-curly-in-string 'const snapId = `local:${window.location.href}`;', - 'const snapId = `npm:@metamask/example-snap`;', + 'const snapId = `npm:@metamask/template-snap`;', ), ); } diff --git a/snap.manifest.json b/snap.manifest.json index 88731e2..99fd090 100644 --- a/snap.manifest.json +++ b/snap.manifest.json @@ -1,7 +1,7 @@ { - "version": "0.6.1", - "proposedName": "MetaMask Example Snap", - "description": "An example MetaMask Snap.", + "version": "0.7.0", + "proposedName": "MetaMask Template Snap", + "description": "A MetaMask Snap template.", "repository": { "type": "git", "url": "https://github.com/MetaMask/snap-template.git" @@ -12,7 +12,7 @@ "npm": { "filePath": "dist/bundle.js", "iconPath": "images/icon.svg", - "packageName": "@metamask/example-snap", + "packageName": "@metamask/template-snap", "registry": "https://registry.npmjs.org/" } }