Skip to content

Commit fb35321

Browse files
committed
Merge branch 'alternation-engine' of github.com:drizzle-team/drizzle-orm into alternation-engine
2 parents fa7ca82 + f083c0c commit fb35321

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

compose/lint.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,38 @@ cd "$PROJECT_ROOT"
88
# Name of the pnpm store volume used as cache between runs
99
PNPM_STORE_VOLUME="pnpm-store"
1010
PNPM_COREPACK_CACHE_VOLUME="pnpm-corepack-cache"
11+
APK_CACHE_VOLUME="apk-cache"
1112

1213
docker run --rm \
1314
-e CI=1 \
1415
-v "$PROJECT_ROOT":/src:ro \
1516
-v "${PNPM_STORE_VOLUME}":/pnpm/store \
1617
-v "${PNPM_COREPACK_CACHE_VOLUME}":/root/.cache \
18+
-v "${APK_CACHE_VOLUME}":/var/cache/apk \
1719
node:24-alpine \
1820
sh -lc '
1921
set -euo pipefail
2022
21-
# 1) Create a throwaway working dir inside container
23+
apk add --no-cache git >/dev/null
24+
2225
APP_DIR="$(mktemp -d)"
23-
26+
2427
tar \
2528
--exclude="node_modules" \
2629
--exclude="*/node_modules" \
27-
--exclude=".git" \
2830
--exclude=".turbo" \
31+
--exclude=".git" \
2932
--exclude=".pnpm-store" \
3033
--exclude="dist" \
3134
--exclude="*/dist" \
3235
--exclude="coverage" \
3336
-C /src \
3437
-cf - . \
3538
| tar -C "$APP_DIR" -xf -
36-
39+
40+
rm -rf "$APP_DIR/.git"
41+
ln -s /src/.git "$APP_DIR/.git"
42+
3743
cd "$APP_DIR"
3844
3945
export PNPM_HOME=/pnpm
@@ -48,5 +54,5 @@ docker run --rm \
4854
--ignore-scripts \
4955
--filter .
5056
51-
pnpm lint
57+
pnpm lint-staged
5258
'

0 commit comments

Comments
 (0)