netlify-cli 17.37.0-rc.1 → 17.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { OptionValues } from 'commander';
1
+ import { type OptionValues } from 'commander';
2
2
  import BaseCommand from '../base-command.js';
3
3
  export declare const deploy: (options: OptionValues, command: BaseCommand) => Promise<void>;
4
4
  //# sourceMappingURL=deploy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/deploy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAkCxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAyuB5C,eAAO,MAAM,MAAM,YAAmB,YAAY,WAAW,WAAW,kBAqHvE,CAAA"}
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/deploy.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA;AAiC7C,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAuvB5C,eAAO,MAAM,MAAM,YAAmB,YAAY,WAAW,WAAW,kBAoHvE,CAAA"}
@@ -417,8 +417,10 @@ title, }) => {
417
417
  const deployUrl = results.deploy.deploy_ssl_url || results.deploy.deploy_url;
418
418
  const logsUrl = `${results.deploy.admin_url}/deploys/${results.deploy.id}`;
419
419
  let functionLogsUrl = `${results.deploy.admin_url}/logs/functions`;
420
+ let edgeFunctionLogsUrl = `${results.deploy.admin_url}/logs/edge-functions`;
420
421
  if (!deployToProduction) {
421
422
  functionLogsUrl += `?scope=deploy:${deployId}`;
423
+ edgeFunctionLogsUrl += `?scope=deploy:${deployId}`;
422
424
  }
423
425
  return {
424
426
  siteId: results.deploy.site_id,
@@ -428,6 +430,7 @@ title, }) => {
428
430
  deployUrl,
429
431
  logsUrl,
430
432
  functionLogsUrl,
433
+ edgeFunctionLogsUrl,
431
434
  };
432
435
  };
433
436
  /**
@@ -498,30 +501,17 @@ const bundleEdgeFunctions = async (options, command) => {
498
501
  phase: 'stop',
499
502
  });
500
503
  };
501
- /**
502
- *
503
- * @param {object} config
504
- * @param {boolean} config.deployToProduction
505
- * @param {boolean} config.isIntegrationDeploy If the user ran netlify integration:deploy instead of just netlify deploy
506
- * @param {boolean} config.json If the result should be printed as json message
507
- * @param {boolean} config.runBuildCommand If the build command should be run
508
- * @param {object} config.results
509
- * @returns {void}
510
- */
511
- // @ts-expect-error TS(7031) FIXME: Binding element 'deployToProduction' implicitly ha... Remove this comment to see the full error message
512
- const printResults = ({ deployToProduction, isIntegrationDeploy, json, results, runBuildCommand }) => {
504
+ const printResults = ({ deployToProduction, isIntegrationDeploy, json, results, runBuildCommand, }) => {
513
505
  const msgData = {
514
506
  'Build logs': results.logsUrl,
515
507
  'Function logs': results.functionLogsUrl,
508
+ 'Edge function Logs': results.edgeFunctionLogsUrl,
516
509
  };
517
510
  if (deployToProduction) {
518
- // @ts-expect-error TS(7053) FIXME: Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
519
511
  msgData['Unique deploy URL'] = results.deployUrl;
520
- // @ts-expect-error TS(7053) FIXME: Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
521
512
  msgData['Website URL'] = results.siteUrl;
522
513
  }
523
514
  else {
524
- // @ts-expect-error TS(7053) FIXME: Element implicitly has an 'any' type because expre... Remove this comment to see the full error message
525
515
  msgData['Website draft URL'] = results.deployUrl;
526
516
  }
527
517
  // Spacer
@@ -529,15 +519,15 @@ const printResults = ({ deployToProduction, isIntegrationDeploy, json, results,
529
519
  // Json response for piping commands
530
520
  if (json) {
531
521
  const jsonData = {
532
- name: results.name,
533
- site_id: results.site_id,
522
+ site_id: results.siteId,
534
523
  site_name: results.siteName,
535
524
  deploy_id: results.deployId,
536
525
  deploy_url: results.deployUrl,
537
526
  logs: results.logsUrl,
527
+ function_logs: results.functionLogsUrl,
528
+ edge_function_logs: results.edgeFunctionLogsUrl,
538
529
  };
539
530
  if (deployToProduction) {
540
- // @ts-expect-error TS(2339) FIXME: Property 'url' does not exist on type '{ name: any... Remove this comment to see the full error message
541
531
  jsonData.url = results.siteUrl;
542
532
  }
543
533
  logJson(jsonData);
@@ -696,7 +686,6 @@ export const deploy = async (options, command) => {
696
686
  defaultConfig: getDefaultConfig(settings),
697
687
  currentDir: command.workingDir,
698
688
  options,
699
- // @ts-expect-error TS(7031) FIXME: Binding element 'netlifyConfig' implicitly has an ... Remove this comment to see the full error message
700
689
  deployHandler: async ({ netlifyConfig }) => {
701
690
  results = await prepAndRunDeploy({
702
691
  command,