Skip to content

Commit 740b617

Browse files
committed
chore: disable vitest interopDefault, remove dotenvx
Set deps.interopDefault: false for native CJS resolution. Remove dotenvx from pre-commit hook and devDependencies (env file was empty, dotenvx was a no-op).
1 parent 70e76c7 commit 740b617

5 files changed

Lines changed: 4 additions & 91 deletions

File tree

.config/vitest.config.isolated.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const vitestConfigIsolated = defineConfig({
4242
},
4343
},
4444
test: {
45+
deps: { interopDefault: false },
4546
globalSetup: [path.resolve(__dirname, 'vitest-global-setup.mts')],
4647
globals: false,
4748
environment: 'node',

.config/vitest.config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const vitestConfig = defineConfig({
4242
},
4343
},
4444
test: {
45+
deps: { interopDefault: false },
4546
env: {
4647
INLINED_LIB_VERSION: rootPkgJson.version,
4748
},

.husky/pre-commit

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,7 @@ else
88
fi
99

1010
if [ -z "${DISABLE_PRECOMMIT_TEST}" ]; then
11-
if command -v dotenvx >/dev/null 2>&1 || [ -x "./node_modules/.bin/dotenvx" ]; then
12-
if [ -f ".env.precommit" ]; then
13-
dotenvx -q run -f .env.precommit -- pnpm test --staged || pnpm test --staged
14-
else
15-
printf "⚠ .env.precommit not found, running tests without it\n"
16-
pnpm test --staged
17-
fi
18-
else
19-
printf "⚠ dotenvx not found, running tests without .env.precommit\n"
20-
pnpm test --staged
21-
fi
11+
pnpm test --staged
2212
else
2313
printf "Skipping testing due to DISABLE_PRECOMMIT_TEST env var\n"
2414
fi

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,6 @@
719719
"@babel/parser": "7.28.4",
720720
"@babel/traverse": "7.28.4",
721721
"@babel/types": "7.28.4",
722-
"ecc-agentshield": "1.4.0",
723-
"@dotenvx/dotenvx": "1.49.0",
724722
"@inquirer/checkbox": "4.3.1",
725723
"@inquirer/confirm": "5.1.16",
726724
"@inquirer/input": "4.2.2",
@@ -745,6 +743,7 @@
745743
"debug": "4.4.3",
746744
"del": "8.0.1",
747745
"del-cli": "6.0.0",
746+
"ecc-agentshield": "1.4.0",
748747
"esbuild": "0.25.11",
749748
"eslint-plugin-sort-destructure-keys": "2.0.0",
750749
"fast-glob": "3.3.3",

pnpm-lock.yaml

Lines changed: 0 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)