Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 24, 2024
1 parent a2e61b8 commit 2cf202b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/vike-node/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules/
/dist/
/build/
test.db
2 changes: 1 addition & 1 deletion test/vike-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"dev": "vite",
"build": "vite build",
"prepare": "pnpm prisma generate && pnpm prisma db push",
"prod": "pnpm run build && cp ./prisma/test.db ./dist/server/node_modules/.prisma/client && cross-env NODE_ENV=production node dist/server/index.mjs"
"prod": "pnpm run build && cp ./prisma/test.db ./build/server/node_modules/.prisma/client && cross-env NODE_ENV=production node build/server/index.mjs"
},
"dependencies": {
"@hono/node-server": "^1.12.0",
Expand Down
2 changes: 1 addition & 1 deletion test/vike-node/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"noUncheckedIndexedAccess": true,
"strict": true,
"allowJs": true,
"outDir": "./dist/"
"outDir": "./build/"
}
}
4 changes: 3 additions & 1 deletion test/vike-node/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ export default {
vike(),
vikeNode({ entry: { index: `./server/index-${FRAMEWORK}.ts`, worker: './server/worker.mjs' }, standalone: true }),
telefunc()
]
],
// Make test more interesting: avoid vite-plugin-server-entry from [finding the server entry by searching for the dist/ directory](https://github.com/brillout/vite-plugin-server-entry/blob/240f59b4849a3fdfd84448117a3aaf4fbe95a8a0/src/runtime/crawlServerEntry.ts)
build: { outDir: 'build' }
}

0 comments on commit 2cf202b

Please sign in to comment.