{"id":17865279,"url":"https://github.com/oieduardorabelo/aws-sam-typescript-shared-package-json","last_synced_at":"2026-04-17T09:31:20.820Z","repository":{"id":185455564,"uuid":"611092192","full_name":"oieduardorabelo/aws-sam-typescript-shared-package-json","owner":"oieduardorabelo","description":"AWS SAM TypeScript example using a single package.json to all lambda handlers","archived":false,"fork":false,"pushed_at":"2023-03-08T04:55:02.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-06T10:02:28.273Z","etag":null,"topics":["amazon-api-gateway","aws","aws-lambda","aws-sam","aws-sam-cli","aws-sam-example","aws-sam-nested-applications","serverless","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oieduardorabelo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-08T04:49:39.000Z","updated_at":"2023-08-20T03:44:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0912142-3c0b-4a65-9f46-491e0e0b322e","html_url":"https://github.com/oieduardorabelo/aws-sam-typescript-shared-package-json","commit_stats":null,"previous_names":["oieduardorabelo/aws-sam-typescript-shared-package-json"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oieduardorabelo/aws-sam-typescript-shared-package-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieduardorabelo%2Faws-sam-typescript-shared-package-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieduardorabelo%2Faws-sam-typescript-shared-package-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieduardorabelo%2Faws-sam-typescript-shared-package-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieduardorabelo%2Faws-sam-typescript-shared-package-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oieduardorabelo","download_url":"https://codeload.github.com/oieduardorabelo/aws-sam-typescript-shared-package-json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oieduardorabelo%2Faws-sam-typescript-shared-package-json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31923071,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T09:10:15.403Z","status":"ssl_error","status_checked_at":"2026-04-17T09:10:14.455Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-api-gateway","aws","aws-lambda","aws-sam","aws-sam-cli","aws-sam-example","aws-sam-nested-applications","serverless","typescript"],"created_at":"2024-10-28T09:20:09.468Z","updated_at":"2026-04-17T09:31:20.791Z","avatar_url":"https://github.com/oieduardorabelo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS SAM TypeScript example using a single package.json to all lambda handlers\n\nBased on GitHub Issue: https://github.com/aws/aws-sam-cli/issues/4832\n\nThis repository is an example of how to use a single `package.json` to manage all lambda handlers.\n\n## How it works\n\nSetting `CodeUri` to root folder (`./`) of the stack might cause other issues with other commands. The suggestion is to still point `CodeUri` to a folder with a `package.json` file.\n\nBecause of that, we need 2 `package.json` file:\n\n-   **./package.json:** Used to install development dependencies like lint, test and utilities for the management of the project.\n-   **./functions/package.json:** Used to install production dependencies for each lambda handler (e.g. aws-sdk, npm modules used by the lambda handler).\n\nUsing this approach, we need to run `npm install` in two places. One for the root folder and another for the `functions` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foieduardorabelo%2Faws-sam-typescript-shared-package-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foieduardorabelo%2Faws-sam-typescript-shared-package-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foieduardorabelo%2Faws-sam-typescript-shared-package-json/lists"}