diff --git a/.prettierrc.js b/.prettierrc.js index b2d98d2ee2..325d63805f 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -5,4 +5,5 @@ module.exports = { singleQuote: true, tabWidth: 2, trailingComma: 'all', + plugins: ['prettier-plugin-packagejson'], }; diff --git a/package.json b/package.json index fd9160a23a..c4221e79b1 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "lint:dependencies": "yarn workspaces foreach --all --parallel --verbose run lint:dependencies && yarn dedupe --check", "lint:eslint": "eslint . --cache --ext js,cjs,mjs,jsx,ts,mts,cts,tsx", "lint:fix": "yarn workspaces foreach --all --parallel run lint:eslint --fix && yarn lint:misc --write && yarn lint:tsconfig && yarn constraints --fix && yarn dedupe", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn '**/*.json' '**/*.md' '!**/CHANGELOG.md' '**/*.yml' '**/*.html'", "lint:tsconfig": "node scripts/verify-tsconfig.mjs", "prepare-preview-builds": "./scripts/prepare-preview-builds.sh", "publish-previews": "yarn workspaces foreach --all --parallel --verbose run publish:preview", @@ -77,7 +77,7 @@ }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/create-release-branch": "^3.0.1", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", @@ -95,12 +95,12 @@ "chromedriver": "^131.0.5", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "execa": "^5.1.1", "favicons": "^7.1.2", @@ -110,7 +110,7 @@ "lint-staged": "^12.4.1", "lodash": "^4.17.21", "minimatch": "^7.4.1", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "semver": "^7.5.4", diff --git a/packages/create-snap/.depcheckrc.json b/packages/create-snap/.depcheckrc.json index 3fba666b10..0a1cea5dcc 100644 --- a/packages/create-snap/.depcheckrc.json +++ b/packages/create-snap/.depcheckrc.json @@ -10,6 +10,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/create-snap/package.json b/packages/create-snap/package.json index 0e9dfb7ed2..552e2cebd0 100644 --- a/packages/create-snap/package.json +++ b/packages/create-snap/package.json @@ -49,15 +49,15 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:package": "../../scripts/publish-package.sh", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", "test:post": "jest-it-up", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-utils": "workspace:^", @@ -66,7 +66,7 @@ }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -82,18 +82,18 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "memfs": "^3.4.13", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "tsc-watch": "^4.5.0", diff --git a/packages/examples/.depcheckrc.json b/packages/examples/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/.depcheckrc.json +++ b/packages/examples/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/package.json b/packages/examples/package.json index 5ec686c105..f1ca0199be 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -33,7 +33,7 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!packages/**\" --ignore-path ../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!packages/**\" --ignore-path ../../.gitignore", "since-latest-release": "../../scripts/since-latest-release.sh", "start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --no-private --jobs unlimited run start", "start:test": "yarn start", @@ -45,7 +45,7 @@ }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -54,15 +54,15 @@ "@typescript-eslint/parser": "^6.21.0", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/bip32/.depcheckrc.json b/packages/examples/packages/bip32/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/bip32/.depcheckrc.json +++ b/packages/examples/packages/bip32/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/bip32/package.json b/packages/examples/packages/bip32/package.json index b76ec0ad19..518935616d 100644 --- a/packages/examples/packages/bip32/package.json +++ b/packages/examples/packages/bip32/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/key-tree": "^10.0.2", @@ -52,7 +52,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -66,16 +66,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/bip44/.depcheckrc.json b/packages/examples/packages/bip44/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/bip44/.depcheckrc.json +++ b/packages/examples/packages/bip44/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/bip44/package.json b/packages/examples/packages/bip44/package.json index 61f0fbb8fe..92f0cda958 100644 --- a/packages/examples/packages/bip44/package.json +++ b/packages/examples/packages/bip44/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/key-tree": "^10.0.2", @@ -51,7 +51,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -65,16 +65,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/browserify-plugin/.depcheckrc.json b/packages/examples/packages/browserify-plugin/.depcheckrc.json index fdfa140639..1625bbfff0 100644 --- a/packages/examples/packages/browserify-plugin/.depcheckrc.json +++ b/packages/examples/packages/browserify-plugin/.depcheckrc.json @@ -10,6 +10,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/browserify-plugin/package.json b/packages/examples/packages/browserify-plugin/package.json index 7b58c47dd0..34d2991879 100644 --- a/packages/examples/packages/browserify-plugin/package.json +++ b/packages/examples/packages/browserify-plugin/package.json @@ -33,13 +33,13 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -47,7 +47,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/browserify/.depcheckrc.json b/packages/examples/packages/browserify/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/browserify/.depcheckrc.json +++ b/packages/examples/packages/browserify/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/browserify/package.json b/packages/examples/packages/browserify/package.json index 0ba3299f9c..26689ad2b9 100644 --- a/packages/examples/packages/browserify/package.json +++ b/packages/examples/packages/browserify/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/client-status/.depcheckrc.json b/packages/examples/packages/client-status/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/client-status/.depcheckrc.json +++ b/packages/examples/packages/client-status/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/client-status/package.json b/packages/examples/packages/client-status/package.json index a5425b6105..387927ffb9 100644 --- a/packages/examples/packages/client-status/package.json +++ b/packages/examples/packages/client-status/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/cronjobs/.depcheckrc.json b/packages/examples/packages/cronjobs/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/cronjobs/.depcheckrc.json +++ b/packages/examples/packages/cronjobs/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/cronjobs/package.json b/packages/examples/packages/cronjobs/package.json index 6813f24ab4..1c16f41f60 100644 --- a/packages/examples/packages/cronjobs/package.json +++ b/packages/examples/packages/cronjobs/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/dialogs/.depcheckrc.json b/packages/examples/packages/dialogs/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/dialogs/.depcheckrc.json +++ b/packages/examples/packages/dialogs/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/dialogs/package.json b/packages/examples/packages/dialogs/package.json index f95b55dea1..2438edf9cd 100644 --- a/packages/examples/packages/dialogs/package.json +++ b/packages/examples/packages/dialogs/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/errors/.depcheckrc.json b/packages/examples/packages/errors/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/errors/.depcheckrc.json +++ b/packages/examples/packages/errors/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/errors/package.json b/packages/examples/packages/errors/package.json index d1ca433a7f..b22fb43c8c 100644 --- a/packages/examples/packages/errors/package.json +++ b/packages/examples/packages/errors/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/ethereum-provider/.depcheckrc.json b/packages/examples/packages/ethereum-provider/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/ethereum-provider/.depcheckrc.json +++ b/packages/examples/packages/ethereum-provider/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/ethereum-provider/package.json b/packages/examples/packages/ethereum-provider/package.json index ecd2fcbc2d..802a10e9a5 100644 --- a/packages/examples/packages/ethereum-provider/package.json +++ b/packages/examples/packages/ethereum-provider/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/ethers-js/.depcheckrc.json b/packages/examples/packages/ethers-js/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/ethers-js/.depcheckrc.json +++ b/packages/examples/packages/ethers-js/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/ethers-js/package.json b/packages/examples/packages/ethers-js/package.json index 6d8b527a8c..24d67fa850 100644 --- a/packages/examples/packages/ethers-js/package.json +++ b/packages/examples/packages/ethers-js/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3", diff --git a/packages/examples/packages/file-upload/.depcheckrc.json b/packages/examples/packages/file-upload/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/file-upload/.depcheckrc.json +++ b/packages/examples/packages/file-upload/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/file-upload/package.json b/packages/examples/packages/file-upload/package.json index 3e3b321a9f..d9b6a8d218 100644 --- a/packages/examples/packages/file-upload/package.json +++ b/packages/examples/packages/file-upload/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/get-entropy/.depcheckrc.json b/packages/examples/packages/get-entropy/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/get-entropy/.depcheckrc.json +++ b/packages/examples/packages/get-entropy/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/get-entropy/package.json b/packages/examples/packages/get-entropy/package.json index d1119e2be8..dc4907109c 100644 --- a/packages/examples/packages/get-entropy/package.json +++ b/packages/examples/packages/get-entropy/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -50,7 +50,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -64,16 +64,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/get-file/.depcheckrc.json b/packages/examples/packages/get-file/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/get-file/.depcheckrc.json +++ b/packages/examples/packages/get-file/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/get-file/package.json b/packages/examples/packages/get-file/package.json index d7851edce8..6f61e4c37f 100644 --- a/packages/examples/packages/get-file/package.json +++ b/packages/examples/packages/get-file/package.json @@ -34,14 +34,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/home-page/.depcheckrc.json b/packages/examples/packages/home-page/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/home-page/.depcheckrc.json +++ b/packages/examples/packages/home-page/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/home-page/package.json b/packages/examples/packages/home-page/package.json index 7cadb85f4c..cfe9ba3fca 100644 --- a/packages/examples/packages/home-page/package.json +++ b/packages/examples/packages/home-page/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/images/.depcheckrc.json b/packages/examples/packages/images/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/images/.depcheckrc.json +++ b/packages/examples/packages/images/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/images/package.json b/packages/examples/packages/images/package.json index a650a1a427..f8313cbf34 100644 --- a/packages/examples/packages/images/package.json +++ b/packages/examples/packages/images/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/interactive-ui/.depcheckrc.json b/packages/examples/packages/interactive-ui/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/interactive-ui/.depcheckrc.json +++ b/packages/examples/packages/interactive-ui/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/interactive-ui/package.json b/packages/examples/packages/interactive-ui/package.json index 966dd59155..4bd34c71ba 100644 --- a/packages/examples/packages/interactive-ui/package.json +++ b/packages/examples/packages/interactive-ui/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/invoke-snap/.depcheckrc.json b/packages/examples/packages/invoke-snap/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/invoke-snap/.depcheckrc.json +++ b/packages/examples/packages/invoke-snap/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/invoke-snap/package.json b/packages/examples/packages/invoke-snap/package.json index 71be50aae7..1dcf4c6bfc 100644 --- a/packages/examples/packages/invoke-snap/package.json +++ b/packages/examples/packages/invoke-snap/package.json @@ -32,18 +32,18 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" \"!packages/**\" --ignore-path ../../../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" \"!packages/**\" --ignore-path ../../../../.gitignore", "since-latest-release": "../../../../scripts/since-latest-release.sh", "start": "yarn workspaces foreach --worktree --parallel --verbose --interlaced --jobs unlimited run start", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", "test:post": "jest-it-up", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -52,15 +52,15 @@ "@typescript-eslint/parser": "^6.21.0", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/invoke-snap/packages/consumer-signer/.depcheckrc.json b/packages/examples/packages/invoke-snap/packages/consumer-signer/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/invoke-snap/packages/consumer-signer/.depcheckrc.json +++ b/packages/examples/packages/invoke-snap/packages/consumer-signer/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/invoke-snap/packages/consumer-signer/package.json b/packages/examples/packages/invoke-snap/packages/consumer-signer/package.json index fadb7785c5..fdbdbb960c 100644 --- a/packages/examples/packages/invoke-snap/packages/consumer-signer/package.json +++ b/packages/examples/packages/invoke-snap/packages/consumer-signer/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/key-tree": "^10.0.2", @@ -51,7 +51,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -65,16 +65,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/invoke-snap/packages/core-signer/.depcheckrc.json b/packages/examples/packages/invoke-snap/packages/core-signer/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/invoke-snap/packages/core-signer/.depcheckrc.json +++ b/packages/examples/packages/invoke-snap/packages/core-signer/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/invoke-snap/packages/core-signer/package.json b/packages/examples/packages/invoke-snap/packages/core-signer/package.json index 6b9a9a0e38..04b348b6db 100644 --- a/packages/examples/packages/invoke-snap/packages/core-signer/package.json +++ b/packages/examples/packages/invoke-snap/packages/core-signer/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/key-tree": "^10.0.2", @@ -52,7 +52,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -67,16 +67,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/json-rpc/.depcheckrc.json b/packages/examples/packages/json-rpc/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/json-rpc/.depcheckrc.json +++ b/packages/examples/packages/json-rpc/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/json-rpc/package.json b/packages/examples/packages/json-rpc/package.json index 77155de7a5..aaca7692b0 100644 --- a/packages/examples/packages/json-rpc/package.json +++ b/packages/examples/packages/json-rpc/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/jsx/.depcheckrc.json b/packages/examples/packages/jsx/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/jsx/.depcheckrc.json +++ b/packages/examples/packages/jsx/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/jsx/package.json b/packages/examples/packages/jsx/package.json index bc52b260e5..9f6a48030d 100644 --- a/packages/examples/packages/jsx/package.json +++ b/packages/examples/packages/jsx/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/rpc-errors": "^7.0.2", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -64,16 +64,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/lifecycle-hooks/.depcheckrc.json b/packages/examples/packages/lifecycle-hooks/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/lifecycle-hooks/.depcheckrc.json +++ b/packages/examples/packages/lifecycle-hooks/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/lifecycle-hooks/package.json b/packages/examples/packages/lifecycle-hooks/package.json index a8e5a80902..11d84d246a 100644 --- a/packages/examples/packages/lifecycle-hooks/package.json +++ b/packages/examples/packages/lifecycle-hooks/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/localization/.depcheckrc.json b/packages/examples/packages/localization/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/localization/.depcheckrc.json +++ b/packages/examples/packages/localization/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/localization/package.json b/packages/examples/packages/localization/package.json index 933e82a004..2d14dd346c 100644 --- a/packages/examples/packages/localization/package.json +++ b/packages/examples/packages/localization/package.json @@ -34,14 +34,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/manage-state/.depcheckrc.json b/packages/examples/packages/manage-state/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/manage-state/.depcheckrc.json +++ b/packages/examples/packages/manage-state/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/manage-state/package.json b/packages/examples/packages/manage-state/package.json index d208aa38ec..293ff7cdd5 100644 --- a/packages/examples/packages/manage-state/package.json +++ b/packages/examples/packages/manage-state/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/name-lookup/.depcheckrc.json b/packages/examples/packages/name-lookup/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/name-lookup/.depcheckrc.json +++ b/packages/examples/packages/name-lookup/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/name-lookup/package.json b/packages/examples/packages/name-lookup/package.json index 521203033c..bd3d8bf51c 100644 --- a/packages/examples/packages/name-lookup/package.json +++ b/packages/examples/packages/name-lookup/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/network-access/.depcheckrc.json b/packages/examples/packages/network-access/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/network-access/.depcheckrc.json +++ b/packages/examples/packages/network-access/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/network-access/package.json b/packages/examples/packages/network-access/package.json index 2b029a926c..a342485820 100644 --- a/packages/examples/packages/network-access/package.json +++ b/packages/examples/packages/network-access/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -64,16 +64,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/notifications/.depcheckrc.json b/packages/examples/packages/notifications/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/notifications/.depcheckrc.json +++ b/packages/examples/packages/notifications/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/notifications/package.json b/packages/examples/packages/notifications/package.json index e35e00a0db..b94fbb1b2f 100644 --- a/packages/examples/packages/notifications/package.json +++ b/packages/examples/packages/notifications/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/preinstalled/.depcheckrc.json b/packages/examples/packages/preinstalled/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/preinstalled/.depcheckrc.json +++ b/packages/examples/packages/preinstalled/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/preinstalled/package.json b/packages/examples/packages/preinstalled/package.json index f25da5d9dd..a1799d6964 100644 --- a/packages/examples/packages/preinstalled/package.json +++ b/packages/examples/packages/preinstalled/package.json @@ -34,14 +34,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -65,16 +65,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "tsx": "^4.19.1", diff --git a/packages/examples/packages/rollup-plugin/.depcheckrc.json b/packages/examples/packages/rollup-plugin/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/rollup-plugin/.depcheckrc.json +++ b/packages/examples/packages/rollup-plugin/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/rollup-plugin/package.json b/packages/examples/packages/rollup-plugin/package.json index ed24de7aac..dd8103affe 100644 --- a/packages/examples/packages/rollup-plugin/package.json +++ b/packages/examples/packages/rollup-plugin/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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": "yarn build --watch", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -51,7 +51,7 @@ "@babel/preset-typescript": "^7.23.2", "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -69,16 +69,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rollup": "^2.73.0", "ts-node": "^10.9.1", diff --git a/packages/examples/packages/send-flow/.depcheckrc.json b/packages/examples/packages/send-flow/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/send-flow/.depcheckrc.json +++ b/packages/examples/packages/send-flow/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/send-flow/package.json b/packages/examples/packages/send-flow/package.json index 2220b228f4..5a19f612be 100644 --- a/packages/examples/packages/send-flow/package.json +++ b/packages/examples/packages/send-flow/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/rpc-errors": "^7.0.2", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/signature-insights/.depcheckrc.json b/packages/examples/packages/signature-insights/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/signature-insights/.depcheckrc.json +++ b/packages/examples/packages/signature-insights/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/signature-insights/package.json b/packages/examples/packages/signature-insights/package.json index d26f6d89ae..8d31ae9697 100644 --- a/packages/examples/packages/signature-insights/package.json +++ b/packages/examples/packages/signature-insights/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -62,16 +62,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/transaction-insights/.depcheckrc.json b/packages/examples/packages/transaction-insights/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/examples/packages/transaction-insights/.depcheckrc.json +++ b/packages/examples/packages/transaction-insights/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/transaction-insights/package.json b/packages/examples/packages/transaction-insights/package.json index 0a11808ba5..16cd481d2a 100644 --- a/packages/examples/packages/transaction-insights/package.json +++ b/packages/examples/packages/transaction-insights/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^", @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/wasm/.depcheckrc.json b/packages/examples/packages/wasm/.depcheckrc.json index 0f1dad8d45..0449aef810 100644 --- a/packages/examples/packages/wasm/.depcheckrc.json +++ b/packages/examples/packages/wasm/.depcheckrc.json @@ -10,6 +10,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/examples/packages/wasm/package.json b/packages/examples/packages/wasm/package.json index e1c435d415..8dcd73a358 100644 --- a/packages/examples/packages/wasm/package.json +++ b/packages/examples/packages/wasm/package.json @@ -34,14 +34,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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": "yarn build:wasm && mm-snap watch", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -49,7 +49,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -64,16 +64,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "typescript": "~5.3.3" diff --git a/packages/examples/packages/webpack-plugin/.depcheckrc.json b/packages/examples/packages/webpack-plugin/.depcheckrc.json index 5dd3097d97..b0dd03cbb9 100644 --- a/packages/examples/packages/webpack-plugin/.depcheckrc.json +++ b/packages/examples/packages/webpack-plugin/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "swc-loader", diff --git a/packages/examples/packages/webpack-plugin/package.json b/packages/examples/packages/webpack-plugin/package.json index 9a98b4d02f..2c5effb3b8 100644 --- a/packages/examples/packages/webpack-plugin/package.json +++ b/packages/examples/packages/webpack-plugin/package.json @@ -33,14 +33,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" \"!snap.manifest.json\" --ignore-path ../../../../.gitignore", + "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": "webpack watch", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-sdk": "workspace:^" @@ -48,7 +48,7 @@ "devDependencies": { "@jest/globals": "^29.5.0", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -63,16 +63,16 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-silent-reporter": "^0.6.0", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "swc-loader": "^0.2.3", "terser-webpack-plugin": "^5.3.9", diff --git a/packages/snaps-browserify-plugin/.depcheckrc.json b/packages/snaps-browserify-plugin/.depcheckrc.json index c437c59cd2..a07da118be 100644 --- a/packages/snaps-browserify-plugin/.depcheckrc.json +++ b/packages/snaps-browserify-plugin/.depcheckrc.json @@ -9,6 +9,7 @@ "@typescript-eslint/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "prettier-plugin-packagejson", "ts-node", diff --git a/packages/snaps-browserify-plugin/package.json b/packages/snaps-browserify-plugin/package.json index 1e1b3fc5c9..f9a4677973 100644 --- a/packages/snaps-browserify-plugin/package.json +++ b/packages/snaps-browserify-plugin/package.json @@ -47,14 +47,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", "test:post": "jest-it-up", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/snaps-utils": "workspace:^", @@ -63,7 +63,7 @@ }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -81,18 +81,18 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "jest": "^29.0.2", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "memfs": "^3.4.13", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "typescript": "~5.3.3" }, diff --git a/packages/snaps-cli/.depcheckrc.json b/packages/snaps-cli/.depcheckrc.json index 1bb7642b66..bc82c6b540 100644 --- a/packages/snaps-cli/.depcheckrc.json +++ b/packages/snaps-cli/.depcheckrc.json @@ -13,6 +13,7 @@ "buffer", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "events", "is-core-module", diff --git a/packages/snaps-cli/package.json b/packages/snaps-cli/package.json index 6a78209ff8..ef56baa152 100644 --- a/packages/snaps-cli/package.json +++ b/packages/snaps-cli/package.json @@ -54,14 +54,14 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", - "test": "jest --reporters=jest-silent-reporter", - "test:clean": "jest --clearCache", + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", "test:post": "jest-it-up", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@babel/core": "^7.23.2", @@ -117,7 +117,7 @@ }, "devDependencies": { "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", "@metamask/eslint-config-nodejs": "^12.1.0", @@ -135,19 +135,19 @@ "deepmerge": "^4.2.2", "depcheck": "^1.4.7", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "execa": "^5.1.1", "jest": "^29.0.2", "jest-it-up": "^2.0.0", "jest-silent-reporter": "^0.6.0", "memfs": "^3.4.13", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "ts-node": "^10.9.1", "tsc-watch": "^4.5.0", diff --git a/packages/snaps-controllers/.depcheckrc.json b/packages/snaps-controllers/.depcheckrc.json index f8028874ce..df3d46b312 100644 --- a/packages/snaps-controllers/.depcheckrc.json +++ b/packages/snaps-controllers/.depcheckrc.json @@ -10,6 +10,7 @@ "@wdio/*", "eslint-config-*", "eslint-plugin-*", + "jest", "jest-silent-reporter", "expect-webdriverio", "prettier-plugin-packagejson", diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index e120b94c75..ff1aefb609 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -67,16 +67,16 @@ "lint:dependencies": "depcheck", "lint:eslint": "eslint . --cache --ext js,ts,jsx,tsx", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", - "lint:misc": "prettier --no-error-on-unmatched-pattern --loglevel warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", + "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", - "test": "jest --reporters=jest-silent-reporter && yarn test:browser", + "test": "node --experimental-vm-modules $(yarn bin jest) --reporters=jest-silent-reporter && yarn test:browser", "test:browser": "wdio run wdio.config.js", - "test:clean": "jest --clearCache", + "test:clean": "node --experimental-vm-modules $(yarn bin jest) --clearCache", "test:post": "ts-node scripts/coverage.ts && rimraf coverage/jest coverage/wdio", "test:pre": "yarn mkdirp test/fixtures && ./scripts/generate-fixtures.sh", - "test:verbose": "jest --verbose", - "test:watch": "jest --watch" + "test:verbose": "node --experimental-vm-modules $(yarn bin jest) --verbose", + "test:watch": "node --experimental-vm-modules $(yarn bin jest) --watch" }, "dependencies": { "@metamask/approval-controller": "^7.1.2", @@ -112,7 +112,7 @@ "@esbuild-plugins/node-globals-polyfill": "^0.2.3", "@esbuild-plugins/node-modules-polyfill": "^0.2.2", "@lavamoat/allow-scripts": "^3.0.4", - "@metamask/auto-changelog": "^3.4.4", + "@metamask/auto-changelog": "^4.0.0", "@metamask/browser-passworder": "^6.0.0", "@metamask/eslint-config": "^12.1.0", "@metamask/eslint-config-jest": "^12.1.0", @@ -144,12 +144,12 @@ "depcheck": "^1.4.7", "esbuild": "^0.18.10", "eslint": "^8.27.0", - "eslint-config-prettier": "^8.5.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "^41.1.2", "eslint-plugin-n": "^15.7.0", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-promise": "^6.1.1", "expect-webdriverio": "^4.4.1", "istanbul-lib-coverage": "^3.2.0", @@ -159,7 +159,7 @@ "jest-fetch-mock": "^3.0.3", "jest-silent-reporter": "^0.6.0", "mkdirp": "^1.0.4", - "prettier": "^2.8.8", + "prettier": "^3.4.2", "prettier-plugin-packagejson": "^2.5.2", "rimraf": "^4.1.2", "ts-node": "^10.9.1", diff --git a/packages/snaps-controllers/src/services/iframe/test/index.html b/packages/snaps-controllers/src/services/iframe/test/index.html index 810e78b57e..4bc64e9a3d 100644 --- a/packages/snaps-controllers/src/services/iframe/test/index.html +++ b/packages/snaps-controllers/src/services/iframe/test/index.html @@ -1,4 +1,4 @@ - +