Skip to content

Commit

Permalink
yaml not yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jogold committed May 19, 2021
1 parent f1e644c commit e37701f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/@aws-cdk/aws-lambda-nodejs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ when working with the AWS SDK for JavaScript. Set the `awsSdkConnectionReuse` pr

## Lock file

The `NodejsFunction` requires a dependencies lock file (`yarn.lock`, `package-lock.json` or
`pnpm-lock.yml`). When bundling in a Docker container, the path containing this lock file is
The `NodejsFunction` requires a dependencies lock file (`yarn.lock`, `pnpm-lock.yaml` or
`package-lock.json`). When bundling in a Docker container, the path containing this lock file is
used as the source (`/asset-input`) for the volume mounted in the container.

By default, the construct will try to automatically determine your project lock file.
Expand Down Expand Up @@ -114,7 +114,7 @@ new lambda.NodejsFunction(this, 'my-handler', {

The modules listed in `nodeModules` must be present in the `package.json`'s dependencies or
installed. The same version will be used for installation. The lock file (`yarn.lock`,
`pnpm-lock.yml` or `package-lock.json`) will be used along with the right installer (`yarn`,
`pnpm-lock.yaml` or `package-lock.json`) will be used along with the right installer (`yarn`,
`pnpm` or `npm`).

When working with `nodeModules` using native dependencies, you might want to force bundling in a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ test('from a yarn.lock', () => {
expect(packageManager.runBinCommand('my-bin')).toBe('yarn run my-bin');
});

test('from a pnpm-lock.yml', () => {
test('from a pnpm-lock.yaml', () => {
const packageManager = PackageManager.fromLockFile('/path/to/pnpm-lock.yaml');
expect(packageManager).toEqual(PackageManager.PNPM);

Expand Down

0 comments on commit e37701f

Please sign in to comment.