Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Nov 28, 2024
1 parent 9b4ac42 commit adc0c59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "bridges-server",
"type": "module",
"scripts": {
"deploy:prod": "sls deploy --stage prod",
"serve": "sls offline start",
Expand All @@ -14,8 +13,8 @@
"clean": "rimraf dist",
"dev": "vite",
"build": "vite build",
"start": "pm2 start dist/index.cjs --name bridges-server",
"start:dev": "pm2 start dist/index.cjs --name bridges-server --watch",
"start": "pm2 start dist/index.js --name bridges-server",
"start:dev": "pm2 start dist/index.js --name bridges-server --watch",
"stop": "pm2 stop bridges-server",
"restart": "pm2 restart bridges-server",
"logs": "pm2 logs bridges-server",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineConfig({
lib: {
entry: path.resolve(__dirname, "src/server/index.ts"),
formats: ["cjs"],
fileName: () => "index.js",
fileName: () => "index.cjs",
},
rollupOptions: {
external: ["fastify", "@fastify/cors", ...Object.keys(require("./package.json").dependencies)],
Expand Down

0 comments on commit adc0c59

Please sign in to comment.