Skip to content

Commit 7dca7b8

Browse files
Requires that you create a .env file in the packages/wrangler directory containing:
``` CLOUDFLARE_ACCOUNT_ID=<dev-prod-account-id> CLOUDFLARE_API_TOKEN=<dev-prod-account-api-key> WRANGLER="node <path to workers-sdk/packages/wrangler/bin/wrangler.js>" WRANGLER_IMPORT="<path to /workers-sdk/packages/wrangler/wrangler-dist/cli.js>" ````
1 parent 5d1d74a commit 7dca7b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/wrangler/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
"generate-json-schema": "pnpm exec ts-json-schema-generator --no-type-check --path src/config/config.ts --type RawConfig --out config-schema.json",
6262
"prepublishOnly": "SOURCEMAPS=false pnpm run -w build",
6363
"start": "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
64-
"test": "pnpm run assert-git-version && vitest",
64+
"test": "dotenv -- pnpm run assert-git-version && dotenv -- vitest",
6565
"test:ci": "pnpm run test run",
6666
"test:debug": "pnpm run test --silent=false --verbose=true",
67-
"test:e2e": "vitest -c ./e2e/vitest.config.mts",
67+
"test:e2e": "dotenv -- vitest -c ./e2e/vitest.config.mts",
6868
"test:watch": "pnpm run test --testTimeout=50000 --watch",
6969
"type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
7070
},

0 commit comments

Comments
 (0)