netlify-cli 11.8.2 → 12.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.
package/README.md CHANGED
@@ -1,11 +1,13 @@
1
1
  ![Netlify CLI](cli.png)
2
2
 
3
3
  [![Coverage Status](https://codecov.io/gh/netlify/cli/branch/main/graph/badge.svg)](https://codecov.io/gh/netlify/cli)
4
- [![npm version][npm-img]][npm] [![downloads][dl-img]][dl] [![netlify-status][netlify-img]][netlify] [![security][snyk-img]][snyk]
4
+ [![npm version][npm-img]][npm] [![downloads][dl-img]][dl] [![netlify-status][netlify-img]][netlify]
5
+ [![security][snyk-img]][snyk]
5
6
 
6
7
  Interact with [Netlify](http://netlify.com/) from the comfort of your CLI.
7
8
 
8
- See the [CLI command line reference](https://cli.netlify.com/commands/) to get started and the docs on using [Netlify Dev](https://github.com/netlify/cli/blob/main/docs/netlify-dev.md) to run your site locally.
9
+ See the [CLI command line reference](https://cli.netlify.com/commands/) to get started and the docs on using
10
+ [Netlify Dev](https://github.com/netlify/cli/blob/main/docs/netlify-dev.md) to run your site locally.
9
11
 
10
12
  ## Table of Contents
11
13
 
@@ -46,22 +48,28 @@ See the [CLI command line reference](https://cli.netlify.com/commands/) to get s
46
48
 
47
49
  ## Installation
48
50
 
49
- Netlify CLI requires [Node.js](https://nodejs.org) version 12 or above. To install, run the following command from any directory in your terminal:
51
+ Netlify CLI requires [Node.js](https://nodejs.org) version 14 or above. To install, run the following command from any
52
+ directory in your terminal:
50
53
 
51
54
  ```bash
52
55
  npm install netlify-cli -g
53
56
  ```
54
57
 
55
- When using the CLI in a CI environment we recommend installing it locally as a development dependency, instead of globally.
56
- To install locally, run the following command from the root directory of your project:
58
+ When using the CLI in a CI environment we recommend installing it locally as a development dependency, instead of
59
+ globally. To install locally, run the following command from the root directory of your project:
57
60
 
58
61
  ```bash
59
62
  npm install --save-dev netlify-cli
60
63
  ```
61
64
 
62
- **Important:** Running `npm install netlify-cli -g` in CI means you're always installing the latest version of the CLI, including **breaking changes**. When you install locally and use a [lock file](https://docs.npmjs.com/cli/v7/commands/npm-ci) you guarantee reproducible builds. To manage CLI updates we recommend using an automated tool like [renovate](https://github.com/renovatebot/renovate) or [dependabot](https://github.com/dependabot).
65
+ **Important:** Running `npm install netlify-cli -g` in CI means you're always installing the latest version of the CLI,
66
+ including **breaking changes**. When you install locally and use a
67
+ [lock file](https://docs.npmjs.com/cli/v7/commands/npm-ci) you guarantee reproducible builds. To manage CLI updates we
68
+ recommend using an automated tool like [renovate](https://github.com/renovatebot/renovate) or
69
+ [dependabot](https://github.com/dependabot).
63
70
 
64
- Alternatively you may also use Homebrew: `brew install netlify-cli` (thanks [@cglong](https://github.com/netlify/cli/issues/291)).
71
+ Alternatively you may also use Homebrew: `brew install netlify-cli` (thanks
72
+ [@cglong](https://github.com/netlify/cli/issues/291)).
65
73
 
66
74
  ## Usage
67
75
 
@@ -76,7 +84,8 @@ netlify [command] help
76
84
 
77
85
  ## Documentation
78
86
 
79
- To learn how to log in to Netlify and start deploying sites, visit the [documentation on Netlify](https://docs.netlify.com/cli/get-started/).
87
+ To learn how to log in to Netlify and start deploying sites, visit the
88
+ [documentation on Netlify](https://docs.netlify.com/cli/get-started/).
80
89
 
81
90
  For a full command reference, see the list below, or visit [cli.netlify.com](https://cli.netlify.com/).
82
91
 
@@ -1,21 +1,20 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "11.8.2",
3
+ "version": "12.0.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "11.8.2",
9
+ "version": "12.0.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^27.18.4",
14
- "@netlify/config": "^18.2.3",
13
+ "@netlify/build": "^27.18.6",
14
+ "@netlify/config": "^18.2.4",
15
15
  "@netlify/edge-bundler": "^2.2.0",
16
16
  "@netlify/framework-info": "^9.2.0",
17
17
  "@netlify/local-functions-proxy": "^1.1.1",
18
- "@netlify/plugins-list": "^6.45.0",
19
18
  "@netlify/zip-it-and-ship-it": "^7.1.2",
20
19
  "@octokit/rest": "^18.0.0",
21
20
  "@sindresorhus/slugify": "^1.1.0",
@@ -88,7 +87,6 @@
88
87
  "node-version-alias": "^1.0.1",
89
88
  "omit.js": "^2.0.2",
90
89
  "ora": "^5.0.0",
91
- "p-event": "^4.2.0",
92
90
  "p-filter": "^2.1.0",
93
91
  "p-map": "^4.0.0",
94
92
  "p-wait-for": "^3.0.0",
@@ -114,7 +112,7 @@
114
112
  "toml": "^3.0.0",
115
113
  "unixify": "^1.0.0",
116
114
  "update-notifier": "^5.0.0",
117
- "uuid": "^8.0.0",
115
+ "uuid": "^9.0.0",
118
116
  "wait-port": "^0.3.0",
119
117
  "winston": "^3.2.1",
120
118
  "write-file-atomic": "^4.0.0"
@@ -151,7 +149,7 @@
151
149
  "verdaccio": "^5.10.2"
152
150
  },
153
151
  "engines": {
154
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
152
+ "node": "^14.16.0 || >=16.0.0"
155
153
  }
156
154
  },
157
155
  "node_modules/@ampproject/remapping": {
@@ -1194,18 +1192,18 @@
1194
1192
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
1195
1193
  },
1196
1194
  "node_modules/@netlify/build": {
1197
- "version": "27.18.4",
1198
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.18.4.tgz",
1199
- "integrity": "sha512-3DXTuv5X9FWI+6G7uI29GlxkatMqgNyPX9Ey2BiYIi2CSUjILuCealVW+Qo3SV0+afty3teptaUfMQSKa1OLHg==",
1195
+ "version": "27.18.6",
1196
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.18.6.tgz",
1197
+ "integrity": "sha512-ZALZHNwZbRieQ8s8mYPkod1zwqkrOzVphPueW8OyyTymXIEsIBKL0YpYBPOtnwfEHHZJBDUg+Utq7yAT3c+SQQ==",
1200
1198
  "dependencies": {
1201
1199
  "@bugsnag/js": "^7.0.0",
1202
- "@netlify/cache-utils": "^4.0.0",
1203
- "@netlify/config": "^18.2.3",
1200
+ "@netlify/cache-utils": "^4.1.5",
1201
+ "@netlify/config": "^18.2.4",
1204
1202
  "@netlify/edge-bundler": "^2.2.0",
1205
- "@netlify/functions-utils": "^4.2.9",
1206
- "@netlify/git-utils": "^4.0.0",
1207
- "@netlify/plugins-list": "^6.45.0",
1208
- "@netlify/run-utils": "^4.0.0",
1203
+ "@netlify/functions-utils": "^4.2.10",
1204
+ "@netlify/git-utils": "^4.1.2",
1205
+ "@netlify/plugins-list": "^6.46.0",
1206
+ "@netlify/run-utils": "^4.0.2",
1209
1207
  "@netlify/zip-it-and-ship-it": "^7.1.2",
1210
1208
  "@sindresorhus/slugify": "^2.0.0",
1211
1209
  "@types/node": "^16.0.0",
@@ -1255,10 +1253,10 @@
1255
1253
  "yargs": "^17.3.1"
1256
1254
  },
1257
1255
  "bin": {
1258
- "netlify-build": "src/core/bin.js"
1256
+ "netlify-build": "lib/core/bin.js"
1259
1257
  },
1260
1258
  "engines": {
1261
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
1259
+ "node": "^14.16.0 || >=16.0.0"
1262
1260
  }
1263
1261
  },
1264
1262
  "node_modules/@netlify/build/node_modules/@sindresorhus/is": {
@@ -1884,6 +1882,14 @@
1884
1882
  "url": "https://github.com/sponsors/sindresorhus"
1885
1883
  }
1886
1884
  },
1885
+ "node_modules/@netlify/build/node_modules/uuid": {
1886
+ "version": "8.3.2",
1887
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
1888
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
1889
+ "bin": {
1890
+ "uuid": "dist/bin/uuid"
1891
+ }
1892
+ },
1887
1893
  "node_modules/@netlify/build/node_modules/yocto-queue": {
1888
1894
  "version": "1.0.0",
1889
1895
  "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz",
@@ -1896,9 +1902,9 @@
1896
1902
  }
1897
1903
  },
1898
1904
  "node_modules/@netlify/cache-utils": {
1899
- "version": "4.1.4",
1900
- "resolved": "https://registry.npmjs.org/@netlify/cache-utils/-/cache-utils-4.1.4.tgz",
1901
- "integrity": "sha512-O31A0G5CelEAQ0ffkV6adscCP9/+0X4L3ABaxpBL02cr6XktOJd+imm+MiYF+9h/EYe8qRdwFeghjtlohXhcsQ==",
1905
+ "version": "4.1.5",
1906
+ "resolved": "https://registry.npmjs.org/@netlify/cache-utils/-/cache-utils-4.1.5.tgz",
1907
+ "integrity": "sha512-NqxsL23n5LiLRnmMyAdDWhRJzuNm7OmsnWz7BhykZK2+iJ7PFeMVeZqa0tL4IQRq2JgtkWe7zCSl29035J5ctA==",
1902
1908
  "dependencies": {
1903
1909
  "cpy": "^8.1.0",
1904
1910
  "del": "^6.0.0",
@@ -1911,7 +1917,7 @@
1911
1917
  "readdirp": "^3.4.0"
1912
1918
  },
1913
1919
  "engines": {
1914
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
1920
+ "node": "^14.16.0 || >=16.0.0"
1915
1921
  }
1916
1922
  },
1917
1923
  "node_modules/@netlify/cache-utils/node_modules/globby": {
@@ -2016,9 +2022,9 @@
2016
2022
  }
2017
2023
  },
2018
2024
  "node_modules/@netlify/config": {
2019
- "version": "18.2.3",
2020
- "resolved": "https://registry.npmjs.org/@netlify/config/-/config-18.2.3.tgz",
2021
- "integrity": "sha512-z5pFAAVBfIvTsSv3lchfByWYNajPgiCKEbx3JkU/CtIljCtSR3f0B/GVqpHgCOJ9pfS0idVP60EhDHA2QLeUrg==",
2025
+ "version": "18.2.4",
2026
+ "resolved": "https://registry.npmjs.org/@netlify/config/-/config-18.2.4.tgz",
2027
+ "integrity": "sha512-G9YR6tAXl5FfhaoEcvAivctE3Ds7vv70GgUzJfHEcJbT6rFxSlRl+vcbX6I1TbWEucMknIifvchGTa9f0Ams8w==",
2022
2028
  "dependencies": {
2023
2029
  "chalk": "^5.0.0",
2024
2030
  "cron-parser": "^4.1.0",
@@ -2046,10 +2052,10 @@
2046
2052
  "yargs": "^17.3.1"
2047
2053
  },
2048
2054
  "bin": {
2049
- "netlify-config": "src/bin/main.js"
2055
+ "netlify-config": "lib/bin/main.js"
2050
2056
  },
2051
2057
  "engines": {
2052
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
2058
+ "node": "^14.16.0 || >=16.0.0"
2053
2059
  }
2054
2060
  },
2055
2061
  "node_modules/@netlify/config/node_modules/chalk": {
@@ -2193,9 +2199,9 @@
2193
2199
  }
2194
2200
  },
2195
2201
  "node_modules/@netlify/config/node_modules/is-unicode-supported": {
2196
- "version": "1.2.0",
2197
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
2198
- "integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ==",
2202
+ "version": "1.3.0",
2203
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",
2204
+ "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==",
2199
2205
  "engines": {
2200
2206
  "node": ">=12"
2201
2207
  },
@@ -2370,7 +2376,7 @@
2370
2376
  "uuid": "^9.0.0"
2371
2377
  },
2372
2378
  "engines": {
2373
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
2379
+ "node": "^14.16.0 || >=16.0.0"
2374
2380
  }
2375
2381
  },
2376
2382
  "node_modules/@netlify/edge-bundler/node_modules/env-paths": {
@@ -2598,14 +2604,6 @@
2598
2604
  "url": "https://github.com/sponsors/sindresorhus"
2599
2605
  }
2600
2606
  },
2601
- "node_modules/@netlify/edge-bundler/node_modules/uuid": {
2602
- "version": "9.0.0",
2603
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
2604
- "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==",
2605
- "bin": {
2606
- "uuid": "dist/bin/uuid"
2607
- }
2608
- },
2609
2607
  "node_modules/@netlify/edge-bundler/node_modules/yocto-queue": {
2610
2608
  "version": "1.0.0",
2611
2609
  "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz",
@@ -3126,7 +3124,7 @@
3126
3124
  "semver": "^7.3.4"
3127
3125
  },
3128
3126
  "engines": {
3129
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3127
+ "node": "^14.16.0 || >=16.0.0"
3130
3128
  }
3131
3129
  },
3132
3130
  "node_modules/@netlify/framework-info/node_modules/aggregate-error": {
@@ -3346,16 +3344,16 @@
3346
3344
  }
3347
3345
  },
3348
3346
  "node_modules/@netlify/functions-utils": {
3349
- "version": "4.2.9",
3350
- "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-4.2.9.tgz",
3351
- "integrity": "sha512-zytCz5XQ0wJ3z7RJXsfRqicQHxDiiB4LQQx8WnxpbyWS/EUiAwhPslThsSP18WyrVu1c3NAbW/9E7n3GR90NVg==",
3347
+ "version": "4.2.10",
3348
+ "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-4.2.10.tgz",
3349
+ "integrity": "sha512-OodKCe8fmD/uK3sGkfcBi6bwOuM/V1/gMf//67/4HkIUj1haaEICcJmpw17r7RwyseIwOEvdBV5oHEmSyOhDhA==",
3352
3350
  "dependencies": {
3353
3351
  "@netlify/zip-it-and-ship-it": "^7.1.2",
3354
3352
  "cpy": "^8.1.0",
3355
3353
  "path-exists": "^5.0.0"
3356
3354
  },
3357
3355
  "engines": {
3358
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3356
+ "node": "^14.16.0 || >=16.0.0"
3359
3357
  }
3360
3358
  },
3361
3359
  "node_modules/@netlify/functions-utils/node_modules/path-exists": {
@@ -3367,9 +3365,9 @@
3367
3365
  }
3368
3366
  },
3369
3367
  "node_modules/@netlify/git-utils": {
3370
- "version": "4.1.1",
3371
- "resolved": "https://registry.npmjs.org/@netlify/git-utils/-/git-utils-4.1.1.tgz",
3372
- "integrity": "sha512-nErJowHlUHd36R/1KsXFEh9a5VL98/fr/IjwealZRQK+2E4Pm9t/KBkvR+LAyqWoINrrtkbpwjBRnO4r034OUg==",
3368
+ "version": "4.1.2",
3369
+ "resolved": "https://registry.npmjs.org/@netlify/git-utils/-/git-utils-4.1.2.tgz",
3370
+ "integrity": "sha512-Eee5Ht/bHPUV1cGaPF7kqV5V/78cXX0qyVDRDY72Crouw1F7V7D42yWpyf7/HrIg87LdzYoTmNwff7LMUTG4QA==",
3373
3371
  "dependencies": {
3374
3372
  "execa": "^6.0.0",
3375
3373
  "map-obj": "^5.0.0",
@@ -3378,7 +3376,7 @@
3378
3376
  "path-exists": "^5.0.0"
3379
3377
  },
3380
3378
  "engines": {
3381
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3379
+ "node": "^14.16.0 || >=16.0.0"
3382
3380
  }
3383
3381
  },
3384
3382
  "node_modules/@netlify/git-utils/node_modules/execa": {
@@ -3696,22 +3694,22 @@
3696
3694
  "integrity": "sha512-1n9VvO/9qM7cRB5f7NgSNqeUrovM7j9WVAY7ZQ4LtQuXSquFmO9Fku7WrV3zAUC6v2Y62fxGyJ0fRllYz5uXLw=="
3697
3695
  },
3698
3696
  "node_modules/@netlify/plugins-list": {
3699
- "version": "6.45.0",
3700
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.45.0.tgz",
3701
- "integrity": "sha512-eFvBjP1o+ckujlV81GFDfnMOM9Vz4jeI/ZsRELLH7j1+GnGRrYcdG20THDJCS++l1bWEvX59PC2Je9eyD7fZFA==",
3697
+ "version": "6.46.0",
3698
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.46.0.tgz",
3699
+ "integrity": "sha512-kUX90Eacqko9ni3cepVZKXFTLmhdwES/HDRlMYxyUh+SmvXWRC+h43b11nA0/6M5PEPolUChQOZN9wZql6oJJw==",
3702
3700
  "engines": {
3703
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3701
+ "node": "^14.16.0 || >=16.0.0"
3704
3702
  }
3705
3703
  },
3706
3704
  "node_modules/@netlify/run-utils": {
3707
- "version": "4.0.1",
3708
- "resolved": "https://registry.npmjs.org/@netlify/run-utils/-/run-utils-4.0.1.tgz",
3709
- "integrity": "sha512-6xwmYJWcQkRTdtA/u6WFRYBTuU7j9j+lh7Ld2+6TsUricnyg4orMIKQBdmVYM3tGbzzAidTOjzmbc8XXzQOo6g==",
3705
+ "version": "4.0.2",
3706
+ "resolved": "https://registry.npmjs.org/@netlify/run-utils/-/run-utils-4.0.2.tgz",
3707
+ "integrity": "sha512-UH7AIkZ0TDOj6u2Kf+cTGNlM4twMV43AjJnVCdnUXBzZmFlV6p9ymwu7GYM33iXsid8i6cDBhRWQ03HcfPssIQ==",
3710
3708
  "dependencies": {
3711
3709
  "execa": "^6.0.0"
3712
3710
  },
3713
3711
  "engines": {
3714
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3712
+ "node": "^14.16.0 || >=16.0.0"
3715
3713
  }
3716
3714
  },
3717
3715
  "node_modules/@netlify/run-utils/node_modules/execa": {
@@ -3847,7 +3845,7 @@
3847
3845
  "zip-it-and-ship-it": "dist/bin.js"
3848
3846
  },
3849
3847
  "engines": {
3850
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
3848
+ "node": "^14.16.0 || >=16.0.0"
3851
3849
  }
3852
3850
  },
3853
3851
  "node_modules/@netlify/zip-it-and-ship-it/node_modules/@babel/parser": {
@@ -9014,7 +9012,7 @@
9014
9012
  "typescript": "^4.5.5"
9015
9013
  },
9016
9014
  "engines": {
9017
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
9015
+ "node": "^14.16.0 || >=16.0.0"
9018
9016
  }
9019
9017
  },
9020
9018
  "node_modules/detective-typescript/node_modules/node-source-walk": {
@@ -12066,7 +12064,7 @@
12066
12064
  "semver": "^7.0.0"
12067
12065
  },
12068
12066
  "engines": {
12069
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
12067
+ "node": "^14.16.0 || >=16.0.0"
12070
12068
  }
12071
12069
  },
12072
12070
  "node_modules/git-raw-commits": {
@@ -16004,7 +16002,7 @@
16004
16002
  "qs": "^6.9.6"
16005
16003
  },
16006
16004
  "engines": {
16007
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
16005
+ "node": "^14.16.0 || >=16.0.0"
16008
16006
  }
16009
16007
  },
16010
16008
  "node_modules/netlify-headers-parser": {
@@ -16019,7 +16017,7 @@
16019
16017
  "toml": "^3.0.0"
16020
16018
  },
16021
16019
  "engines": {
16022
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
16020
+ "node": "^14.16.0 || >=16.0.0"
16023
16021
  }
16024
16022
  },
16025
16023
  "node_modules/netlify-headers-parser/node_modules/escape-string-regexp": {
@@ -16074,6 +16072,14 @@
16074
16072
  "uuid": "^8.3.2"
16075
16073
  }
16076
16074
  },
16075
+ "node_modules/netlify-onegraph-internal/node_modules/uuid": {
16076
+ "version": "8.3.2",
16077
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
16078
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
16079
+ "bin": {
16080
+ "uuid": "dist/bin/uuid"
16081
+ }
16082
+ },
16077
16083
  "node_modules/netlify-redirect-parser": {
16078
16084
  "version": "13.0.5",
16079
16085
  "resolved": "https://registry.npmjs.org/netlify-redirect-parser/-/netlify-redirect-parser-13.0.5.tgz",
@@ -16085,7 +16091,7 @@
16085
16091
  "toml": "^3.0.0"
16086
16092
  },
16087
16093
  "engines": {
16088
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
16094
+ "node": "^14.16.0 || >=16.0.0"
16089
16095
  }
16090
16096
  },
16091
16097
  "node_modules/netlify-redirect-parser/node_modules/filter-obj": {
@@ -18225,7 +18231,7 @@
18225
18231
  "precinct": "bin/cli.js"
18226
18232
  },
18227
18233
  "engines": {
18228
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
18234
+ "node": "^14.16.0 || >=16.0.0"
18229
18235
  }
18230
18236
  },
