netlify-cli 18.0.4 → 19.0.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.
Files changed (88) hide show
  1. package/dist/commands/base-command.d.ts.map +1 -1
  2. package/dist/commands/base-command.js +2 -13
  3. package/dist/commands/blobs/blobs.js +2 -2
  4. package/dist/commands/build/build.d.ts +4 -11
  5. package/dist/commands/build/build.d.ts.map +1 -1
  6. package/dist/commands/build/build.js +1 -7
  7. package/dist/commands/build/index.js +1 -1
  8. package/dist/commands/completion/completion.d.ts.map +1 -1
  9. package/dist/commands/completion/completion.js +0 -1
  10. package/dist/commands/deploy/index.d.ts.map +1 -1
  11. package/dist/commands/deploy/index.js +5 -6
  12. package/dist/commands/dev/dev.d.ts.map +1 -1
  13. package/dist/commands/dev/dev.js +1 -15
  14. package/dist/commands/env/env-list.d.ts +2 -2
  15. package/dist/commands/env/env-list.d.ts.map +1 -1
  16. package/dist/commands/env/env.d.ts.map +1 -1
  17. package/dist/commands/env/env.js +5 -4
  18. package/dist/commands/functions/functions.d.ts +1 -1
  19. package/dist/commands/functions/functions.d.ts.map +1 -1
  20. package/dist/commands/functions/functions.js +4 -2
  21. package/dist/commands/init/index.d.ts.map +1 -1
  22. package/dist/commands/init/index.js +0 -2
  23. package/dist/commands/link/index.d.ts.map +1 -1
  24. package/dist/commands/link/index.js +0 -2
  25. package/dist/commands/main.d.ts.map +1 -1
  26. package/dist/commands/main.js +0 -3
  27. package/dist/commands/recipes/recipes.d.ts +1 -2
  28. package/dist/commands/recipes/recipes.d.ts.map +1 -1
  29. package/dist/commands/serve/index.d.ts.map +1 -1
  30. package/dist/commands/serve/index.js +1 -4
  31. package/dist/commands/status/index.d.ts +1 -1
  32. package/dist/commands/status/index.d.ts.map +1 -1
  33. package/dist/commands/status/index.js +2 -1
  34. package/dist/lib/build.d.ts +36 -67
  35. package/dist/lib/build.d.ts.map +1 -1
  36. package/dist/lib/build.js +6 -41
  37. package/dist/lib/completion/script.js +0 -1
  38. package/dist/lib/functions/form-submissions-handler.d.ts.map +1 -1
  39. package/dist/lib/functions/form-submissions-handler.js +0 -2
  40. package/dist/lib/functions/runtimes/js/builders/netlify-lambda.d.ts.map +1 -1
  41. package/dist/lib/functions/runtimes/js/builders/netlify-lambda.js +8 -7
  42. package/dist/lib/functions/runtimes/js/builders/zisi.d.ts.map +1 -1
  43. package/dist/lib/functions/runtimes/js/builders/zisi.js +0 -1
  44. package/dist/lib/functions/runtimes/js/worker.js +0 -1
  45. package/dist/recipes/ai-context/context.d.ts +33 -0
  46. package/dist/recipes/ai-context/context.d.ts.map +1 -0
  47. package/dist/recipes/ai-context/context.js +100 -0
  48. package/dist/recipes/ai-context/index.d.ts +4 -0
  49. package/dist/recipes/ai-context/index.d.ts.map +1 -0
  50. package/dist/recipes/ai-context/index.js +85 -0
  51. package/dist/recipes/vscode/settings.d.ts.map +1 -1
  52. package/dist/recipes/vscode/settings.js +5 -4
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/dist/utils/command-helpers.d.ts +2 -2
  55. package/dist/utils/command-helpers.js +1 -1
  56. package/dist/utils/deploy/hash-files.js +3 -3
  57. package/dist/utils/deploy/hash-fns.d.ts.map +1 -1
  58. package/dist/utils/deploy/hash-fns.js +3 -2
  59. package/dist/utils/deploy/hasher-segments.d.ts +3 -3
  60. package/dist/utils/deploy/hasher-segments.d.ts.map +1 -1
  61. package/dist/utils/deploy/hasher-segments.js +2 -9
  62. package/dist/utils/get-global-config.d.ts.map +1 -1
  63. package/dist/utils/get-global-config.js +2 -2
  64. package/dist/utils/get-repo-data.d.ts +4 -4
  65. package/dist/utils/get-repo-data.d.ts.map +1 -1
  66. package/dist/utils/get-repo-data.js +7 -6
  67. package/dist/utils/open-browser.d.ts.map +1 -1
  68. package/dist/utils/open-browser.js +1 -2
  69. package/dist/utils/proxy.d.ts.map +1 -1
  70. package/dist/utils/proxy.js +0 -3
  71. package/dist/utils/rules-proxy.d.ts.map +1 -1
  72. package/dist/utils/rules-proxy.js +0 -1
  73. package/dist/utils/run-build.d.ts.map +1 -1
  74. package/dist/utils/run-build.js +7 -2
  75. package/dist/utils/sites/create-template.d.ts.map +1 -1
  76. package/dist/utils/sites/create-template.js +2 -3
  77. package/dist/utils/state-config.d.ts.map +1 -1
  78. package/dist/utils/state-config.js +0 -1
  79. package/dist/utils/types.d.ts +7 -0
  80. package/dist/utils/types.d.ts.map +1 -1
  81. package/npm-shrinkwrap.json +836 -179
  82. package/package.json +8 -11
  83. package/dist/commands/integration/deploy.d.ts +0 -8
  84. package/dist/commands/integration/deploy.d.ts.map +0 -1
  85. package/dist/commands/integration/deploy.js +0 -353
  86. package/dist/commands/integration/index.d.ts +0 -4
  87. package/dist/commands/integration/index.d.ts.map +0 -1
  88. package/dist/commands/integration/index.js +0 -26
