@@ -13,7 +13,7 @@ import type EsbuildServerlessPlugin from '../index';
13
13
import type { PackagerId , PackagerOptions } from '../types' ;
14
14
import type { Packager } from './packager' ;
15
15
16
- const packagerFactories : Record < PackagerId , ( packgerOptions : PackagerOptions ) => Promise < Packager > > = {
16
+ const packagerFactories : Record < PackagerId , ( packagerOptions : PackagerOptions ) => Promise < Packager > > = {
17
17
async npm ( ) {
18
18
const { NPM } = await import ( './npm' ) ;
19
19
@@ -24,10 +24,10 @@ const packagerFactories: Record<PackagerId, (packgerOptions: PackagerOptions) =>
24
24
25
25
return new Pnpm ( ) ;
26
26
} ,
27
- async yarn ( packgerOptions ) {
27
+ async yarn ( packagerOptions ) {
28
28
const { Yarn } = await import ( './yarn' ) ;
29
29
30
- return new Yarn ( packgerOptions ) ;
30
+ return new Yarn ( packagerOptions ) ;
31
31
} ,
32
32
} ;
33
33
@@ -43,7 +43,7 @@ export const getPackager = memoizeWith(
43
43
async function (
44
44
this : EsbuildServerlessPlugin ,
45
45
packagerId : PackagerId ,
46
- packgerOptions : PackagerOptions
46
+ packagerOptions : PackagerOptions
47
47
) : Promise < Packager > {
48
48
this . log . debug ( `Trying to create packager: ${ packagerId } ` ) ;
49
49
@@ -53,7 +53,7 @@ export const getPackager = memoizeWith(
53
53
throw new this . serverless . classes . Error ( `Could not find packager '${ packagerId } '` ) ;
54
54
}
55
55
56
- const packager = await packagerFactories [ packagerId ] ( packgerOptions ) ;
56
+ const packager = await packagerFactories [ packagerId ] ( packagerOptions ) ;
57
57
58
58
this . log . debug ( `Packager created: ${ packagerId } ` ) ;
59
59
0 commit comments