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

chore: fixed spelling issues #534

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading