{"_id":"@abfry0620/lambda-package","_rev":"3-494b86baf72ab301d5d5175e964b0b2e","name":"@abfry0620/lambda-package","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@abfry0620/lambda-package","version":"1.0.0","keywords":["aws","lambda","typescript","zip","npx","command"],"author":{"name":"abfry0620"},"license":"MIT","_id":"@abfry0620/lambda-package@1.0.0","maintainers":[{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"}],"homepage":"https://github.com/ABfry/aws-lambda-ts-zip","bugs":{"url":"https://github.com/ABfry/aws-lambda-ts-zip/issues"},"bin":{"lambda-package":"dist/index.js"},"dist":{"shasum":"92473ae8de984feec86493a185d0c5e233d0143e","tarball":"https://registry.npmjs.org/@abfry0620/lambda-package/-/lambda-package-1.0.0.tgz","fileCount":6,"integrity":"sha512-yvMlGIjdP3UIhoonoK6xp1sA0kfE5R9OgTs0ixr2S2nK5x47BOlxtwWMh8GZAN68BqE4oN02hZiWAeQBtdfYwQ==","signatures":[{"sig":"MEUCIQDwkmZSPsVARoq8alpGHinbyULOTvU4hsv804pwJRX4JwIgE9TJtkP19Ki5Dl0LDsX3zuyKHESMfFw98v0X0NQYxBQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9647},"types":"dist/index.d.ts","gitHead":"37df23c55b86505772f6e9d04556998b7e719241","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node dist/index.js","package":"npm run build && npm run start","--- COMMAND SECTION ---":"---"},"_npmUser":{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"},"repository":{"url":"git+https://github.com/ABfry/aws-lambda-ts-zip.git","type":"git"},"_npmVersion":"10.2.3","description":"Compile and Zip programs created in TypeScript for AWS Lambda.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"commander":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/lambda-package_1.0.0_1741967279226_0.6772407929392297","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abfry0620/lambda-package","version":"1.0.1","keywords":["aws","lambda","typescript","zip","npx","command"],"author":{"name":"abfry0620"},"license":"MIT","_id":"@abfry0620/lambda-package@1.0.1","maintainers":[{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"}],"homepage":"https://github.com/ABfry/aws-lambda-ts-zip","bugs":{"url":"https://github.com/ABfry/aws-lambda-ts-zip/issues"},"bin":{"lambda-package":"dist/index.js"},"dist":{"shasum":"be8d1fab91c955f221717b0002d7b3ad5979d848","tarball":"https://registry.npmjs.org/@abfry0620/lambda-package/-/lambda-package-1.0.1.tgz","fileCount":6,"integrity":"sha512-Vofpx92KEPE9i4JeQ52iVPsUfW5lzm5AEWei2FRDEimW6eAZ2O2dwMRFw1I92pWHszuK6EAg31j7O82QUk3sIA==","signatures":[{"sig":"MEUCIQCiXPw51WPiL1miu0I+NxgDDraBl/875u5OSJkeetZKPQIgHzefA9vYUnAPSNKp4a9hatMGwZrSVeh2eWbz5dveKes=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9719},"types":"dist/index.d.ts","gitHead":"ac03be34a84d34e7f82bd1ab2ade945ddcc1fda2","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node dist/index.js","package":"npm run build && npm run start","--- COMMAND SECTION ---":"---"},"_npmUser":{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"},"repository":{"url":"git+https://github.com/ABfry/aws-lambda-ts-zip.git","type":"git"},"_npmVersion":"10.2.3","description":"Compile and Zip programs created in TypeScript for AWS Lambda.","directories":{},"_nodeVersion":"20.10.0","dependencies":{"commander":"^13.1.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.8.2","@types/node":"^22.13.10"},"_npmOperationalInternal":{"tmp":"tmp/lambda-package_1.0.1_1741967861335_0.5730716715689417","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@abfry0620/lambda-package","version":"1.0.2","description":"Compile and Zip programs created in TypeScript for AWS Lambda.","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsc","start":"node dist/index.js","--- COMMAND SECTION ---":"---","package":"npm run build && npm run start"},"author":{"name":"abfry0620"},"license":"MIT","keywords":["aws","lambda","typescript","zip","npx","command"],"repository":{"type":"git","url":"git+https://github.com/ABfry/aws-lambda-ts-zip.git"},"homepage":"https://github.com/ABfry/aws-lambda-ts-zip","bin":{"lambda-package":"dist/index.js"},"types":"dist/index.d.ts","devDependencies":{"@types/node":"^22.13.10","ts-node":"^10.9.2","typescript":"^5.8.2"},"dependencies":{"@types/fs-extra":"^11.0.4","commander":"^13.1.0","fs-extra":"^11.3.0"},"_id":"@abfry0620/lambda-package@1.0.2","gitHead":"6386a67d44748ac5aa3b08dbcf9613fa33a86751","bugs":{"url":"https://github.com/ABfry/aws-lambda-ts-zip/issues"},"_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-iMjYZNhTossgwtTa/25i5ZNLi5lGaohFqG7DURdDXdT7/YCnV63tgA5wXZlWzhY3Ei32uUFMEPUINZFfmKZfkw==","shasum":"e6266a02a57b7225c2746022197e3ecb488432d5","tarball":"https://registry.npmjs.org/@abfry0620/lambda-package/-/lambda-package-1.0.2.tgz","fileCount":7,"unpackedSize":12469,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGqAGrA3Q3FZ6/2kfwhcMqeDxlJ1owuU5hVdoJ7PJJFmAiEAosCc7WrPxEAg2ircFKwLWgnk4RpHeYF/u0Wgmsi9F7I="}]},"_npmUser":{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"},"directories":{},"maintainers":[{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lambda-package_1.0.2_1742037204999_0.5686715499880708"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-14T15:47:59.085Z","modified":"2025-03-15T11:13:25.394Z","1.0.0":"2025-03-14T15:47:59.414Z","1.0.1":"2025-03-14T15:57:41.504Z","1.0.2":"2025-03-15T11:13:25.220Z"},"bugs":{"url":"https://github.com/ABfry/aws-lambda-ts-zip/issues"},"author":{"name":"abfry0620"},"license":"MIT","homepage":"https://github.com/ABfry/aws-lambda-ts-zip","keywords":["aws","lambda","typescript","zip","npx","command"],"repository":{"type":"git","url":"git+https://github.com/ABfry/aws-lambda-ts-zip.git"},"description":"Compile and Zip programs created in TypeScript for AWS Lambda.","maintainers":[{"name":"abfry0620","email":"iwasaki.tandn8810@icloud.com"}],"readme":"# lambda-package\n\n[日本語版はこちら](README-ja.md)\n\nA CLI tool for compiling and packaging AWS Lambda functions created in TypeScript into ZIP files.\n\n## Installation\n\nSimply run it using `npx`:\n\n```bash\nnpx @abfry0620/lambda-package\n\n# Or install globally if you prefer\nnpm install -g @abfry0620/lambda-package\n```\n\n## Usage\n\n### Display Help\n\n```bash\nnpx @abfry0620/lambda-package --help\n```\n\nExample output:\n\n```sh\nUsage: lambda-package [options]\n\nCompile and Zip programs created in TypeScript for AWS Lambda.\n\nOptions:\n  -V, --version  output the version number\n  -h, --help     display help for command\n```\n\n### Display Version\n\n```bash\nnpx @abfry0620/lambda-package --version\n```\n\n## Process Flow\n\nWhen you run the tool, it performs the following steps:\n\n1. Clean up existing `dist` directory and `packages` directory\n2. Compile TypeScript code (`npm run build`)\n3. Install production dependencies only\n4. Package compiled code and dependencies into a ZIP file\n5. Restore development dependencies\n\n## Configuration\n\nBy default, it works with the following settings:\n\n- `distDir`: 'dist' - Directory where compiled files are stored\n- `packageDir`: 'packages' - Directory where the output ZIP file is stored\n- `packageName`: 'lambda-function.zip' - Name of the output ZIP file\n\nTo customize the configuration, create a `lambda-package-config.json` file in your project's root directory:\n\n```json\n{\n  \"distDir\": \"build\",\n  \"packageDir\": \"deploy\",\n  \"packageName\": \"my-lambda.zip\"\n}\n```\n\nIf the configuration file doesn't exist on the first run, it will be automatically created with default settings.\n\n## Using in Your Project\n\nYou can also add it to your package.json scripts:\n\n```json\n\"scripts\": {\n  \"package\": \"lambda-package\"\n}\n```\n\nThen run:\n\n```bash\nnpm run package\n```\n\n## License\n\n[MIT License](LICENSE).\n\n## Author\n\nABfry\n","readmeFilename":"README.md"}