From 9d7e507112fbf223aa858f3470a2bfef16d8901f Mon Sep 17 00:00:00 2001 From: Ivan Holovin Date: Wed, 29 Nov 2023 18:35:55 +0200 Subject: [PATCH] fix: remove the list of default excluded files --- src/pack.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pack.ts b/src/pack.ts index 649eafc1..e0fb9d5e 100644 --- a/src/pack.ts +++ b/src/pack.ts @@ -38,8 +38,6 @@ function setFunctionArtifactPath( } } -const excludedFilesDefault = ['package-lock.json', 'pnpm-lock.yaml', 'yarn.lock', 'package.json']; - export const filterFilesForZipPackage = ({ files, functionAlias, @@ -93,7 +91,6 @@ export async function pack(this: EsbuildServerlessPlugin) { const providerName = this.serverless?.service?.provider?.name; const isGoogleProvider = this.serverless?.service?.provider?.name === 'google'; const isScalewayProvider = this.serverless?.service?.provider?.name === 'scaleway'; // Scaleway can not have package: individually - const excludedFiles = isGoogleProvider ? [] : excludedFilesDefault; // Google and Scaleway providers cannot use individual packaging for now - this could be built in a future release const isPackageIndividuallyNotSupported = isGoogleProvider || isScalewayProvider || false; @@ -113,7 +110,6 @@ export async function pack(this: EsbuildServerlessPlugin) { dot: true, onlyFiles: true, }) - .filter((file) => !excludedFiles.includes(file)) .map((localPath) => ({ localPath, rootPath: path.join(buildDirPath, localPath) })); if (isEmpty(files)) {