Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(dx): remove cross-env as dep (#12673)

Nimar57235c8108ee
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index 0f94d8b7f1..656b5c45e2 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -293,11 +293,11 @@ jobs:
LANGFUSE_INIT_USER_PASSWORD: "password"
- name: run tests
working-directory: web
- run: npx cross-env NODE_OPTIONS='--no-experimental-require-module' npx dotenv -e ../.env.test -e ../.env -- npx jest --verbose --runInBand --detectOpenHandles --selectProjects server --shard=${{ matrix.shard }}/3
+ run: npx dotenv -e ../.env.test -e ../.env -- npx jest --verbose --runInBand --detectOpenHandles --selectProjects server --shard=${{ matrix.shard }}/3
- name: run test-client
if: matrix.deploy-mode == '' && matrix.shard == 1
working-directory: web
- run: npx cross-env NODE_OPTIONS='--no-experimental-require-module' npx dotenv -e ../.env.test -e ../.env -- npx jest --verbose --runInBand --detectOpenHandles --selectProjects client
+ run: npx dotenv -e ../.env.test -e ../.env -- npx jest --verbose --runInBand --detectOpenHandles --selectProjects client
tests-worker:
timeout-minutes: 20
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ca0149094b..3fc8513924 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -861,9 +861,6 @@ importers:
'@typescript/native-preview':
specifier: 7.0.0-dev.20260122.3
version: 7.0.0-dev.20260122.3
- cross-env:
- specifier: ^7.0.3
- version: 7.0.3
dotenv-cli:
specifier: ^7.4.2
version: 7.4.2
@@ -7243,11 +7240,6 @@ packages:
resolution: {integrity: sha512-p0SaNjrHOnQeR8/VnfGbmg9te2kfyYSQ7Sc/j/6DtPL3JQvKxmjO9TSjNFpujqV3vEYYBvNNvXSxzyksBWAx1Q==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
- engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
- hasBin: true
-
resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
engines: {node: '>= 8'}
@@ -19344,7 +19336,7 @@ snapshots:
'@jest/globals': 30.2.0
'@types/jest': 29.5.12
dependencies:
@@ -19973,6 +19965,15 @@ snapshots:
+ dependencies:
+ '@vitest/spy': 3.2.4
+ estree-walker: 3.0.3
+ magic-string: 0.30.21
+ optionalDependencies:
+ vite: 7.0.5(@types/[email protected])([email protected])
+ optional: true
+
'@vitest/[email protected]':
dependencies:
tinyrainbow: 2.0.0
@@ -20959,10 +20960,6 @@ snapshots:
dependencies:
luxon: 3.4.4
- dependencies:
- cross-spawn: 7.0.6
-
dependencies:
path-key: 3.1.1
@@ -21547,8 +21544,8 @@ snapshots:
'@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
eslint-plugin-react: 7.37.5([email protected]([email protected]))
eslint-plugin-react-hooks: 5.2.0([email protected]([email protected]))
@@ -21584,21 +21581,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@nolyfill/is-core-module': 1.0.39
- debug: 4.4.3
- eslint: 9.39.2([email protected])
- get-tsconfig: 4.13.0
- is-bun-module: 2.0.0
- stable-hash: 0.0.5
- tinyglobby: 0.2.15
- unrs-resolver: 1.11.1
- optionalDependencies:
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@nolyfill/is-core-module': 1.0.39
@@ -21613,18 +21595,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- optional: true
-
- dependencies:
- debug: 3.2.7
- optionalDependencies:
- '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
- eslint: 9.39.2([email protected])
- eslint-import-resolver-node: 0.3.9
- transitivePeerDependencies:
- - supports-color
dependencies:
@@ -21644,35 +21614,6 @@ snapshots:
eslint: 9.39.2([email protected])
eslint-compat-utils: 0.5.1([email protected]([email protected]))
- dependencies:
- '@rtsao/scc': 1.1.0
- array-includes: 3.1.9
- array.prototype.findlastindex: 1.2.6
- array.prototype.flat: 1.3.3
- array.prototype.flatmap: 1.3.3
- debug: 3.2.7
- doctrine: 2.1.0
- eslint: 9.39.2([email protected])
- eslint-import-resolver-node: 0.3.9
- hasown: 2.0.2
- is-core-module: 2.16.1
- is-glob: 4.0.3
- minimatch: 3.1.2
- object.fromentries: 2.0.8
- object.groupby: 1.0.3
- object.values: 1.2.1
- semver: 6.3.1
- string.prototype.trimend: 1.0.9
- tsconfig-paths: 3.15.0
- optionalDependencies:
- '@typescript-eslint/parser': 8.50.1([email protected]([email protected]))([email protected])
- transitivePeerDependencies:
- - eslint-import-resolver-typescript
- - eslint-import-resolver-webpack
- - supports-color
-
dependencies:
'@rtsao/scc': 1.1.0
@@ -26838,6 +26779,28 @@ snapshots:
'@egjs/hammerjs': 2.0.17
component-emitter: 1.3.1
+ dependencies:
+ cac: 6.7.14
+ debug: 4.4.3
+ es-module-lexer: 1.7.0
+ pathe: 2.0.3
+ vite: 7.0.5(@types/[email protected])([email protected])
+ transitivePeerDependencies:
+ - '@types/node'
+ - jiti
+ - less
+ - lightningcss
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+ optional: true
+
dependencies:
cac: 6.7.14
@@ -26859,6 +26822,20 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ esbuild: 0.25.7
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.3
+ postcss: 8.5.6
+ rollup: 4.53.3
+ tinyglobby: 0.2.15
+ optionalDependencies:
+ '@types/node': 24.3.0
+ fsevents: 2.3.3
+ jiti: 2.6.1
+ optional: true
+
dependencies:
esbuild: 0.25.7
@@ -26919,6 +26896,49 @@ snapshots:
- tsx
- yaml
+ dependencies:
+ '@types/chai': 5.2.2
+ '@vitest/expect': 3.2.4
+ '@vitest/mocker': 3.2.4([email protected](@types/[email protected])([email protected]))
+ '@vitest/pretty-format': 3.2.4
+ '@vitest/runner': 3.2.4
+ '@vitest/snapshot': 3.2.4
+ '@vitest/spy': 3.2.4
+ '@vitest/utils': 3.2.4
+ chai: 5.2.1
+ debug: 4.4.3
+ expect-type: 1.2.2
+ magic-string: 0.30.21
+ pathe: 2.0.3
+ picomatch: 4.0.3
+ std-env: 3.9.0
+ tinybench: 2.9.0
+ tinyexec: 0.3.2
+ tinyglobby: 0.2.15
+ tinypool: 1.1.1
+ tinyrainbow: 2.0.0
+ vite: 7.0.5(@types/[email protected])([email protected])
+ vite-node: 3.2.4(@types/[email protected])([email protected])
+ why-is-node-running: 2.3.0
+ optionalDependencies:
+ '@types/node': 24.3.0
+ jsdom: 26.1.0
+ transitivePeerDependencies:
+ - jiti
+ - less
+ - lightningcss
+ - msw
+ - sass
+ - sass-embedded
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ - tsx
+ - yaml
+ optional: true
+
dependencies:
'@vue/compiler-dom': 3.4.27
diff --git a/web/package.json b/web/package.json
index 6298a57ec7..bd95f77080 100644
--- a/web/package.json
+++ b/web/package.json
@@ -16,12 +16,12 @@
"lint:fix": "dotenv -e ../.env -- eslint . --cache --cache-location .next/cache/eslint/ --fix",
"clean": "rm -rf node_modules",
"start": "dotenv -e ../.env -- sh -c 'NEXT_MANUAL_SIG_HANDLE=true next start'",
- "test": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-require-module\" dotenv -e ../.env.test -e ../.env -- jest --verbose --runInBand --selectProjects server",
- "test-client": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-require-module\" dotenv -e ../.env.test -e ../.env -- jest --verbose --selectProjects client",
- "test:watch": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-require-module\" dotenv -e ../.env.test -e ../.env -- jest --watch --runInBand",
+ "test": "dotenv -e ../.env.test -e ../.env -- jest --verbose --runInBand --selectProjects server",
+ "test-client": "dotenv -e ../.env.test -e ../.env -- jest --verbose --selectProjects client",
+ "test:watch": "dotenv -e ../.env.test -e ../.env -- jest --watch --runInBand",
"test:e2e": "dotenv -e ../.env.test -e ../.env -- playwright test --reporter=line",
- "test:e2e:server": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-require-module\" dotenv -e ../.env.test -e ../.env -- jest --runInBand --verbose --selectProjects e2e-server",
- "test:debug-handles": "NODE_OPTIONS=\"${NODE_OPTIONS:-} --no-experimental-require-module\" dotenv -e ../.env.test -e ../.env -- jest --verbose --runInBand --detectOpenHandles --selectProjects server",
+ "test:e2e:server": "dotenv -e ../.env.test -e ../.env -- jest --runInBand --verbose --selectProjects e2e-server",
+ "test:debug-handles": "dotenv -e ../.env.test -e ../.env -- jest --verbose --runInBand --detectOpenHandles --selectProjects server",
"build-trace": "dotenv -e ../.env -- next internal trace .next/trace-turbopack"
},
"dependencies": {
@@ -196,7 +196,6 @@
"@typescript-eslint/eslint-plugin": "^8.50.1",
"@typescript-eslint/parser": "^8.50.1",
"@typescript/native-preview": "7.0.0-dev.20260122.3",
- "cross-env": "^7.0.3",
"dotenv-cli": "^7.4.2",
"eslint": "^9.39.2",
"eslint-config-next": "15.5.10",