Skip to content

Commit ab0e501

Browse files
yamadashyclaude
andcommitted
fix(deps): Address review feedback for pnpm migration
- Rename browser package from "repomix" to "repomix-browser" to avoid workspace name collision with root package - Fix cloud-deploy script to submit repo root as build context - Use corepack enable consistently in all Dockerfiles instead of hardcoding pnpm version (reduces maintenance when version bumps) - Replace npm link with pnpm link --global in root Dockerfile - Change prepack script from "npm run build" to "node --run build" - Replace "npm run" with "pnpm run" in sub-package scripts (browser, website/client, website/server) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a1847b3 commit ab0e501

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
55
ca-certificates \
66
&& rm -rf /var/lib/apt/lists/*
77

8-
# Install pnpm
9-
RUN npm install -g pnpm@10.32.1
8+
# Enable pnpm via corepack (version from packageManager field in package.json)
9+
RUN corepack enable
1010

1111
RUN mkdir /repomix
1212
WORKDIR /repomix
@@ -16,7 +16,7 @@ WORKDIR /repomix
1616
COPY . .
1717
RUN pnpm install --frozen-lockfile \
1818
&& pnpm run build \
19-
&& npm link \
19+
&& pnpm link --global \
2020
&& pnpm prune --prod \
2121
&& pnpm store prune
2222

browser/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "repomix",
3+
"name": "repomix-browser",
44
"description": "A browser extension that adds a Repomix button to GitHub repositories",
55
"scripts": {
66
"prepare": "wxt prepare",
@@ -10,13 +10,13 @@
1010
"build:chrome": "wxt build -b chrome",
1111
"build:firefox": "wxt build -b firefox",
1212
"build:edge": "wxt build -b edge",
13-
"build-all": "npm run build:chrome && npm run build:firefox && npm run build:edge",
13+
"build-all": "pnpm run build:chrome && pnpm run build:firefox && pnpm run build:edge",
1414
"zip": "wxt zip",
1515
"zip:chrome": "wxt zip -b chrome",
1616
"zip:firefox": "wxt zip -b firefox",
1717
"zip:edge": "wxt zip -b edge",
1818
"generate-icons": "tsx scripts/generate-icons.ts",
19-
"lint": "npm run lint-tsc",
19+
"lint": "pnpm run lint-tsc",
2020
"lint-tsc": "tsgo --noEmit",
2121
"test": "vitest",
2222
"archive": "git archive HEAD -o ./storage/source.zip"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"bin": "./bin/repomix.cjs",
2121
"scripts": {
22-
"prepack": "npm run build",
22+
"prepack": "node --run build",
2323
"build": "rimraf lib && tsc -p tsconfig.build.json",
2424
"build-bun": "bun run build",
2525
"lint": "node --run lint-biome && node --run lint-oxlint && node --run lint-ts && node --run lint-secretlint",

website/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"docs:dev": "vitepress dev",
77
"docs:build": "vitepress build",
88
"docs:preview": "vitepress preview",
9-
"lint": "npm run lint-tsc",
9+
"lint": "pnpm run lint-tsc",
1010
"lint-tsc": "tsgo --noEmit"
1111
},
1212
"dependencies": {

website/server/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ FROM node:24-alpine AS builder
66
# Install git (required by repomix for remote repository processing)
77
RUN apk add --no-cache git
88

9-
# Install pnpm
10-
RUN npm install -g pnpm@10.32.1
9+
# Enable pnpm via corepack (version from packageManager field in package.json)
10+
RUN corepack enable
1111

1212
WORKDIR /app
1313

website/server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"dev": "PORT=8080 tsx watch src/index.ts",
77
"build": "tsc",
88
"bundle": "node scripts/bundle.mjs",
9-
"lint": "npm run lint-tsc",
9+
"lint": "pnpm run lint-tsc",
1010
"lint-tsc": "tsgo --noEmit",
1111
"start": "node dist/index.js",
1212
"start:bundle": "node dist-bundled/server.mjs",
1313
"clean": "rimraf dist dist-bundled",
14-
"cloud-deploy": "gcloud builds submit --config=cloudbuild.yaml ."
14+
"cloud-deploy": "gcloud builds submit --config=cloudbuild.yaml ../.."
1515
},
1616
"dependencies": {
1717
"@hono/node-server": "^1.19.11",

0 commit comments

Comments
 (0)