Skip to content

Commit 6431326

Browse files
committed
fix(release): remove preinstall guard that blocked npx usage
The `only-allow pnpm` preinstall script prevented consumers from installing via npx/npm. Removed it — pnpm is enforced via packageManager field + corepack instead.
1 parent 2aaf328 commit 6431326

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ dist/
44
*.tsbuildinfo
55
.env
66
next-env.d.ts
7+
.npmrc

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "codebase-visualizer",
3-
"version": "1.0.0",
2+
"name": "@bntvllnt/codebase-visualizer",
3+
"version": "1.0.1",
44
"description": "3D interactive codebase visualization with MCP integration for LLM-assisted code understanding",
55
"type": "module",
66
"main": "dist/cli.js",
@@ -9,7 +9,6 @@
99
},
1010
"packageManager": "pnpm@10.28.2",
1111
"scripts": {
12-
"preinstall": "npx only-allow pnpm",
1312
"build": "tsc -p tsconfig.build.json && next build",
1413
"build:cli": "tsc -p tsconfig.build.json",
1514
"dev": "tsx src/cli.ts",
@@ -20,7 +19,8 @@
2019
"lint": "eslint src/ app/ components/ hooks/ lib/",
2120
"typecheck": "tsc --noEmit",
2221
"clean": "rm -rf dist .next",
23-
"publish:npm": "pnpm lint && pnpm typecheck && pnpm build && pnpm test && npm publish --access public"
22+
"publish:npm": "pnpm lint && pnpm typecheck && pnpm build && pnpm test && npm publish --access public --registry https://registry.npmjs.org",
23+
"publish:github": "pnpm lint && pnpm typecheck && pnpm build && pnpm test && npm publish --registry https://npm.pkg.github.com"
2424
},
2525
"keywords": [
2626
"codebase",

0 commit comments

Comments
 (0)