Skip to content

Commit 1263f9e

Browse files
committed
chore(scripts): remove dotenv
1 parent dbd54ee commit 1263f9e

File tree

7 files changed

+839
-452
lines changed

7 files changed

+839
-452
lines changed

scripts/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"chalk": "5.4.1",
3636
"commander": "14.0.0",
3737
"crc": "4.3.2",
38-
"dotenv": "17.0.1",
3938
"esbuild": "0.25.5",
4039
"execa": "9.6.0",
4140
"express": "5.1.0",

scripts/release/createReleasePR.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import path from 'path';
2-
31
import chalk from 'chalk';
4-
import dotenv from 'dotenv';
52
import semver from 'semver';
63

74
import generationCommitText, {
@@ -20,7 +17,6 @@ import {
2017
MAIN_BRANCH,
2118
OWNER,
2219
REPO,
23-
ROOT_DIR,
2420
run,
2521
setVerbose,
2622
TODAY,
@@ -34,8 +30,6 @@ import type { Changelog, Commit, CommitType, ParsedCommit, Scope, Versions } fro
3430
import { updateAPIVersions } from './updateAPIVersions.ts';
3531
import { generateVersionsHistory } from './versionsHistory.ts';
3632

37-
dotenv.config({ path: path.resolve(ROOT_DIR, '.env') });
38-
3933
// python pre-releases have a pattern like `X.Y.ZaN` for alpha or `X.Y.ZbN` for beta
4034
// see https://peps.python.org/pep-0440/
4135
// It also support ruby pre-releases like `X.Y.Z.alpha.N` for alpha or `X.Y.Z.beta.N` for beta

templates/javascript/tests/e2e/e2e.mustache

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import { describe, test, expect } from 'vitest';
33

44
import { union } from '../helpers.js';
55

6-
import * as dotenv from 'dotenv';
7-
8-
dotenv.config({path:'../../.env'});
96
import { {{{clientName}}} } from '{{{importPackage}}}';
107
import type { RequestOptions } from '@algolia/client-common';
118

templates/javascript/tests/package.mustache

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
},
1414
"devDependencies": {
1515
"@types/node": "22.16.0",
16-
"dotenv": "17.0.1",
1716
"typescript": "5.8.3",
1817
"vitest": "3.2.4"
1918
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import path from 'path';
2+
import { loadEnv } from 'vite';
3+
import { defineConfig } from 'vitest/config';
4+
5+
export default defineConfig(({ mode }) => ({
6+
test: {
7+
env: loadEnv(mode, path.join(process.cwd(), '../../'), ''),
8+
},
9+
}));

0 commit comments

Comments
 (0)