18231
18237
  "node_modules/precinct/node_modules/node-source-walk": {
@@ -21932,9 +21938,9 @@
21932
21938
  }
21933
21939
  },
21934
21940
  "node_modules/uuid": {
21935
- "version": "8.3.2",
21936
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
21937
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
21941
+ "version": "9.0.0",
21942
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
21943
+ "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==",
21938
21944
  "bin": {
21939
21945
  "uuid": "dist/bin/uuid"
21940
21946
  }
@@ -23493,18 +23499,18 @@
23493
23499
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
23494
23500
  },
23495
23501
  "@netlify/build": {
23496
- "version": "27.18.4",
23497
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.18.4.tgz",
23498
- "integrity": "sha512-3DXTuv5X9FWI+6G7uI29GlxkatMqgNyPX9Ey2BiYIi2CSUjILuCealVW+Qo3SV0+afty3teptaUfMQSKa1OLHg==",
23502
+ "version": "27.18.6",
23503
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.18.6.tgz",
23504
+ "integrity": "sha512-ZALZHNwZbRieQ8s8mYPkod1zwqkrOzVphPueW8OyyTymXIEsIBKL0YpYBPOtnwfEHHZJBDUg+Utq7yAT3c+SQQ==",
23499
23505
  "requires": {
23500
23506
  "@bugsnag/js": "^7.0.0",
23501
- "@netlify/cache-utils": "^4.0.0",
23502
- "@netlify/config": "^18.2.3",
23507
+ "@netlify/cache-utils": "^4.1.5",
23508
+ "@netlify/config": "^18.2.4",
23503
23509
  "@netlify/edge-bundler": "^2.2.0",
23504
- "@netlify/functions-utils": "^4.2.9",
23505
- "@netlify/git-utils": "^4.0.0",
23506
- "@netlify/plugins-list": "^6.45.0",
23507
- "@netlify/run-utils": "^4.0.0",
23510
+ "@netlify/functions-utils": "^4.2.10",
23511
+ "@netlify/git-utils": "^4.1.2",
23512
+ "@netlify/plugins-list": "^6.46.0",
23513
+ "@netlify/run-utils": "^4.0.2",
23508
23514
  "@netlify/zip-it-and-ship-it": "^7.1.2",
23509
23515
  "@sindresorhus/slugify": "^2.0.0",
23510
23516
  "@types/node": "^16.0.0",
@@ -23922,6 +23928,11 @@
23922
23928
  "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.10.0.tgz",
23923
23929
  "integrity": "sha512-EUV9jo4sffrwlg8s0zDhP0T2WD3pru5Xi0+HTE3zTUmBaZNhfkite9PdSJwdXLwPVW0jnAHT56pZHIOYckPEiw=="
23924
23930
  },
23931
+ "uuid": {
23932
+ "version": "8.3.2",
23933
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
23934
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
23935
+ },
23925
23936
  "yocto-queue": {
23926
23937
  "version": "1.0.0",
23927
23938
  "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz",
@@ -23930,9 +23941,9 @@
23930
23941
  }
23931
23942
  },
