Skip to content

Commit

Permalink
Merge pull request #34 from njhale/enhance/prod-build-tool
Browse files Browse the repository at this point in the history
enhance: run production builds for ui tool on npm install
  • Loading branch information
njhale authored Jul 23, 2024
2 parents 0b2066f + 528c88f commit 2404c11
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
21 changes: 21 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
"scripts": {
"dev": "node server.mjs",
"build": "next build --no-lint",
"start": "node server.mjs",
"lint": "next lint",
"debug": "node --inspect server.mjs",
"server": "node server.mjs"
"start": "cross-env NODE_ENV='production' node server.mjs",
"postinstall": "cross-env NODE_ENV='production' npm run build",
"dev-install": "npm install --ignore-scripts"
},
"dependencies": {
"@gptscript-ai/gptscript": "^0.9.2",
Expand Down Expand Up @@ -63,6 +64,7 @@
"typescript": "5.0.4"
},
"devDependencies": {
"cross-env": "^7.0.3",
"eslint": "^8.57.0"
}
}
2 changes: 1 addition & 1 deletion tool.gpt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!sys.daemon (path=/api/readyz) /usr/bin/env npm run --prefix ${GPTSCRIPT_TOOL_DIR} dev
#!sys.daemon (path=/api/readyz) /usr/bin/env npm run --prefix ${GPTSCRIPT_TOOL_DIR} start

0 comments on commit 2404c11

Please sign in to comment.