Skip to content

Commit

Permalink
gh-pages add
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandomuzaber committed Dec 17, 2023
1 parent 2530296 commit d857e55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
"type": "module",
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"deploy": "gh-pages -b main -d build",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node .",
"dev": "nodemon .",
"build": "npm i esbuild && esbuild --bundle --minify --platform=node --target=node18 --outfile=dist/server.js && gh-pages -d build"
"build": "esbuild src/server.js --bundle --outdir=build",
"postinstall": "npm run build" // Agregué esta línea para asegurar que se realice la construcción después de instalar dependencias
},
"engines": {
"node": "18.x"
Expand Down

0 comments on commit d857e55

Please sign in to comment.