23932
23943
  "@netlify/cache-utils": {
23933
- "version": "4.1.4",
23934
- "resolved": "https://registry.npmjs.org/@netlify/cache-utils/-/cache-utils-4.1.4.tgz",
23935
- "integrity": "sha512-O31A0G5CelEAQ0ffkV6adscCP9/+0X4L3ABaxpBL02cr6XktOJd+imm+MiYF+9h/EYe8qRdwFeghjtlohXhcsQ==",
23944
+ "version": "4.1.5",
23945
+ "resolved": "https://registry.npmjs.org/@netlify/cache-utils/-/cache-utils-4.1.5.tgz",
23946
+ "integrity": "sha512-NqxsL23n5LiLRnmMyAdDWhRJzuNm7OmsnWz7BhykZK2+iJ7PFeMVeZqa0tL4IQRq2JgtkWe7zCSl29035J5ctA==",
23936
23947
  "requires": {
23937
23948
  "cpy": "^8.1.0",
23938
23949
  "del": "^6.0.0",
@@ -24004,9 +24015,9 @@
24004
24015
  }
24005
24016
  },
24006
24017
  "@netlify/config": {
24007
- "version": "18.2.3",
24008
- "resolved": "https://registry.npmjs.org/@netlify/config/-/config-18.2.3.tgz",
24009
- "integrity": "sha512-z5pFAAVBfIvTsSv3lchfByWYNajPgiCKEbx3JkU/CtIljCtSR3f0B/GVqpHgCOJ9pfS0idVP60EhDHA2QLeUrg==",
24018
+ "version": "18.2.4",
24019
+ "resolved": "https://registry.npmjs.org/@netlify/config/-/config-18.2.4.tgz",
24020
+ "integrity": "sha512-G9YR6tAXl5FfhaoEcvAivctE3Ds7vv70GgUzJfHEcJbT6rFxSlRl+vcbX6I1TbWEucMknIifvchGTa9f0Ams8w==",
24010
24021
  "requires": {
24011
24022
  "chalk": "^5.0.0",
24012
24023
  "cron-parser": "^4.1.0",
@@ -24112,9 +24123,9 @@
24112
24123
  "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA=="
24113
24124
  },
24114
24125
  "is-unicode-supported": {
24115
- "version": "1.2.0",
24116
- "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz",
24117
- "integrity": "sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ=="
24126
+ "version": "1.3.0",
24127
+ "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz",
24128
+ "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ=="
24118
24129
  },
24119
24130
  "locate-path": {
24120
24131
  "version": "7.1.1",
@@ -24344,11 +24355,6 @@
24344
24355
  "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
24345
24356
  "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw=="
24346
24357
  },
24347
- "uuid": {
24348
- "version": "9.0.0",
24349
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
24350
- "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg=="
24351
- },
24352
24358
  "yocto-queue": {
24353
24359
  "version": "1.0.0",
24354
24360
  "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz",
@@ -24752,9 +24758,9 @@
24752
24758
  }
24753
24759
  },
