mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Migrate pnpm config to pnpm-workspace.yaml and fix Dockerfiles for pnpm v11
- Move overrides, packageExtensions, patchedDependencies from package.json to pnpm-workspace.yaml (pnpm v11 no longer reads the pnpm field) - Upgrade Dockerfiles from pnpm@10.23.0 to pnpm@11.5.0 - Use --ignore-scripts in Docker installs to avoid pnpx only-allow failure in Docker cache-mounted store, then run postinstall manually Co-Authored-By: Konstantin Wohlwend <n2d4xc@gmail.com>
This commit is contained in:
parent
c57beaed1f
commit
094c38dbf9
@ -19,7 +19,7 @@ ENV PNPM_HOME=/pnpm
|
||||
ENV PATH=$PNPM_HOME:$PATH
|
||||
|
||||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@10.23.0 --activate
|
||||
RUN corepack prepare pnpm@11.5.0 --activate
|
||||
RUN pnpm add -g turbo
|
||||
RUN pnpm add -g tsx
|
||||
|
||||
@ -45,7 +45,8 @@ COPY pnpm-workspace.yaml .
|
||||
COPY turbo.json .
|
||||
COPY configs ./configs
|
||||
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
|
||||
RUN STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
|
||||
RUN STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
|
||||
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ ENV PNPM_HOME=/pnpm
|
||||
ENV PATH=$PNPM_HOME:$PATH
|
||||
|
||||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@10.23.0 --activate
|
||||
RUN corepack prepare pnpm@11.5.0 --activate
|
||||
RUN pnpm add -g turbo
|
||||
RUN pnpm add -g tsx
|
||||
|
||||
@ -43,7 +43,8 @@ COPY pnpm-workspace.yaml .
|
||||
COPY turbo.json .
|
||||
COPY configs ./configs
|
||||
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
|
||||
|
||||
# copy over the rest of the code for the build
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
|
||||
@ -13,7 +13,7 @@ ENV PNPM_HOME=/pnpm
|
||||
ENV PATH=$PNPM_HOME:$PATH
|
||||
|
||||
RUN corepack enable
|
||||
RUN corepack prepare pnpm@10.23.0 --activate
|
||||
RUN corepack prepare pnpm@11.5.0 --activate
|
||||
RUN pnpm add -g turbo
|
||||
RUN pnpm add -g tsx
|
||||
|
||||
@ -41,7 +41,8 @@ COPY pnpm-workspace.yaml .
|
||||
COPY turbo.json .
|
||||
COPY configs ./configs
|
||||
COPY --from=pruner /app/scripts/postinstall-patch-next-async-debug-info.mjs ./scripts/
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile
|
||||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store STACK_SKIP_TEMPLATE_GENERATION=true pnpm install --frozen-lockfile --ignore-scripts
|
||||
RUN node ./scripts/postinstall-patch-next-async-debug-info.mjs
|
||||
|
||||
# copy over the rest of the code for the build
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
|
||||
19
package.json
19
package.json
@ -112,24 +112,7 @@
|
||||
"vitest": "^1.6.0",
|
||||
"wait-on": "^8.0.1"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.0",
|
||||
"sharp": "^0.34.5"
|
||||
},
|
||||
"packageExtensions": {
|
||||
"@mintlify/link-rot": {
|
||||
"dependencies": {
|
||||
"react": "*",
|
||||
"react-dom": "*"
|
||||
}
|
||||
}
|
||||
},
|
||||
"patchedDependencies": {
|
||||
"openid-client@5.6.4": "patches/openid-client@5.6.4.patch"
|
||||
}
|
||||
},
|
||||
|
||||
"engines": {
|
||||
"npm": ">=10.0.0",
|
||||
"node": ">=20.0.0"
|
||||
|
||||
3568
pnpm-lock.yaml
3568
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,20 @@ packages:
|
||||
- sdks/*
|
||||
- sdks/implementations/*
|
||||
|
||||
overrides:
|
||||
'@types/react': ^18.2.0
|
||||
'@types/react-dom': ^18.2.0
|
||||
sharp: ^0.34.5
|
||||
|
||||
packageExtensions:
|
||||
'@mintlify/link-rot':
|
||||
dependencies:
|
||||
react: '*'
|
||||
react-dom: '*'
|
||||
|
||||
patchedDependencies:
|
||||
openid-client@5.6.4: patches/openid-client@5.6.4.patch
|
||||
|
||||
minimumReleaseAge: 10080
|
||||
|
||||
blockExoticSubdeps: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user