@@ -1 +1 @@
1
- {"version":3,"file":"base-command.d.ts","sourceRoot":"","sources":["../../src/commands/base-command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAiB,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAU,MAAM,WAAW,CAAA;AA0BjD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAQxD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEhD,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAClC,CAAA;AAuGD,0EAA0E;AAC1E,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;;IAC9C,4DAA4D;IAE5D,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAyC;IAE7D,OAAO,EAAE,OAAO,CAAA;IAEhB;;;;OAIG;IAGH,UAAU,SAAgB;IAE1B;;;OAGG;IACH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E,UAAU,IAAI,IAAI;IAgIlB,kEAAkE;IAC5D,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO;IAwBtB,YAAY,CAAC,aAAa,CAAC,EAAE,MAAM;IAQnC,uBAAuB;IA4D7B,8CAA8C;IAC9C,mBAAmB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAOpD;;OAEG;YACW,IAAI;IAmMlB,iDAAiD;IAC3C,SAAS,CAAC,MAAM,EAAE;QACtB,GAAG,EAAE,MAAM,CAAA;QACX,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,2EAA2E;QAC3E,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC;IAgDpC;;OAEG;IACH,gBAAgB,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAI5C;;;;OAIG;IACH,iBAAiB,IAAI,YAAY,GAAG,KAAK;IAIzC;;OAEG;IACH,cAAc,CAAC,CAAC,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;CAGjE"}
@@ -19,11 +19,9 @@ import { NodeFS, NoopLogger } from '@netlify/build-info/node';
19
19
  import { resolveConfig } from '@netlify/config';
20
20
  import { isCI } from 'ci-info';
21
21
  import { Command, Option } from 'commander';
22
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'debu... Remove this comment to see the full error message
23
22
  import debug from 'debug';
24
23
  import { findUp } from 'find-up';
25
24
  import inquirer from 'inquirer';
26
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'inqu... Remove this comment to see the full error message
27
25
  import inquirerAutocompletePrompt from 'inquirer-autocomplete-prompt';
28
26
  import merge from 'lodash/merge.js';
29
27
  import { NetlifyAPI } from 'netlify';
@@ -139,25 +137,16 @@ class BaseCommand extends Command {
139
137
  */
140
138
  createCommand(name) {
141
139
  const base = new BaseCommand(name)
142
- // If --silent or --json flag passed disable logger
143
140
  // .addOption(new Option('--force', 'Force command to run. Bypasses prompts for certain destructive commands.'))
144
- .addOption(new Option('--json', 'Output return values as JSON').hideHelp(true))
145
141
  .addOption(new Option('--silent', 'Silence CLI output').hideHelp(true))
146
142
  .addOption(new Option('--cwd <cwd>').hideHelp(true))
147
- .addOption(new Option('-o, --offline').hideHelp(true))
148
- .addOption(new Option('--auth <token>', 'Netlify auth token').hideHelp(true))
149
- .addOption(new Option('--httpProxy [address]', 'Old, prefer --http-proxy. Proxy server address to route requests through.')
143
+ .addOption(new Option('--auth <token>', 'Netlify auth token - can be used to run this command without logging in'))
144
+ .addOption(new Option('--http-proxy [address]', 'Proxy server address to route requests through.')
150
145
  .default(process.env.HTTP_PROXY || process.env.HTTPS_PROXY)
151
146
  .hideHelp(true))
152
- .addOption(new Option('--httpProxyCertificateFilename [file]', 'Old, prefer --http-proxy-certificate-filename. Certificate file to use when connecting using a proxy server.')
153
- .default(process.env.NETLIFY_PROXY_CERTIFICATE_FILENAME)
154
- .hideHelp(true))
155
147
  .addOption(new Option('--http-proxy-certificate-filename [file]', 'Certificate file to use when connecting using a proxy server')
156
148
  .default(process.env.NETLIFY_PROXY_CERTIFICATE_FILENAME)
157
149
  .hideHelp(true))
158
- .addOption(new Option('--httpProxy [address]', 'Proxy server address to route requests through.')
159
- .default(process.env.HTTP_PROXY || process.env.HTTPS_PROXY)
160
- .hideHelp(true))
161
150
  .option('--debug', 'Print debugging information');
162
151
  // only add the `--filter` option to commands that are workspace aware
163
152
  if (!COMMANDS_WITHOUT_WORKSPACE_OPTIONS.has(name)) {
@@ -25,7 +25,7 @@ export const createBlobsCommand = (program) => {
25
25
  .description(`Reads an object with a given key from a Netlify Blobs store and, if it exists, prints the content to the terminal or saves it to a file`)
26
26
  .argument('<store>', 'Name of the store')
27
27
  .argument('<key>', 'Object key')
28
- .option('-o, --output <path>', 'Defines the filesystem path where the blob data should be persisted')
28
+ .option('-O, --output <path>', 'Defines the filesystem path where the blob data should be persisted')
29
29
  .alias('blob:get')
30
30
  .hook('preAction', requiresSiteInfo)
31
31
  .action(async (storeName, key, options, command) => {
@@ -38,7 +38,7 @@ export const createBlobsCommand = (program) => {
38
38
  .argument('<store>', 'Name of the store')
39
39
  .option('-d, --directories', `Indicates that keys with the '/' character should be treated as directories, returning a list of sub-directories at a given level rather than all the keys inside them`)
40
40
  .option('-p, --prefix <prefix>', `A string for filtering down the entries; when specified, only the entries whose key starts with that prefix are returned`)
41
- .option('--json', `Output list contents as JSON`)
41
+ .option('--json', 'Output list contents as JSON')
42
42
  .alias('blob:list')
43
43
  .hook('preAction', requiresSiteInfo)
44
44
  .action(async (storeName, options, command) => {
@@ -1,13 +1,6 @@
1
- import { OptionValues } from 'commander';
2
- import BaseCommand from '../base-command.js';
3
- /**
4
- * @param {import('../../lib/build.js').BuildConfig} options
5
- */
6
- export declare const checkOptions: ({ cachedConfig: { siteInfo }, token }: {
7
- cachedConfig: {
8
- siteInfo?: {} | undefined;
9
- };
10
- token: any;
11
- }) => void;
1
+ import type { OptionValues } from 'commander';
2
+ import { type BuildConfig } from '../../lib/build.js';
3
+ import type BaseCommand from '../base-command.js';
4
+ export declare const checkOptions: ({ cachedConfig: { siteInfo }, token }: BuildConfig) => void;
12
5
  export declare const build: (options: OptionValues, command: BaseCommand) => Promise<void>;
13
6
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/build/build.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C;;GAEG;AAEH,eAAO,MAAM,YAAY;;;;;UAWxB,CAAA;AAED,eAAO,MAAM,KAAK,YAAmB,YAAY,WAAW,WAAW,kBA8BtE,CAAA"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/build/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,KAAK,WAAW,EAA6B,MAAM,oBAAoB,CAAA;AAIhF,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AAEjD,eAAO,MAAM,YAAY,0CAA2C,WAAW,SAU9E,CAAA;AAED,eAAO,MAAM,KAAK,YAAmB,YAAY,WAAW,WAAW,kBA6BtE,CAAA"}
@@ -2,12 +2,7 @@ import { getBuildOptions, runBuild } from '../../lib/build.js';
2
2
  import { detectFrameworkSettings, getDefaultConfig } from '../../utils/build-info.js';
3
3
  import { error, exit, getToken } from '../../utils/command-helpers.js';
4
4
  import { getEnvelopeEnv } from '../../utils/env/index.js';
5
- /**
6
- * @param {import('../../lib/build.js').BuildConfig} options
7
- */
8
- // @ts-expect-error TS(7031) FIXME: Binding element 'token' implicitly has an 'any' ty... Remove this comment to see the full error message
9
- export const checkOptions = ({ cachedConfig: { siteInfo = {} }, token }) => {
10
- // @ts-expect-error TS(2339) FIXME: Property 'id' does not exist on type '{}'.
5
+ export const checkOptions = ({ cachedConfig: { siteInfo }, token }) => {
11
6
  if (!siteInfo.id) {
12
7
  error('Could not find the site ID. If your site is not on Netlify, please run `netlify init` or `netlify deploy` first. If it is, please run `netlify link`.');
13
8
  }
@@ -27,7 +22,6 @@ export const build = async (options, command) => {
27
22
  packagePath: command.workspacePackage,
28
23
  currentDir: command.workingDir,
29
24
  token,
30
- // @ts-expect-error TS(2740)
31
25
  options,
32
26
  });
33
27
  if (!options.offline) {
@@ -5,7 +5,7 @@ export const createBuildCommand = (program) => program
5
5
  .description('Build on your local machine')
6
6
  .option('--context <context>', 'Specify a build context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")', normalizeContext, process.env.CONTEXT || 'production')
7
7
  .option('--dry', 'Dry run: show instructions without running them', false)
8
- .option('-o, --offline', 'disables any features that require network access', false)
8
+ .option('-o, --offline', 'Disables any features that require network access')
9
9
  .addExamples(['netlify build'])
10
10
  .action(async (options, command) => {
11
11
  const { build } = await import('./build.js');
@@ -1 +1 @@
1
- {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAaxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAI5C,eAAO,MAAM,kBAAkB,YAAmB,YAAY,WAAW,WAAW,kBAiEnF,CAAA;AAED,eAAO,MAAM,mBAAmB,YAAmB,YAAY,WAAW,WAAW,kBAQpF,CAAA"}
1
+ {"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../../src/commands/completion/completion.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAYxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAI5C,eAAO,MAAM,kBAAkB,YAAmB,YAAY,WAAW,WAAW,kBAiEnF,CAAA;AAED,eAAO,MAAM,mBAAmB,YAAmB,YAAY,WAAW,WAAW,kBAQpF,CAAA"}
@@ -3,7 +3,6 @@ import { homedir } from 'os';
3
3
  import { dirname, join } from 'path';
4
4
  import { fileURLToPath } from 'url';
5
5
  import inquirer from 'inquirer';
6
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'tabt... Remove this comment to see the full error message
7
6
  import { install, uninstall } from 'tabtab';
8
7
  import { generateAutocompletion } from '../../lib/completion/index.js';
9
8
  import { error, log, chalk, checkFileForLine, TABTAB_CONFIG_LINE, AUTOLOAD_COMPINIT, } from '../../utils/command-helpers.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/index.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,YAAa,WAAW,gBAgIlD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/deploy/index.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,YAAa,WAAW,gBA4HlD,CAAA"}
@@ -72,17 +72,16 @@ functions/
72
72
  Support for package.json's main field, and intrinsic index.js entrypoints are coming soon.`)
73
73
  .option('-d, --dir <path>', 'Specify a folder to deploy')
74
74
  .option('-f, --functions <folder>', 'Specify a functions folder to deploy')
75
- .addOption(new Option('-p, --prod', 'Deploy to production').default(false).conflicts(['alias', 'branch', 'prodIfUnlocked']))
76
- .addOption(new Option('--prodIfUnlocked', 'Old, prefer --prod-if-unlocked. Deploy to production if unlocked, create a draft otherwise')
75
+ .addOption(new Option('-p, --prod', 'Deploy to production')
76
+ .default(false)
77
+ .conflicts(['alias', 'branch', 'prod-if-unlocked']))
78
+ .addOption(new Option('--prod-if-unlocked', 'Deploy to production if unlocked, create a draft otherwise')
77
79
  .default(false)
78
- .hideHelp(true)
79
80
  .conflicts(['alias', 'branch', 'prod']))
80
- .option('--prod-if-unlocked', 'Deploy to production if unlocked, create a draft otherwise', false)
81
81
  .option('--alias <name>', 'Specifies the alias for deployment, the string at the beginning of the deploy subdomain. Useful for creating predictable deployment URLs. Avoid setting an alias string to the same value as a deployed branch. `alias` doesn’t create a branch deploy and can’t be used in conjunction with the branch subdomain feature. Maximum 37 characters.')
82
82
  .option('-b, --branch <name>', 'Serves the same functionality as --alias. Deprecated and will be removed in future versions')
83
- .option('-o, --open', 'Open site after deploy', false)
83
+ .option('-O, --open', 'Open site after deploy', false)
84
84
  .option('-m, --message <message>', 'A short message to include in the deploy log')
85
- .option('-a, --auth <token>', 'Netlify auth token to deploy with', env.NETLIFY_AUTH_TOKEN)
86
85
  .option('-s, --site <name-or-id>', 'A site name or ID to deploy to', env.NETLIFY_SITE_ID)
87
86
  .option('--json', 'Output deployment data as JSON')
88
87
  .option('--timeout <number>', 'Timeout to wait for deployment to finish', (value) => Number.parseInt(value))
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,kBAiKpE,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBAiHpD,CAAA"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../../src/commands/dev/dev.ts"],"names":[],"mappings":"AAGA,OAAO,EAAU,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BhD,OAAO,WAAW,MAAM,oBAAoB,CAAA;AA4D5C,eAAO,MAAM,GAAG,YAAmB,YAAY,WAAW,WAAW,kBAiKpE,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBAqFpD,CAAA"}
@@ -209,22 +209,16 @@ export const createDevCommand = (program) => {
209
209
  .option('-c ,--command <command>', 'command to run')
210
210
  .option('--context <context>', 'Specify a deploy context or branch for environment variables (contexts: "production", "deploy-preview", "branch-deploy", "dev")', normalizeContext)
211
211
  .option('-p ,--port <port>', 'port of netlify dev', (value) => Number.parseInt(value))
212
- .addOption(new Option('--targetPort <port>', 'Old, prefer --target-port. Port of target app server')
213
- .argParser((value) => Number.parseInt(value))
214
- .hideHelp(true))
215
212
  .addOption(new Option('--skip-wait-port', 'disables waiting for target port to become available').hideHelp(true))
216
213
  .addOption(new Option('--no-open', 'disables the automatic opening of a browser window'))
217
214
  .option('--target-port <port>', 'port of target app server', (value) => Number.parseInt(value))
218
215
  .option('--framework <name>', 'framework to use. Defaults to #auto which automatically detects a framework')
219
216
  .option('-d ,--dir <path>', 'dir with static files')
220
217
  .option('-f ,--functions <folder>', 'specify a functions folder to serve')
221
- .option('-o ,--offline', 'disables any features that require network access')
218
+ .option('-o, --offline', 'Disables any features that require network access')
222
219
  .addOption(new Option('--offline-env', 'disables fetching environment variables from the Netlify API').hideHelp(true))
223
220
  .addOption(new Option('--internal-disable-edge-functions', "disables edge functions. use this if your environment doesn't support Deno. This option is internal and should not be used by end users.").hideHelp(true))
224
221
  .option('-l, --live [subdomain]', 'start a public live session; optionally, supply a subdomain to generate a custom URL', false)
225
- .addOption(new Option('--functionsPort <port>', 'Old, prefer --functions-port. Port of functions server')
226
- .argParser((value) => Number.parseInt(value))
227
- .hideHelp(true))
228
222
  .option('--functions-port <port>', 'port of functions server', (value) => Number.parseInt(value))
229
223
  .addOption(new Option('--geo <mode>', 'force geolocation data to be updated, use cached data from the last 24h if found, or use a mock location')
230
224
  .choices(['cache', 'mock', 'update'])
@@ -233,17 +227,9 @@ export const createDevCommand = (program) => {
233
227
  .addOption(new Option('--staticServerPort <port>', 'port of the static app server used when no framework is detected')
234
228
  .argParser((value) => Number.parseInt(value))
235
229
  .hideHelp())
236
- .addOption(new Option('-e, --edgeInspect [address]', 'Old, prefer --edge-inspect. Enable the V8 Inspector Protocol for Edge Functions, with an optional address in the host:port format')
237
- .conflicts('edgeInspectBrk')
238
- .argParser(validateShortFlagArgs)
239
- .hideHelp(true))
240
230
  .addOption(new Option('-e, --edge-inspect [address]', 'enable the V8 Inspector Protocol for Edge Functions, with an optional address in the host:port format')
241
231
  .conflicts('edgeInspectBrk')
242
232
  .argParser(validateShortFlagArgs))
243
- .addOption(new Option('-E, --edgeInspectBrk [address]', 'Old, prefer --edge-inspect-brk. Enable the V8 Inspector Protocol for Edge Functions and pause execution on the first line of code, with an optional address in the host:port format')
244
- .conflicts('edgeInspect')
245
- .hideHelp(true)
246
- .argParser(validateShortFlagArgs))
247
233
  .addOption(new Option('-E, --edge-inspect-brk [address]', 'enable the V8 Inspector Protocol for Edge Functions and pause execution on the first line of code, with an optional address in the host:port format')
248
234
  .conflicts('edgeInspect')
249
235
  .argParser(validateShortFlagArgs))
@@ -1,4 +1,4 @@
1
- import { OptionValues } from 'commander';
2
- import BaseCommand from '../base-command.js';
1
+ import type { OptionValues } from 'commander';
2
+ import type BaseCommand from '../base-command.js';
3
3
  export declare const envList: (options: OptionValues, command: BaseCommand) => Promise<false | undefined>;
4
4
  //# sourceMappingURL=env-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-list.d.ts","sourceRoot":"","sources":["../../../src/commands/env/env-list.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAiC5C,eAAO,MAAM,OAAO,YAAmB,YAAY,WAAW,WAAW,+BA0ExE,CAAA"}
1
+ {"version":3,"file":"env-list.d.ts","sourceRoot":"","sources":["../../../src/commands/env/env-list.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAM7C,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AAiCjD,eAAO,MAAM,OAAO,YAAmB,YAAY,WAAW,WAAW,+BA0ExE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/commands/env/env.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAM5C,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBA8JpD,CAAA"}
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../src/commands/env/env.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAM5C,eAAO,MAAM,gBAAgB,YAAa,WAAW,gBA0JpD,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { Option } from 'commander';
2
2
  import { normalizeContext } from '../../utils/env/index.js';
3
- const env = (options, command) => {
3
+ const env = (_options, command) => {
4
4
  command.help();
5
5
  };
6
6
  export const createEnvCommand = (program) => {
@@ -8,6 +8,7 @@ export const createEnvCommand = (program) => {
8
8
  .command('env:get')
9
9
  .argument('<name>', 'Environment variable name')
10
10
  .option('-c, --context <context>', 'Specify a deploy context or branch (contexts: "production", "deploy-preview", "branch-deploy", "dev")', normalizeContext, 'dev')
11
+ .option('--json', 'Output environment variables as JSON')
11
12
  .addOption(new Option('-s, --scope <scope>', 'Specify a scope')
12
13
  .choices(['builds', 'functions', 'post-processing', 'runtime', 'any'])
13
14
  .default('any'))
@@ -25,10 +26,8 @@ export const createEnvCommand = (program) => {
25
26
  program
26
27
  .command('env:import')
27
28
  .argument('<fileName>', '.env file to import')
28
- .addOption(new Option('-r --replaceExisting', 'Old, prefer --replace-existing. Replace all existing variables instead of merging them with the current ones')
29
- .default(false)
30
- .hideHelp(true))
31
29
  .option('-r, --replace-existing', 'Replace all existing variables instead of merging them with the current ones', false)
30
+ .option('--json', 'Output environment variables as JSON')
32
31
  .description('Import and set environment variables from .env file')
33
32
  .action(async (fileName, options, command) => {
34
33
  const { envImport } = await import('./env-import.js');
@@ -62,6 +61,7 @@ export const createEnvCommand = (program) => {
62
61
  // spread over an array for variadic options
63
62
  // @ts-expect-error TS(7006) FIXME: Parameter 'context' implicitly has an 'any' type.
64
63
  (context, previous = []) => [...previous, normalizeContext(context)])
64
+ .option('--json', 'Output environment variables as JSON')
65
65
  .addOption(new Option('-s, --scope <scope...>', 'Specify a scope (default: all scopes)').choices([
66
66
  'builds',
67
67
  'functions',
@@ -91,6 +91,7 @@ export const createEnvCommand = (program) => {
91
91
  // spread over an array for variadic options
92
92
  // @ts-expect-error TS(7006) FIXME: Parameter 'context' implicitly has an 'any' type.
93
93
  (context, previous = []) => [...previous, normalizeContext(context)])
94
+ .option('--json', 'Output environment variables as JSON')
94
95
  .addExamples([
95
96
  'netlify env:unset VAR_NAME # unset in all contexts',
96
97
  'netlify env:unset VAR_NAME --context production',
@@ -1,3 +1,3 @@
1
- import BaseCommand from '../base-command.js';
1
+ import type BaseCommand from '../base-command.js';
2
2
  export declare const createFunctionsCommand: (program: BaseCommand) => BaseCommand;
3
3
  //# sourceMappingURL=functions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAM5C,eAAO,MAAM,sBAAsB,YAAa,WAAW,gBA8G1D,CAAA"}
1
+ {"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/commands/functions/functions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,oBAAoB,CAAA;AAMjD,eAAO,MAAM,sBAAsB,YAAa,WAAW,gBAgH1D,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { chalk } from '../../utils/command-helpers.js';
2
2
  import requiresSiteInfo from '../../utils/hooks/requires-site-info.js';
3
- const functions = (options, command) => {
3
+ const functions = (_options, command) => {
4
4
  command.help();
5
5
  };
6
6
  export const createFunctionsCommand = (program) => {
@@ -22,6 +22,7 @@ export const createFunctionsCommand = (program) => {
22
22
  .option('-n, --name <name>', 'function name')
23
23
  .option('-u, --url <url>', 'pull template from URL')
24
24
  .option('-l, --language <lang>', 'function language')
25
+ .option('-o, --offline', 'Disables any features that require network access')
25
26
  .addExamples([
26
27
  'netlify functions:create',
27
28
  'netlify functions:create hello-world',
@@ -44,6 +45,7 @@ export const createFunctionsCommand = (program) => {
44
45
  .option('--identity', 'simulate Netlify Identity authentication JWT. pass --identity to affirm unauthenticated request')
45
46
  .option('--no-identity', 'simulate Netlify Identity authentication JWT. pass --no-identity to affirm unauthenticated request')
46
47
  .option('--port <port>', 'Port where netlify dev is accessible. e.g. 8888', (value) => Number.parseInt(value))
48
+ .option('-o, --offline', 'Disables any features that require network access')
47
49
  .addExamples([
48
50
  'netlify functions:invoke',
49
51
  'netlify functions:invoke myfunction',
@@ -78,7 +80,7 @@ NOT the same as listing the functions that have been deployed. For that info you
78
80
  .description('Serve functions locally')
79
81
  .option('-f, --functions <dir>', 'Specify a functions directory to serve')
80
82
  .option('-p, --port <port>', 'Specify a port for the functions server', (value) => Number.parseInt(value))
81
- .option('-o, --offline', 'disables any features that require network access')
83
+ .option('-o, --offline', 'Disables any features that require network access')
82
84
  .addHelpText('after', 'Helpful for debugging functions.')
83
85
  .action(async (options, command) => {
84
86
  const { functionsServe } = await import('./functions-serve.js');
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/init/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,iBAAiB,YAAa,WAAW,gBAiBhD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/init/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,iBAAiB,YAAa,WAAW,gBAWhD,CAAA"}
@@ -1,9 +1,7 @@
1
- import { Option } from 'commander';
2
1
  export const createInitCommand = (program) => program
3
2
  .command('init')
4
3
  .description('Configure continuous deployment for a new or existing site. To create a new site without continuous deployment, use `netlify sites:create`')
5
4
  .option('-m, --manual', 'Manually configure a git remote for CI')
6
- .addOption(new Option('--gitRemoteName <name>', 'Old, prefer --git-remote-name. Name of Git remote to use. e.g. "origin"').hideHelp(true))
7
5
  .option('--git-remote-name <name>', 'Name of Git remote to use. e.g. "origin"')
8
6
  .action(async (options, command) => {
9
7
  const { init } = await import('./init.js');
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/link/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,iBAAiB,YAAa,WAAW,gBAiBhD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/link/index.ts"],"names":[],"mappings":"AAEA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,iBAAiB,YAAa,WAAW,gBAWhD,CAAA"}
@@ -1,10 +1,8 @@
1
- import { Option } from 'commander';
2
1
  export const createLinkCommand = (program) => program
3
2
  .command('link')
4
3
  .description('Link a local repo or project folder to an existing site on Netlify')
5
4
  .option('--id <id>', 'ID of site to link to')
6
5
  .option('--name <name>', 'Name of site to link to')
7
- .addOption(new Option('--gitRemoteName <name>', 'Old, prefer --git-remote-name. Name of Git remote to use. e.g. "origin"').hideHelp(true))
8
6
  .option('--git-remote-name <name>', 'Name of Git remote to use. e.g. "origin"')
9
7
  .addExamples(['netlify link', 'netlify link --id 123-123-123-123', 'netlify link --name my-site-name'])
10
8
  .action(async (options, command) => {
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/commands/main.ts"],"names":[],"mappings":"AAeA,OAAO,WAAW,MAAM,mBAAmB,CAAA;AA2B3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ9B,CAAA;AA0JD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,mBAqD7B,CAAA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/commands/main.ts"],"names":[],"mappings":"AAcA,OAAO,WAAW,MAAM,mBAAmB,CAAA;AA0B3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ9B,CAAA;AA0JD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,mBAoD7B,CAAA"}
@@ -1,6 +1,5 @@
1
1
  import process from 'process';
2
2
  import { Option } from 'commander';
3
- // @ts-expect-error TS(7016) FIXME: Could not find a declaration file for module 'envi... Remove this comment to see the full error message
4
3
  import envinfo from 'envinfo';
5
4
  import { closest } from 'fastest-levenshtein';
6
5
  import inquirer from 'inquirer';
@@ -19,7 +18,6 @@ import { createDevCommand } from './dev/index.js';
19
18
  import { createEnvCommand } from './env/index.js';
20
19
  import { createFunctionsCommand } from './functions/index.js';
21
20
  import { createInitCommand } from './init/index.js';
22
- import { createIntegrationCommand } from './integration/index.js';
23
21
  import { createLinkCommand } from './link/index.js';
24
22
  import { createLoginCommand } from './login/index.js';
25
23
  import { createLogoutCommand } from './logout/index.js';
@@ -177,7 +175,6 @@ export const createMainCommand = () => {
177
175
  createFunctionsCommand(program);
178
176
  createRecipesCommand(program);
179
177
  createInitCommand(program);
180
- createIntegrationCommand(program);
181
178
  createLinkCommand(program);
182
179
  createLoginCommand(program);
183
180
  createLogoutCommand(program);
@@ -1,6 +1,6 @@
1
1
  import { OptionValues } from 'commander';
2
2
  import BaseCommand from '../base-command.js';
3
- interface RunRecipeOptions {
3
+ export interface RunRecipeOptions {
4
4
  args: string[];
5
5
  command?: BaseCommand;
6
6
  config: unknown;
@@ -9,5 +9,4 @@ interface RunRecipeOptions {
9
9
  }
10
10
  export declare const runRecipe: ({ args, command, config, recipeName, repositoryRoot }: RunRecipeOptions) => Promise<any>;
11
11
  export declare const recipesCommand: (recipeName: string, options: OptionValues, command: BaseCommand) => Promise<any>;
12
- export {};
13
12
  //# sourceMappingURL=recipes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../src/commands/recipes/recipes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAM5C,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,SAAS,0DAAiE,gBAAgB,iBAItG,CAAA;AAED,eAAO,MAAM,cAAc,eAAsB,MAAM,WAAW,YAAY,WAAW,WAAW,KAAG,OAAO,CAAC,GAAG,CAgDjH,CAAA"}
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../../../src/commands/recipes/recipes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAM5C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,SAAS,0DAAiE,gBAAgB,iBAItG,CAAA;AAED,eAAO,MAAM,cAAc,eAAsB,MAAM,WAAW,YAAY,WAAW,WAAW,KAAG,OAAO,CAAC,GAAG,CAgDjH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/serve/index.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,kBAAkB,YAAa,WAAW,gBAkDjD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/serve/index.ts"],"names":[],"mappings":"AAIA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,kBAAkB,YAAa,WAAW,gBA6CjD,CAAA"}
@@ -8,11 +8,8 @@ export const createServeCommand = (program) => program
8
8
  .option('-p ,--port <port>', 'port of netlify dev', (value) => Number.parseInt(value))
9
9
  .option('-d ,--dir <path>', 'dir with static files')
10
10
  .option('-f ,--functions <folder>', 'specify a functions folder to serve')
11
- .option('-o ,--offline', 'disables any features that require network access')
11
+ .option('-o, --offline', 'Disables any features that require network access')
12
12
  .addOption(new Option('--internal-disable-edge-functions', "disables edge functions. use this if your environment doesn't support Deno. This option is internal and should not be used by end users.").hideHelp(true))
13
- .addOption(new Option('--functionsPort <port>', 'Old, prefer --functions-port. Port of functions server')
14
- .argParser((value) => Number.parseInt(value))
15
- .hideHelp(true))
16
13
  .option('--functions-port <port>', 'port of functions server', (value) => Number.parseInt(value))
17
14
  .addOption(new Option('--geo <mode>', 'force geolocation data to be updated, use cached data from the last 24h if found, or use a mock location')
18
15
  .choices(['cache', 'mock', 'update'])
@@ -1,3 +1,3 @@
1
1
  import BaseCommand from '../base-command.js';
2
- export declare const createStatusCommand: (program: BaseCommand) => BaseCommand;
2
+ export declare const createStatusCommand: (program: BaseCommand) => void;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/status/index.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,YAAa,WAAW,gBAkBvD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/status/index.ts"],"names":[],"mappings":"AAGA,OAAO,WAAW,MAAM,oBAAoB,CAAA;AAE5C,eAAO,MAAM,mBAAmB,YAAa,WAAW,SAmBvD,CAAA"}
@@ -8,10 +8,11 @@ export const createStatusCommand = (program) => {
8
8
  const { statusHooks } = await import('./status-hooks.js');
9
9
  await statusHooks(options, command);
10
10
  });
11
- return program
11
+ program
12
12
  .command('status')
13
13
  .description('Print status information')
14
14
  .option('--verbose', 'Output system info')
15
+ .option('--json', 'Output status information as JSON')
15
16
  .action(async (options, command) => {
16
17
  const { status } = await import('./status.js');
17
18
  await status(options, command);
@@ -1,74 +1,43 @@
1
- /**
2
- * The buildConfig + a missing cachedConfig
3
- * @typedef BuildConfig
4
- * @type {Parameters<import('@netlify/build/src/core/main.js')>[0] & {cachedConfig: any}}
5
- */
6
- /**
7
- *
8
- * @param {object} config
9
- * @param {*} config.cachedConfig
10
- * @param {string} [config.packagePath]
11
- * @param {string} config.currentDir
12
- * @param {string} config.token
13
- * @param {import('commander').OptionValues} config.options
14
- * @param {*} config.deployHandler
15
- * @returns {BuildConfig}
16
- */
17
- export declare const getBuildOptions: ({ cachedConfig, currentDir, defaultConfig, deployHandler, options: { context, cwd, debug, dry, json, offline, silent }, packagePath, token, }: {
18
- cachedConfig: any;
19
- currentDir: any;
20
- defaultConfig: any;
21
- deployHandler: any;
22
- options: {
23
- context: any;
24
- cwd: any;
25
- debug: any;
26
- dry: any;
27
- json: any;
28
- offline: any;
29
- silent: any;
30
- };
31
- packagePath: any;
32
- token: any;
33
- }) => Promise<{
34
- cachedConfig: any;
35
- defaultConfig: any;
36
- siteId: any;
37
- accountId: any;
38
- packagePath: any;
39
- token: any;
40
- dry: any;
41
- debug: any;
42
- context: any;
43
- mode: string;
44
- telemetry: boolean;
45
- buffer: any;
46
- offline: any;
47
- cwd: any;
48
- featureFlags: {
49
- functionsBundlingManifest: boolean;
50
- edge_functions_config_export: boolean;
51
- edge_functions_npm_modules: boolean;
52
- edge_functions_read_deno_config: boolean;
53
- };
54
- eventHandlers: {
55
- onEnd: {
56
- handler: ({ netlifyConfig }: {
57
- netlifyConfig: any;
58
- }) => {};
59
- description: string;
60
- };
1
+ import build, { type OnPostBuild } from '@netlify/build';
2
+ import type { OptionValues } from 'commander';
3
+ import type { EnvironmentVariables } from '../utils/types.js';
4
+ export interface CachedConfig {
5
+ env: EnvironmentVariables;
6
+ siteInfo: {
7
+ id?: string;
8
+ account_id?: string;
9
+ feature_flags?: Record<string, boolean | boolean | number>;
61
10
  };
11
+ [k: string]: unknown;
12
+ }
13
+ interface DefaultConfig {
14
+ [k: string]: unknown;
15
+ }
16
+ export type BuildConfig = Parameters<typeof build>[0] & {
17
+ cachedConfig: CachedConfig;
18
+ defaultConfig: DefaultConfig;
19
+ accountId?: string;
62
20
  edgeFunctionsBootstrapURL: string;
63
- }>;
64
- /**
65
- * run the build command
66
- * @param {BuildConfig} options
67
- * @returns
68
- */
69
- export declare const runBuild: (options: any) => Promise<{
21
+ };
22
+ interface HandlerResult {
23
+ newEnvChanges?: Record<string, string>;
24
+ configMutations?: Record<string, string>;
25
+ status?: string;
26
+ }
27
+ type PatchedHandlerType<T extends (opts: any) => void | Promise<void>> = (opts: Parameters<T>[0]) => HandlerResult | Promise<HandlerResult>;
28
+ export declare const getBuildOptions: ({ cachedConfig, currentDir, defaultConfig, deployHandler, options: { context, cwd, debug, dry, json, offline, silent }, packagePath, token, }: {
29
+ cachedConfig: CachedConfig;
30
+ currentDir: string;
31
+ defaultConfig?: DefaultConfig;
32
+ deployHandler?: PatchedHandlerType<OnPostBuild>;
33
+ options: OptionValues;
34
+ packagePath?: string;
35
+ token?: null | string;
36
+ }) => Promise<BuildConfig>;
37
+ export declare const runBuild: (options: BuildConfig) => Promise<{
70
38
  exitCode: number;
71
39
  newConfig: any;
72
40
  configMutations: any;
73
41
  }>;
42
+ export {};
74
43
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/lib/build.ts"],"names":[],"mappings":"AAYA;;;;GAIG;AAKH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiE3B,CAAA;AAED;;;;GAIG;AAEH,eAAO,MAAM,QAAQ;;;;EAcpB,CAAA"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/lib/build.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAc,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAGpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAG7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAK7D,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,oBAAoB,CAAA;IACzB,QAAQ,EAAE;QACR,EAAE,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