24754
24760
  "@netlify/functions-utils": {
24755
- "version": "4.2.9",
24756
- "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-4.2.9.tgz",
24757
- "integrity": "sha512-zytCz5XQ0wJ3z7RJXsfRqicQHxDiiB4LQQx8WnxpbyWS/EUiAwhPslThsSP18WyrVu1c3NAbW/9E7n3GR90NVg==",
24761
+ "version": "4.2.10",
24762
+ "resolved": "https://registry.npmjs.org/@netlify/functions-utils/-/functions-utils-4.2.10.tgz",
24763
+ "integrity": "sha512-OodKCe8fmD/uK3sGkfcBi6bwOuM/V1/gMf//67/4HkIUj1haaEICcJmpw17r7RwyseIwOEvdBV5oHEmSyOhDhA==",
24758
24764
  "requires": {
24759
24765
  "@netlify/zip-it-and-ship-it": "^7.1.2",
24760
24766
  "cpy": "^8.1.0",
@@ -24769,9 +24775,9 @@
24769
24775
  }
24770
24776
  },
24771
24777
  "@netlify/git-utils": {
24772
- "version": "4.1.1",
24773
- "resolved": "https://registry.npmjs.org/@netlify/git-utils/-/git-utils-4.1.1.tgz",
24774
- "integrity": "sha512-nErJowHlUHd36R/1KsXFEh9a5VL98/fr/IjwealZRQK+2E4Pm9t/KBkvR+LAyqWoINrrtkbpwjBRnO4r034OUg==",
24778
+ "version": "4.1.2",
24779
+ "resolved": "https://registry.npmjs.org/@netlify/git-utils/-/git-utils-4.1.2.tgz",
24780
+ "integrity": "sha512-Eee5Ht/bHPUV1cGaPF7kqV5V/78cXX0qyVDRDY72Crouw1F7V7D42yWpyf7/HrIg87LdzYoTmNwff7LMUTG4QA==",
24775
24781
  "requires": {
24776
24782
  "execa": "^6.0.0",
24777
24783
  "map-obj": "^5.0.0",
@@ -24941,14 +24947,14 @@
24941
24947
  "integrity": "sha512-1n9VvO/9qM7cRB5f7NgSNqeUrovM7j9WVAY7ZQ4LtQuXSquFmO9Fku7WrV3zAUC6v2Y62fxGyJ0fRllYz5uXLw=="
24942
24948
  },
24943
24949
  "@netlify/plugins-list": {
24944
- "version": "6.45.0",
24945
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.45.0.tgz",
24946
- "integrity": "sha512-eFvBjP1o+ckujlV81GFDfnMOM9Vz4jeI/ZsRELLH7j1+GnGRrYcdG20THDJCS++l1bWEvX59PC2Je9eyD7fZFA=="
24950
+ "version": "6.46.0",
24951
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.46.0.tgz",
24952
+ "integrity": "sha512-kUX90Eacqko9ni3cepVZKXFTLmhdwES/HDRlMYxyUh+SmvXWRC+h43b11nA0/6M5PEPolUChQOZN9wZql6oJJw=="
24947
24953
  },
24948
24954
  "@netlify/run-utils": {
24949
- "version": "4.0.1",
24950
- "resolved": "https://registry.npmjs.org/@netlify/run-utils/-/run-utils-4.0.1.tgz",
24951
- "integrity": "sha512-6xwmYJWcQkRTdtA/u6WFRYBTuU7j9j+lh7Ld2+6TsUricnyg4orMIKQBdmVYM3tGbzzAidTOjzmbc8XXzQOo6g==",
24955
+ "version": "4.0.2",
24956
+ "resolved": "https://registry.npmjs.org/@netlify/run-utils/-/run-utils-4.0.2.tgz",
24957
+ "integrity": "sha512-UH7AIkZ0TDOj6u2Kf+cTGNlM4twMV43AjJnVCdnUXBzZmFlV6p9ymwu7GYM33iXsid8i6cDBhRWQ03HcfPssIQ==",
24952
24958
  "requires": {
24953
24959
  "execa": "^6.0.0"
24954
24960
  },
@@ -34377,6 +34383,13 @@
34377
34383
  "node-fetch": "^2.6.0",
34378
34384
  "rusha": "^0.8.14",
34379
34385
  "uuid": "^8.3.2"
34386
+ },
34387
+ "dependencies": {
34388
+ "uuid": {
34389
+ "version": "8.3.2",
34390
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
34391
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
34392
+ }
34380
34393
  }
34381
34394
  },
