diff --git a/src/pack.ts b/src/pack.ts index d0dce850..d003a343 100644 --- a/src/pack.ts +++ b/src/pack.ts @@ -38,7 +38,7 @@ function setFunctionArtifactPath( } } -const excludedFilesDefault = ['package-lock.json', 'pnpm-lock.yaml', 'yarn.lock', 'package.json']; +const excludedFilesDefault = ['package-lock.json', 'pnpm-lock.yaml', 'yarn.lock']; export const filterFilesForZipPackage = ({ files, diff --git a/src/packagers/npm.ts b/src/packagers/npm.ts index 69e7c31c..ca626a42 100644 --- a/src/packagers/npm.ts +++ b/src/packagers/npm.ts @@ -95,7 +95,7 @@ export class NPM implements Packager { } get copyPackageSectionNames() { - return []; + return ['type']; } get mustCopyModules() { diff --git a/src/packagers/pnpm.ts b/src/packagers/pnpm.ts index 1c822960..df892bba 100644 --- a/src/packagers/pnpm.ts +++ b/src/packagers/pnpm.ts @@ -14,7 +14,7 @@ export class Pnpm implements Packager { } get copyPackageSectionNames() { - return []; + return ['type']; } get mustCopyModules() { diff --git a/src/packagers/yarn.ts b/src/packagers/yarn.ts index 1df808f8..8f23e593 100644 --- a/src/packagers/yarn.ts +++ b/src/packagers/yarn.ts @@ -50,7 +50,7 @@ export class Yarn implements Packager { } get copyPackageSectionNames() { - return ['resolutions']; + return ['resolutions', 'type']; } get mustCopyModules() {