Skip to content

Commit

Permalink
change test-serve config variants to use . instead of - as separa…
Browse files Browse the repository at this point in the history
…tor (cloudflare#55)
  • Loading branch information
dario-piotrowicz authored Nov 8, 2024
1 parent 45ad429 commit c67af53
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions playground/module-resolution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"type": "module",
"scripts": {
"build": "vite build --app",
"build:no-prebundling": "vite build --app -c ./vite.config-no-prebundling.ts",
"build:no-prebundling": "vite build --app -c ./vite.config.no-prebundling.ts",
"check:types": "tsc --build",
"dev": "vite dev",
"dev:no-prebundling": "vite dev -c ./vite.config-no-prebundling.ts"
"dev:no-prebundling": "vite dev -c ./vite.config.no-prebundling.ts"
},
"devDependencies": {
"@cloudflare-dev-module-resolution/imports": "file:./packages/imports",
Expand Down
24 changes: 12 additions & 12 deletions playground/node-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@
"private": true,
"type": "module",
"scripts": {
"basic:build": "vite build --app -c vite.config-worker-basic.ts",
"basic:dev": "vite dev -c vite.config-worker-basic.ts",
"basic:build": "vite build --app -c vite.config.worker-basic.ts",
"basic:dev": "vite dev -c vite.config.worker-basic.ts",
"basic:test": "pnpm -w test-serve worker-basic",
"basic:typegen": "cd worker-basic && wrangler types -c wrangler.toml",
"check:types": "tsc --build",
"cross-env:build": "vite build --app -c vite.config-worker-cross-env.ts",
"cross-env:dev": "vite dev -c vite.config-worker-cross-env.ts",
"cross-env:build": "vite build --app -c vite.config.worker-cross-env.ts",
"cross-env:dev": "vite dev -c vite.config.worker-cross-env.ts",
"cross-env:test": "pnpm -w test-serve worker-cross-env",
"cross-env:typegen": "cd worker-cross-env && wrangler types -c wrangler.toml",
"crypto:build": "vite build --app -c vite.config-worker-crypto.ts",
"crypto:dev": "vite dev -c vite.config-worker-crypto.ts",
"crypto:build": "vite build --app -c vite.config.worker-crypto.ts",
"crypto:dev": "vite dev -c vite.config.worker-crypto.ts",
"crypto:test": "pnpm -w test-serve worker-crypto",
"crypto:typegen": "cd worker-crypto && wrangler types -c wrangler.toml",
"postgres:build": "vite build --app -c vite.config-worker-postgres.ts",
"postgres:dev": "vite dev -c vite.config-worker-postgres.ts",
"postgres:build": "vite build --app -c vite.config.worker-postgres.ts",
"postgres:dev": "vite dev -c vite.config.worker-postgres.ts",
"postgres:test": "pnpm -w test-serve worker-postgres",
"postgres:typegen": "cd worker-postgres && wrangler types -c wrangler.toml",
"process:build": "vite build --app -c vite.config-worker-process.ts",
"process:dev": "vite dev -c vite.config-worker-process.ts",
"process:build": "vite build --app -c vite.config.worker-process.ts",
"process:dev": "vite dev -c vite.config.worker-process.ts",
"process:test": "pnpm -w test-serve worker-process",
"process:typegen": "cd worker-process && wrangler types -c wrangler.toml",
"random:build": "vite build --app -c vite.config-worker-random.ts",
"random:dev": "vite dev -c vite.config-worker-random.ts",
"random:build": "vite build --app -c vite.config.worker-random.ts",
"random:dev": "vite dev -c vite.config.worker-random.ts",
"random:test": "pnpm -w test-serve worker-random",
"random:typegen": "cd worker-random && wrangler types -c wrangler.toml"
},
Expand Down
2 changes: 1 addition & 1 deletion playground/vitest-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async function loadConfig(configEnv: ConfigEnv) {
for (const extension of ['js', 'ts', 'mjs', 'cjs', 'mts', 'cts']) {
const configVariantPath = path.resolve(
rootDir,
`vite.config-${variantName}.${extension}`,
`vite.config.${variantName}.${extension}`,
);
if (fs.existsSync(configVariantPath)) {
const res = await loadConfigFromFile(configEnv, configVariantPath);
Expand Down

0 comments on commit c67af53

Please sign in to comment.