diff --git a/packages/test-snaps/package.json b/packages/test-snaps/package.json index 9bda3d5693..5534dd295e 100644 --- a/packages/test-snaps/package.json +++ b/packages/test-snaps/package.json @@ -1,7 +1,6 @@ { "name": "@metamask/test-snaps", "version": "2.28.1", - "private": true, "description": "The test snaps website for MetaMask Snaps, used for end-to-end testing", "keywords": [ "MetaMask", @@ -18,7 +17,9 @@ }, "license": "ISC", "sideEffects": false, - "files": [], + "files": [ + "dist" + ], "scripts": { "build": "cross-env NODE_ENV=production webpack", "build:clean": "yarn clean && yarn build", @@ -31,6 +32,7 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern --log-level warn \"**/*.json\" \"**/*.md\" \"**/*.html\" \"!CHANGELOG.md\" --ignore-path ../../.gitignore", + "publish:preview": "yarn npm publish --tag preview", "since-latest-release": "../../scripts/since-latest-release.sh", "start": "yarn workspaces foreach --parallel --interlaced --all --include \"@metamask/test-snaps\" --include \"@metamask/example-snaps\" run start:test", "start:test": "cross-env NODE_ENV=development webpack serve", @@ -119,5 +121,9 @@ }, "engines": { "node": "^20 || >=22" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" } } diff --git a/yarn.config.cjs b/yarn.config.cjs index e2c3fa4db3..1a772698eb 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -109,7 +109,8 @@ module.exports = defineConfig({ if ( !isPrivate && !isExample && - workspace.cwd !== 'packages/snaps-sandbox' + workspace.cwd !== 'packages/snaps-sandbox' && + workspace.cwd !== 'packages/test-snaps' ) { // All non-root, non-example packages must set up ESM- and // CommonJS-compatible exports correctly.