rajt 0.0.5 → 0.0.6
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 +6 -6
- package/src/routes.ts +1 -1
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.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"exports": {
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"src"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"sam": "sam local start-api --warm-containers LAZY --debug",
|
|
16
|
+
"sam:local": "sam local start-api --warm-containers LAZY --debug --template-file ../../template.yaml",
|
|
17
17
|
"dev": "tsx watch src/dev.ts",
|
|
18
|
-
"
|
|
19
|
-
"build": "bun run cache:routes && bun run export && bun run clean:temp",
|
|
20
|
-
"build:watch": "chokidar \"../../{actions,configs,models,utils}/**/*.ts\" -c \"bun run build\" --initial",
|
|
18
|
+
"local": "bun run --silent build && bun run --silent sam:local",
|
|
19
|
+
"build": "bun run --silent cache:routes && bun run --silent export && bun run --silent clean:temp",
|
|
20
|
+
"build:watch": "chokidar \"../../{actions,configs,models,utils}/**/*.ts\" -c \"bun run --silent build\" --initial",
|
|
21
21
|
"export": "esbuild --bundle --minify --outfile=../../dist/index.js --platform=node --target=node20 --format=esm --tree-shaking=true --legal-comments=none src/prod.ts",
|
|
22
22
|
"cache:routes": "tsx src/scripts/cache-routes.ts",
|
|
23
23
|
"ensure-dirs": "rm -rf ../../dist ../../tmp && mkdir -p ../../tmp && chmod 755 ../../tmp && mkdir -p ../../dist && chmod 755 ../../dist",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"clean:temp": "rm -rf ../../tmp",
|
|
27
27
|
"zip": "zip -j lambda.zip ../../dist/index.js",
|
|
28
28
|
"update": "aws lambda update-function-code --zip-file fileb://../../lambda.zip --function-name hello",
|
|
29
|
-
"deploy": "run
|
|
29
|
+
"deploy": "bun run --silent build && bun run --silent zip && bun run --silent update",
|
|
30
30
|
"start": "node ../../dist/index.js"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
package/src/routes.ts
CHANGED