rajt
Version:
A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.
96 lines • 3.84 kB
JSON
{
"name": "rajt",
"description": "A serverless bundler layer, fully typed for AWS Lambda (Node.js and LLRT) and Cloudflare Workers.",
"version": "0.0.57",
"type": "module",
"main": "dist/index.js",
"exports": {
".": "./src/index.ts",
"./auth": "./src/auth/index.ts",
"./dynamodb": "./src/dynamodb/index.ts",
"./dynamodb/types": "./src/dynamodb/types.ts",
"./http": "./src/http.ts",
"./types": "./src/types.ts",
"./env": "./src/utils/environment.ts",
"./length": "./src/utils/length.ts"
},
"files": [
"src"
],
"scripts": {
"dev": "tsx watch src/dev.ts",
"aws:build": "bun run --silent cache:routes && bun run --silent aws:export && bun run --silent clean:temp",
"cf:build": "bun run --silent cache:routes && bun run --silent cf:export && bun run --silent clean:temp",
"aws:build:watch": "chokidar \"../../{actions,configs,enums,locales,middlewares,models,utils}/**/*.ts\" -c \"bun run --silent aws:build\" --initial",
"cf:build:watch": "chokidar \"../../{actions,configs,enums,locales,middlewares,models,utils}/**/*.ts\" -c \"bun run --silent cf:build\" --initial",
"aws:export": "node src/esbuild.mjs aws",
"cf:export": "node src/esbuild.mjs cf",
"aws:local": "bun run --silent aws:build && bun run --silent sam:local",
"aws:package": "bun run --silent aws:build && bun run --silent sam:package",
"aws:deploy": "bun run --silent aws:build && bun run --silent sam:package && bun run --silent sam:deploy",
"aws:update": "bun run --silent aws:build && bun run --silent zip && bun run --silent sam:update",
"sam:local": "sam local start-api --warm-containers LAZY --debug --template-file ../../template-dev.yaml",
"sam:package": "sam package --template-file ../../template-prod.yaml --output-template-file ../../packaged.yaml",
"sam:deploy": "sam deploy --template-file ../../packaged.yaml --stack-name rajt-llrt --capabilities CAPABILITY_IAM",
"sam:update": "source ../../.env.prod && aws lambda update-function-code --function-name $AWS_NAME --zip-file fileb://../../lambda.zip --region $AWS_REGION --no-cli-pager 2>&1 >/dev/null",
"cf:local": "bun run --silent cf:build && cd ../../dist && bunx wrangler dev",
"cf:deploy": "bun run --silent cf:build && cd ../../dist && bunx wrangler deploy",
"cache:routes": "tsx src/scripts/cache-routes.ts",
"ensure-dirs": "rm -rf ../../dist ../../tmp && mkdir -p ../../tmp && chmod 755 ../../tmp && mkdir -p ../../dist && chmod 755 ../../dist",
"clean": "rm -rf ../../dist ../../tmp",
"clean:build": "rm -rf ../../dist",
"clean:temp": "rm -rf ../../tmp",
"zip": "zip -j ../../lambda.zip ../../dist/index.js",
"start": "node ../../dist/index.js"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "3.817.0",
"@aws-sdk/lib-dynamodb": "3.817.0",
"@hono/node-server": "^1.14.1",
"@hono/zod-validator": "^0.4.3",
"@types/node": "^20.11.0",
"chokidar-cli": "^3.0.0",
"cripta": "^0.1",
"dotenv": "^16.5.0",
"esbuild": "^0.25.2",
"hono": "^4.7.6",
"plur": "^5.1.0",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.19.3",
"typescript": "^5.8.3",
"ua-parser-js": "^2.0.4"
},
"devDependencies": {
"bun-types": "^1.2.14"
},
"engines": {
"node": ">=18.0.0"
},
"resolutions": {
"@smithy/types": "^4.3.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"author": "Zunq <open-source@zunq.com>",
"license": "MIT",
"homepage": "https://zunq.dev",
"repository": "git://github.com/attla/rajt",
"bugs": "https://github.com/attla/rajt/issues",
"keywords": [
"rajt",
"aws",
"lambda",
"llrt",
"app",
"http",
"application",
"framework",
"router",
"cloudflare",
"workers",
"deno",
"bun",
"nodejs"
]
}