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 tries to install @babel/core #9067

Merged
merged 2 commits into from
Jul 16, 2020

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Jul 14, 2020

When Parcel cannot find @babel/core in the search paths for node
modules it tries to install it. This overwrites the lock file and
node_modules.

Add the --no-autoinstall flag to prevent Parcel from installing any
missing dependency and switch to a local install in the Docker image at
the root (/) of the filesystem. This way all dependencies in
/node_modules will be in the search paths of /asset-input.

This was not detected in this repo or in the init template because
@babel/core is a dependency of jest.

Closes #9032


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

When Parcel cannot find `@babel/core` in the search paths for node
modules it tries to install it. This overwrites the lock file and
`node_modules`.

Add the `--no-autoinstall` flag to prevent Parcel from installing any
missing dependency and switch to a local install in the Docker image at
the root (`/`) of the filesystem. This way all dependencies in
`/node_modules` will be in the search paths of `/asset-input`.

This was not detected in this repo or in the init template because
`@babel/core` is a dependency of `jest`.

Closes aws#9032
@mergify
Copy link
Contributor

mergify bot commented Jul 16, 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).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 983c52a
  • 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 16, 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 8d4c635 into aws:master Jul 16, 2020
curtiseppel pushed a commit to curtiseppel/aws-cdk that referenced this pull request Aug 11, 2020
When Parcel cannot find `@babel/core` in the search paths for node
modules it tries to install it. This overwrites the lock file and
`node_modules`.

Add the `--no-autoinstall` flag to prevent Parcel from installing any
missing dependency and switch to a local install in the Docker image at
the root (`/`) of the filesystem. This way all dependencies in
`/node_modules` will be in the search paths of `/asset-input`.

This was not detected in this repo or in the init template because
`@babel/core` is a dependency of `jest`.

Closes aws#9032


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@jogold jogold deleted the parcel-no-auto-install branch August 17, 2020 07:50
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] Recent changes in the module broke our setup (monorepo, private repos, typescript, lerna)
3 participants