@metamask/lifecycle-hooks-example-snap
Version:
MetaMask example snap demonstrating the use of the `onStart`, `onInstall`, and `onUpdate` lifecycle hooks
73 lines • 2.56 kB
JSON
{
"name": "@metamask/lifecycle-hooks-example-snap",
"version": "2.3.0",
"description": "MetaMask example snap demonstrating the use of the `onStart`, `onInstall`, and `onUpdate` lifecycle hooks",
"keywords": [
"MetaMask",
"Snaps",
"Ethereum"
],
"homepage": "https://github.com/MetaMask/snaps/tree/main/packages/examples/packages/lifecycle-hooks#readme",
"bugs": {
"url": "https://github.com/MetaMask/snaps/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/MetaMask/snaps.git"
},
"license": "(MIT-0 OR Apache-2.0)",
"sideEffects": false,
"main": "./dist/bundle.js",
"files": [
"dist",
"snap.manifest.json"
],
"scripts": {
"build": "mm-snap build",
"build:clean": "yarn clean && yarn build",
"changelog:update": "../../../../scripts/update-changelog.sh @metamask/lifecycle-hooks-example-snap",
"changelog:validate": "../../../../scripts/validate-changelog.sh @metamask/lifecycle-hooks-example-snap",
"clean": "rimraf \"dist\"",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn changelog:validate && yarn lint:dependencies",
"lint:ci": "yarn lint",
"lint:dependencies": "depcheck",
"lint:eslint": "eslint . --cache",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore",
"publish:preview": "yarn npm publish --tag preview",
"since-latest-release": "../../../../scripts/since-latest-release.sh",
"start": "mm-snap watch",
"test": "jest --reporters=jest-silent-reporter",
"test:clean": "jest --clearCache",
"test:verbose": "jest --verbose",
"test:watch": "jest --watch"
},
"dependencies": {
"@metamask/snaps-sdk": "^9.3.0"
},
"devDependencies": {
"@jest/globals": "^29.5.0",
"@lavamoat/allow-scripts": "^3.3.4",
"@metamask/auto-changelog": "^5.0.2",
"@metamask/snaps-cli": "^8.1.1",
"@metamask/snaps-jest": "^9.3.0",
"@swc/core": "1.11.31",
"@swc/jest": "^0.2.38",
"@types/node": "18.14.2",
"deepmerge": "^4.2.2",
"depcheck": "^1.4.7",
"eslint": "^9.11.0",
"jest": "^29.0.2",
"jest-silent-reporter": "^0.6.0",
"prettier": "^3.3.3",
"ts-node": "^10.9.1",
"typescript": "~5.3.3"
},
"engines": {
"node": "^20 || >=22"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
}
}