34382
34395
  "netlify-redirect-parser": {
@@ -38849,9 +38862,9 @@
38849
38862
  "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM="
38850
38863
  },
38851
38864
  "uuid": {
38852
- "version": "8.3.2",
38853
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
38854
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
38865
+ "version": "9.0.0",
38866
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
38867
+ "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg=="
38855
38868
  },
38856
38869
  "v8-compile-cache": {
38857
38870
  "version": "2.3.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "11.8.2",
4
+ "version": "12.0.0",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "@whitep4nth3r (https://twitter.com/whitep4nth3r)",
@@ -156,7 +156,7 @@
156
156
  "swyx <shawnthe1@gmail.com> (https://twitter.com/swyx)"
157
157
  ],
158
158
  "engines": {
159
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
159
+ "node": "^14.16.0 || >=16.0.0"
160
160
  },
161
161
  "files": [
162
162
  "/bin",
@@ -223,12 +223,11 @@
223
223
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!**/*/package-lock.json\" \"!.github/**/*.md\""
224
224
  },
225
225
  "dependencies": {
226
- "@netlify/build": "^27.18.4",
227
- "@netlify/config": "^18.2.3",
226
+ "@netlify/build": "^27.18.6",
227
+ "@netlify/config": "^18.2.4",
228
228
  "@netlify/edge-bundler": "^2.2.0",
229
229
  "@netlify/framework-info": "^9.2.0",
230
230
  "@netlify/local-functions-proxy": "^1.1.1",
231
- "@netlify/plugins-list": "^6.45.0",
232
231
  "@netlify/zip-it-and-ship-it": "^7.1.2",
233
232
  "@octokit/rest": "^18.0.0",
234
233
  "@sindresorhus/slugify": "^1.1.0",
@@ -301,7 +300,6 @@
301
300
  "node-version-alias": "^1.0.1",
302
301
  "omit.js": "^2.0.2",
303
302
  "ora": "^5.0.0",
304
- "p-event": "^4.2.0",
305
303
  "p-filter": "^2.1.0",
306
304
  "p-map": "^4.0.0",
307
305
  "p-wait-for": "^3.0.0",
@@ -327,7 +325,7 @@
327
325
  "toml": "^3.0.0",
328
326
  "unixify": "^1.0.0",
329
327
  "update-notifier": "^5.0.0",
330
- "uuid": "^8.0.0",
328
+ "uuid": "^9.0.0",
331
329
  "wait-port": "^0.3.0",
332
330
  "winston": "^3.2.1",
333
331
  "write-file-atomic": "^4.0.0"
@@ -7,7 +7,11 @@ const { error, exit, generateNetlifyGraphJWT, getEnvelopeEnv, getToken, normaliz
7
7
  /**
8
8
  * @param {import('../../lib/build').BuildConfig} options
9
9
  */
10
- const checkOptions = ({ token }) => {
10
+ const checkOptions = ({ cachedConfig: { siteInfo = {} }, token }) => {
11
+ if (!siteInfo.id) {
12
+ error('Could not find the site ID. Please run netlify link.')
13
+ }
14
+
11
15
  if (!token) {
12
16
  error('Could not find the access token. Please run netlify login.')
13
17
  }
@@ -68,7 +72,7 @@ const build = async (options, command) => {
68
72
  await injectEnv(command, { api, buildOptions, context, site, siteInfo })
69
73
  }
70
74
 
71
- const { exitCode } = await runBuild(buildOptions, command, options)
75
+ const { exitCode } = await runBuild(buildOptions)
72
76
  exit(exitCode)
73
77
  }
74
78
 
@@ -375,11 +375,10 @@ const runDeploy = async ({
375
375
  *
376
376
  * @param {object} config
377
377
  * @param {*} config.cachedConfig
378
- * @param {*} config.command
379
378
  * @param {import('commander').OptionValues} config.options The options of the command
380
379
  * @returns
381
380
  */
382
- const handleBuild = async ({ cachedConfig, command, options }) => {
381
+ const handleBuild = async ({ cachedConfig, options }) => {
383
382
  if (!options.build) {
384
383
  return {}
385
384
  }
@@ -389,7 +388,7 @@ const handleBuild = async ({ cachedConfig, command, options }) => {
389
388
  token,
390
389
  options,
391
390
  })
392
- const { configMutations, exitCode, newConfig } = await runBuild(resolvedOptions, command, options)
391
+ const { configMutations, exitCode, newConfig } = await runBuild(resolvedOptions)
393
392
  if (exitCode !== 0) {
394
393
  exit(exitCode)
395
394
  }
@@ -574,7 +573,6 @@ const deploy = async (options, command) => {
574
573
 
575
574
  const { newConfig, configMutations = [] } = await handleBuild({
576
575
  cachedConfig: command.netlify.cachedConfig,
577
- command,
578
576
  options,
579
577
  })
580
578
  const config = newConfig || command.netlify.config
@@ -9,11 +9,11 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "node-fetch": "^2.6.7",
13
- "uuid": "^8.0.0"
12
+ "node-fetch": "^2.6.1",
13
+ "uuid": "^9.0.0"
14
14
  },
15
15
  "engines": {
16
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
16
+ "node": "^14.16.0 || >=16.0.0"
17
17
  }
18
18
  },
19
19
  "node_modules/node-fetch": {
@@ -41,9 +41,9 @@
41
41
  "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
42
42
  },
43
43
  "node_modules/uuid": {
44
- "version": "8.3.2",
45
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
46
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
44
+ "version": "9.0.0",
45
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
46
+ "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==",
47
47
  "bin": {
48
48
  "uuid": "dist/bin/uuid"
49
49
  }
@@ -78,9 +78,9 @@
78
78
  "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o="
79
79
  },
80
80
  "uuid": {
81
- "version": "8.3.2",
82
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
83
- "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="
81
+ "version": "9.0.0",
82
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz",
83
+ "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg=="
84
84
  },
85
85
  "webidl-conversions": {
86
86
  "version": "3.0.1",
@@ -7,7 +7,7 @@
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
9
  "engines": {
10
- "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
10
+ "node": "^14.16.0 || >=16.0.0"
11
11
  },
12
12
  "keywords": [
13
13
  "netlify",
@@ -20,6 +20,6 @@
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
22
  "node-fetch": "^2.6.1",
23
- "uuid": "^8.0.0"
23
+ "uuid": "^9.0.0"
24
24
  }
25
25
  }
@@ -105,9 +105,9 @@
105
105
  }
106
106
  },
107
107
  "node_modules/stripe": {
108
- "version": "10.10.0",
109
- "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.10.0.tgz",
110
- "integrity": "sha512-CINNkuDEmF1rsHoTKS39iZ641NFONKZKllUioeQkRpz7qYPJayp7Xl/V30vbM2n5CTJo3X0FmZ2CychThfPTDA==",
108
+ "version": "10.11.0",
109
+ "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.11.0.tgz",
110
+ "integrity": "sha512-uBkaxrz/nPTENY46HJDjUjhanl2oScUxOJjU8bvmXn1i1NJAjaFcW0Y+NKGODDqTtNF6d+DOc5iB54A0OdPsWQ==",
111
111
  "dependencies": {
112
112
  "@types/node": ">=8.1.0",
113
113
  "qs": "^6.10.3"
@@ -184,9 +184,9 @@
184
184
  }
185
185
  },
186
186
  "stripe": {
187
- "version": "10.10.0",
188
- "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.10.0.tgz",
189
- "integrity": "sha512-CINNkuDEmF1rsHoTKS39iZ641NFONKZKllUioeQkRpz7qYPJayp7Xl/V30vbM2n5CTJo3X0FmZ2CychThfPTDA==",
187
+ "version": "10.11.0",
188
+ "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.11.0.tgz",
189
+ "integrity": "sha512-uBkaxrz/nPTENY46HJDjUjhanl2oScUxOJjU8bvmXn1i1NJAjaFcW0Y+NKGODDqTtNF6d+DOc5iB54A0OdPsWQ==",
190
190
  "requires": {
191
191
  "@types/node": ">=8.1.0",
192
192
  "qs": "^6.10.3"
@@ -105,9 +105,9 @@
105
105
  }
106
106
  },
107
107
  "node_modules/stripe": {
108
- "version": "10.10.0",
109
- "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.10.0.tgz",
110
- "integrity": "sha512-CINNkuDEmF1rsHoTKS39iZ641NFONKZKllUioeQkRpz7qYPJayp7Xl/V30vbM2n5CTJo3X0FmZ2CychThfPTDA==",
108
+ "version": "10.11.0",
109
+ "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.11.0.tgz",
110
+ "integrity": "sha512-uBkaxrz/nPTENY46HJDjUjhanl2oScUxOJjU8bvmXn1i1NJAjaFcW0Y+NKGODDqTtNF6d+DOc5iB54A0OdPsWQ==",
111
111
  "dependencies": {
112
112
  "@types/node": ">=8.1.0",
113
113
  "qs": "^6.10.3"
@@ -184,9 +184,9 @@
184
184
  }
185
185
  },
186
186
  "stripe": {
187
- "version": "10.10.0",
188
- "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.10.0.tgz",
189
- "integrity": "sha512-CINNkuDEmF1rsHoTKS39iZ641NFONKZKllUioeQkRpz7qYPJayp7Xl/V30vbM2n5CTJo3X0FmZ2CychThfPTDA==",
187
+ "version": "10.11.0",
188
+ "resolved": "https://registry.npmjs.org/stripe/-/stripe-10.11.0.tgz",
189
+ "integrity": "sha512-uBkaxrz/nPTENY46HJDjUjhanl2oScUxOJjU8bvmXn1i1NJAjaFcW0Y+NKGODDqTtNF6d+DOc5iB54A0OdPsWQ==",
190
190
  "requires": {
191
191
  "@types/node": ">=8.1.0",
192
192
  "qs": "^6.10.3"
@@ -26,9 +26,9 @@
26
26
  }
27
27
  },
28
28
  "node_modules/@types/node": {
29
- "version": "14.18.29",
30
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.29.tgz",
31
- "integrity": "sha512-LhF+9fbIX4iPzhsRLpK5H7iPdvW8L4IwGciXQIOEcuF62+9nw/VQVsOViAOOGxY3OlOKGLFv0sWwJXdwQeTn6A=="
29
+ "version": "14.18.30",
30
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.30.tgz",
31
+ "integrity": "sha512-8OEyg4oc/CqN5+LbInKNLA8MfbGzbC+k8lVPePXazuwEVrVeQ9gwMDX00HJwWbC7syc1FWRU6Mow0Lm+mibHAQ=="
32
32
  },
33
33
  "node_modules/is-promise": {
34
34
  "version": "4.0.0",
@@ -58,9 +58,9 @@
58
58
  }
59
59
  },
60
60
  "@types/node": {
61
- "version": "14.18.29",
62
- "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.29.tgz",
63
- "integrity": "sha512-LhF+9fbIX4iPzhsRLpK5H7iPdvW8L4IwGciXQIOEcuF62+9nw/VQVsOViAOOGxY3OlOKGLFv0sWwJXdwQeTn6A=="
61
+ "version": "14.18.30",
62
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.30.tgz",
63
+ "integrity": "sha512-8OEyg4oc/CqN5+LbInKNLA8MfbGzbC+k8lVPePXazuwEVrVeQ9gwMDX00HJwWbC7syc1FWRU6Mow0Lm+mibHAQ=="
64
64
  },
65
65
  "is-promise": {
66
66
  "version": "4.0.0",
package/src/lib/build.js CHANGED
@@ -3,8 +3,6 @@ const process = require('process')
3
3
 
4
4
  const netlifyBuildPromise = import('@netlify/build')
5
5
 
6
- const { NETLIFYDEVERR, detectServerSettings, error, log } = require('../utils')
7
-
8
6
  /**
9
7
  * The buildConfig + a missing cachedConfig
10
8
  * @typedef BuildConfig
@@ -44,20 +42,11 @@ const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, js
44
42
 
45
43
  /**
46
44
  * run the build command
47
- * @param {BuildConfig} buildOptions
48
- * @param {import('../commands/base-command').BaseCommand} command
49
- * @param {import('commander').OptionValues} commandOptions
45
+ * @param {BuildConfig} options
50
46
  * @returns
51
47
  */
52
- const runBuild = async (buildOptions, command, commandOptions) => {
48
+ const runBuild = async (options) => {
53
49
  const { default: build } = await netlifyBuildPromise
54
- const { cachedConfig, config, site } = command.netlify
55
- const devConfig = {
56
- framework: '#auto',
57
- ...(config.functionsDirectory && { functions: config.functionsDirectory }),
58
- ...config.dev,
59
- ...commandOptions,
60
- }
61
50
 
62
51
  // If netlify NETLIFY_API_URL is set we need to pass this information to @netlify/build
63
52
  // TODO don't use testOpts, but add real properties to do this.
@@ -67,52 +56,10 @@ const runBuild = async (buildOptions, command, commandOptions) => {
67
56
  scheme: apiUrl.protocol.slice(0, -1),
68
57
  host: apiUrl.host,
69
58
  }
70
- buildOptions = { ...buildOptions, testOpts }
71
- }
72
-
73
- /** @type {Partial<import('../../utils/types').ServerSettings>} */
74
- let settings = {}
75
- try {
76
- settings = await detectServerSettings(devConfig, commandOptions, site.root)
77
-
78
- const defaultConfig = { build: {} }
79
-
80
- if (settings.buildCommand && settings.dist) {
81
- buildOptions.cachedConfig.config.build.command = settings.buildCommand
82
- defaultConfig.build.command = settings.buildCommand
83
- buildOptions.cachedConfig.config.build.publish = settings.buildCommand
84
- defaultConfig.build.publish = settings.dist
85
- }
86
-
87
- if (defaultConfig.build.command && defaultConfig.build.publish) {
88
- buildOptions.defaultConfig = defaultConfig
89
- }
90
-
91
- // If there are plugins that we should be running for this site, add them
92
- // to the config as if they were declared in netlify.toml. We must check
93
- // whether the plugin has already been added by another source (like the
94
- // TOML file or the UI), as we don't want to run the same plugin twice.
95
- if (settings.plugins) {
96
- const { plugins: existingPlugins = [] } = cachedConfig.config
97
- const existingPluginNames = new Set(existingPlugins.map((plugin) => plugin.package))
98
- const newPlugins = settings.plugins
99
- .map((pluginName) => {
100
- if (existingPluginNames.has(pluginName)) {
101
- return
102
- }
103
-
104
- return { package: pluginName, origin: 'config', inputs: {} }
105
- })
106
- .filter(Boolean)
107
-
108
- buildOptions.cachedConfig.config.plugins = [...newPlugins, ...cachedConfig.config.plugins]
109
- }
110
- } catch (detectServerSettingsError) {
111
- log(NETLIFYDEVERR, detectServerSettingsError.message)
112
- error(detectServerSettingsError)
59
+ options = { ...options, testOpts }
113
60
  }
114
61
 
115
- const { configMutations, netlifyConfig: newConfig, severityCode: exitCode } = await build(buildOptions)
62
+ const { configMutations, netlifyConfig: newConfig, severityCode: exitCode } = await build(options)
116
63
  return { exitCode, newConfig, configMutations }
117
64
  }
118
65
 
@@ -1,4 +1,5 @@
1
1
  // @ts-check
2
+ const { once } = require('events')
2
3
  const os = require('os')
3
4
  const process = require('process')
4
5
  const { format, inspect } = require('util')
@@ -9,7 +10,6 @@ const decache = require('decache')
9
10
  const WSL = require('is-wsl')
10
11
  const debounce = require('lodash/debounce')
11
12
  const { default: omit } = require('omit.js')
12
- const pEvent = require('p-event')
13
13
  const terminalLink = require('terminal-link')
14
14
 
15
15
  const { name, version } = require('../../package.json')
@@ -218,7 +218,7 @@ const DEBOUNCE_WAIT = 100
218
218
  const watchDebounced = async (target, { depth, onAdd = () => {}, onChange = () => {}, onUnlink = () => {} }) => {
219
219
  const watcher = chokidar.watch(target, { depth, ignored: /node_modules/, ignoreInitial: true })
220
220
 
221
- await pEvent(watcher, 'ready')
221
+ await once(watcher, 'ready')
222
222
 
223
223
  const debouncedOnChange = debounce(onChange, DEBOUNCE_WAIT)
224
224
  const debouncedOnUnlink = debounce(onUnlink, DEBOUNCE_WAIT)
@@ -158,10 +158,7 @@ const handleStaticServer = async ({ devConfig, options, projectDir }) => {
158
158
  */
159
159
  const getSettingsFromFramework = (framework) => {
160
160
  const {
161
- build: {
162
- directory: dist,
163
- commands: [buildCommand],
164
- },
161
+ build: { directory: dist },
165
162
  dev: {
166
163
  commands: [command],
167
164
  port: frameworkPort,
@@ -175,7 +172,6 @@ const getSettingsFromFramework = (framework) => {
175
172
 
176
173
  return {
177
174
  command,
178
- buildCommand,
179
175
  frameworkPort,
180
176
  dist: staticDir || dist,
181
177
  framework: frameworkName,
@@ -254,7 +250,6 @@ const handleCustomFramework = ({ devConfig }) => {
254
250
  const mergeSettings = async ({ devConfig, frameworkSettings = {} }) => {
255
251
  const {
256
252
  command: frameworkCommand,
257
- buildCommand,
258
253
  frameworkPort: frameworkDetectedPort,
259
254
  dist,
260
255
  framework,
@@ -268,7 +263,6 @@ const mergeSettings = async ({ devConfig, frameworkSettings = {} }) => {
268
263
  const useStaticServer = !(command && frameworkPort)
269
264
  return {
270
265
  command,
271
- buildCommand,
272
266
  frameworkPort: useStaticServer ? await getStaticServerPort({ devConfig }) : frameworkPort,
273
267
  dist: devConfig.publish || dist || getDefaultDist(),
274
268
  framework,
@@ -1,5 +1,6 @@
1
1
  // @ts-check
2
2
  const { Buffer } = require('buffer')
3
+ const { once } = require('events')
3
4
  const { readFile } = require('fs').promises
4
5
  const http = require('http')
5
6
  const https = require('https')
@@ -14,7 +15,6 @@ const { createProxyMiddleware } = require('http-proxy-middleware')
14
15
  const jwtDecode = require('jwt-decode')
15
16
  const locatePath = require('locate-path')
16
17
  const isEmpty = require('lodash/isEmpty')
17
- const pEvent = require('p-event')
18
18
  const pFilter = require('p-filter')
19
19
  const toReadableStream = require('to-readable-stream')
20
20
 
@@ -529,8 +529,7 @@ const startProxy = async function ({
529
529
  })
530
530
 
531
531
  server.listen({ port: settings.port })
532
- // TODO: use events.once when we drop support for Node.js < 12
533
- await pEvent(server, 'listening')
532
+ await once(server, 'listening')
534
533
 
535
534
  const scheme = settings.https ? 'https' : 'http'
536
535
  return `${scheme}://localhost:${settings.port}`