Skip to content

Commit 7dc3b64

Browse files
authored
Merge pull request #534 from webdeveric/chore/spelling
chore: fixed spelling issues
2 parents b0ec808 + 1377c2b commit 7dc3b64

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/packagers/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import type EsbuildServerlessPlugin from '../index';
1313
import type { PackagerId, PackagerOptions } from '../types';
1414
import type { Packager } from './packager';
1515

16-
const packagerFactories: Record<PackagerId, (packgerOptions: PackagerOptions) => Promise<Packager>> = {
16+
const packagerFactories: Record<PackagerId, (packagerOptions: PackagerOptions) => Promise<Packager>> = {
1717
async npm() {
1818
const { NPM } = await import('./npm');
1919

@@ -24,10 +24,10 @@ const packagerFactories: Record<PackagerId, (packgerOptions: PackagerOptions) =>
2424

2525
return new Pnpm();
2626
},
27-
async yarn(packgerOptions) {
27+
async yarn(packagerOptions) {
2828
const { Yarn } = await import('./yarn');
2929

30-
return new Yarn(packgerOptions);
30+
return new Yarn(packagerOptions);
3131
},
3232
};
3333

@@ -43,7 +43,7 @@ export const getPackager = memoizeWith(
4343
async function (
4444
this: EsbuildServerlessPlugin,
4545
packagerId: PackagerId,
46-
packgerOptions: PackagerOptions
46+
packagerOptions: PackagerOptions
4747
): Promise<Packager> {
4848
this.log.debug(`Trying to create packager: ${packagerId}`);
4949

@@ -53,7 +53,7 @@ export const getPackager = memoizeWith(
5353
throw new this.serverless.classes.Error(`Could not find packager '${packagerId}'`);
5454
}
5555

56-
const packager = await packagerFactories[packagerId](packgerOptions);
56+
const packager = await packagerFactories[packagerId](packagerOptions);
5757

5858
this.log.debug(`Packager created: ${packagerId}`);
5959

src/tests/packagers/npm.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ describe('NPM Packager', () => {
416416
expect(v7dependencies).toStrictEqual(expectedResult);
417417
});
418418

419-
it('should create the same dependency tree which handles deduping for both npmv6 and npmv7', async () => {
419+
it('should create the same dependency tree which handles deduping for both npm v6 and v7', async () => {
420420
const v6depsList: NpmV6Deps = {
421421
name: 'serverless-example',
422422
version: '1.0.0',

0 commit comments

Comments
 (0)