Skip to content

Commit

Permalink
Merge pull request #534 from webdeveric/chore/spelling
Browse files Browse the repository at this point in the history
chore: fixed spelling issues
  • Loading branch information
webdeveric committed Apr 30, 2024
2 parents b0ec808 + 1377c2b commit 7dc3b64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/packagers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type EsbuildServerlessPlugin from '../index';
import type { PackagerId, PackagerOptions } from '../types';
import type { Packager } from './packager';

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

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

return new Pnpm();
},
async yarn(packgerOptions) {
async yarn(packagerOptions) {
const { Yarn } = await import('./yarn');

return new Yarn(packgerOptions);
return new Yarn(packagerOptions);
},
};

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

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

const packager = await packagerFactories[packagerId](packgerOptions);
const packager = await packagerFactories[packagerId](packagerOptions);

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

Expand Down
2 changes: 1 addition & 1 deletion src/tests/packagers/npm.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ describe('NPM Packager', () => {
expect(v7dependencies).toStrictEqual(expectedResult);
});

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

0 comments on commit 7dc3b64

Please sign in to comment.