Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lambda-nodejs): parcel build cannot find target #8838

Merged
merged 3 commits into from Jul 1, 2020

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Jul 1, 2020

The PackageJsonManager was always targeting the package.json of
@aws-cdk/aws-lambda-nodejs and not the one closest to the entry file.

This was not detected in the tests inside the repo because both files
are the same.

Closes #8837


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The `PackageJsonManager` was always targeting the `package.json` of
`@aws-cdk/aws-lambda-nodejs` and not the one closest to the entry file.

This was not detected in the tests inside the repo because both files
are the same.

Closes aws#8837
eladb
eladb previously requested changes Jul 1, 2020
import { findUp } from '../lib/util';

test('findUp', () => {
expect(findUp('README.md')).toBe(process.cwd());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add a few more test cases here?

@mergify mergify bot dismissed eladb’s stale review July 1, 2020 15:58

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 6714391
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Jul 1, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit ce7a015 into aws:master Jul 1, 2020
@jogold jogold deleted the lambda-nodejs-packagejson branch July 1, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aws-lambda-nodejs] NodejsFunction broken on v1.48.0
3 participants