rajt 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rajt",
|
|
3
3
|
"description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -13,20 +13,24 @@
|
|
|
13
13
|
"src"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"sam:local": "sam local start-api --warm-containers LAZY --debug --template-file ../../template.yaml",
|
|
17
16
|
"dev": "tsx watch src/dev.ts",
|
|
18
17
|
"local": "bun run --silent build && bun run --silent sam:local",
|
|
19
18
|
"build": "bun run --silent cache:routes && bun run --silent export && bun run --silent clean:temp",
|
|
20
19
|
"build:watch": "chokidar \"../../{actions,configs,models,utils}/**/*.ts\" -c \"bun run --silent build\" --initial",
|
|
21
20
|
"export": "esbuild --bundle --minify --outfile=../../dist/index.js --platform=node --target=node20 --format=esm --tree-shaking=true --legal-comments=none src/prod.ts",
|
|
21
|
+
"package": "bun run --silent build && bun run --silent sam:package",
|
|
22
|
+
"deploy": "bun run --silent build && bun run --silent sam:package && && bun run --silent sam:deploy",
|
|
23
|
+
"update": "bun run --silent build && bun run --silent zip && && bun run --silent sam:update",
|
|
24
|
+
"sam:local": "sam local start-api --warm-containers LAZY --debug --template-file ../../template-dev.yaml",
|
|
25
|
+
"sam:package": "sam package --template-file ../../template-prod.yaml --output-template-file ../../packaged.yaml",
|
|
26
|
+
"sam:deploy": "sam deploy --template-file ../../packaged.yaml --stack-name rajt-llrt --capabilities CAPABILITY_IAM",
|
|
27
|
+
"sam:update": "source ../../.env.prod && aws lambda update-function-code --function-name $AWS_NAME --zip-file fileb: //../../lambda.zip --region $AWS_REGION",
|
|
22
28
|
"cache:routes": "tsx src/scripts/cache-routes.ts",
|
|
23
29
|
"ensure-dirs": "rm -rf ../../dist ../../tmp && mkdir -p ../../tmp && chmod 755 ../../tmp && mkdir -p ../../dist && chmod 755 ../../dist",
|
|
24
30
|
"clean": "rm -rf ../../dist ../../tmp",
|
|
25
31
|
"clean:build": "rm -rf ../../dist",
|
|
26
32
|
"clean:temp": "rm -rf ../../tmp",
|
|
27
|
-
"zip": "zip -j lambda.zip ../../dist/index.js",
|
|
28
|
-
"update": "aws lambda update-function-code --zip-file fileb://../../lambda.zip --function-name hello",
|
|
29
|
-
"deploy": "bun run --silent build && bun run --silent zip && bun run --silent update",
|
|
33
|
+
"zip": "zip -j ../../lambda.zip ../../dist/index.js",
|
|
30
34
|
"start": "node ../../dist/index.js"
|
|
31
35
|
},
|
|
32
36
|
"dependencies": {
|