Skip to content

Commit 431fc75

Browse files
committed
feat: enhance deployment scripts to include Python environment setup and cleanup
1 parent e80f721 commit 431fc75

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
22
"scripts": {
33
"dev": "sst dev",
4-
"deploy:dev": "sst deploy --stage dev",
5-
"deploy:production": "sst deploy --stage production"
4+
"deploy:dev": "pnpm python:clean && sst deploy --stage dev && pnpm python:init",
5+
"deploy:production": "pnpm python:clean && sst deploy --stage production && pnpm python:init",
6+
"python:init": "cd python-functions && UV_PROJECT_ENVIRONMENT='../.venv' uv sync",
7+
"python:clean": "rm -r -f .venv",
8+
"uv": "cd python-functions && uv"
69
},
710
"dependencies": {
811
"@aws-sdk/client-sqs": "^3.699.0",

0 commit comments

Comments
 (0)