Skip to content

Commit

Permalink
fix: fixes an issue with uploading blobs in monorepos (#6342)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasholzer authored Jan 24, 2024
1 parent 935f834 commit 293b3a6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,14 @@ const uploadDeployBlobs = async ({
cachedConfig,
deployId,
options,
packagePath,
silent,
siteId,
}: {
cachedConfig: any
deployId: string
options: OptionValues
packagePath?: string
silent: boolean
siteId: string
}) => {
Expand All @@ -372,6 +374,7 @@ const uploadDeployBlobs = async ({
...options,
quiet: silent,
cachedConfig,
packagePath,
deployId,
siteId,
token,
Expand Down Expand Up @@ -474,7 +477,14 @@ const runDeploy = async ({
})

config.headers = headers
uploadDeployBlobs({ deployId, siteId, silent, options, cachedConfig: command.netlify.cachedConfig })
await uploadDeployBlobs({
deployId,
siteId,
silent,
options,
cachedConfig: command.netlify.cachedConfig,
packagePath: command.workspacePackage,
})

results = await deploySite(api, siteId, deployFolder, {
// @ts-expect-error FIXME
Expand Down Expand Up @@ -555,11 +565,10 @@ const handleBuild = async ({ cachedConfig, currentDir, deployHandler, options, p
/**
*
* @param {*} options Bundling options
* @param {import('..//base-command.js').default} command
* @returns
*/
// @ts-expect-error TS(7006) FIXME: Parameter 'options' implicitly has an 'any' type.
const bundleEdgeFunctions = async (options, command) => {
const bundleEdgeFunctions = async (options, command: BaseCommand) => {
// eslint-disable-next-line n/prefer-global/process, unicorn/prefer-set-has
const argv = process.argv.slice(2)
const statusCb =
Expand Down

3 comments on commit 293b3a6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,282
  • Package size: 280 MB
  • Number of ts-expect-error directives: 1,171

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,282
  • Package size: 280 MB
  • Number of ts-expect-error directives: 1,171

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,282
  • Package size: 280 MB
  • Number of ts-expect-error directives: 1,171

Please sign in to comment.