netlify-cli 9.13.1 → 9.13.4

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,21 +1,21 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "9.13.1",
3
+ "version": "9.13.4",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "9.13.1",
9
+ "version": "9.13.4",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^26.4.0",
13
+ "@netlify/build": "^26.5.0",
14
14
  "@netlify/config": "^17.0.18",
15
15
  "@netlify/framework-info": "^9.0.2",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
17
17
  "@netlify/plugin-edge-handlers": "^3.0.7",
18
- "@netlify/plugins-list": "^6.16.0",
18
+ "@netlify/plugins-list": "^6.17.0",
19
19
  "@netlify/routing-local-proxy": "^0.34.1",
20
20
  "@netlify/zip-it-and-ship-it": "^5.9.0",
21
21
  "@octokit/rest": "^18.0.0",
@@ -62,7 +62,7 @@
62
62
  "hasbin": "^1.2.3",
63
63
  "hasha": "^5.2.2",
64
64
  "http-proxy": "^1.18.0",
65
- "http-proxy-middleware": "^2.0.4",
65
+ "http-proxy-middleware": "^2.0.0",
66
66
  "https-proxy-agent": "^5.0.0",
67
67
  "inquirer": "^6.5.1",
68
68
  "inquirer-autocomplete-prompt": "^1.0.1",
@@ -126,7 +126,7 @@
126
126
  },
127
127
  "devDependencies": {
128
128
  "@babel/preset-react": "^7.12.13",
129
- "@netlify/eslint-config-node": "^5.1.6",
129
+ "@netlify/eslint-config-node": "^5.1.7",
130
130
  "ava": "^4.0.0",
131
131
  "c8": "^7.11.0",
132
132
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
@@ -149,7 +149,7 @@
149
149
  "tomlify-j0.4": "^3.0.0",
150
150
  "tree-kill": "^1.2.2",
151
151
  "typescript": "^4.4.4",
152
- "verdaccio": "^5.8.0"
152
+ "verdaccio": "^5.4.0"
153
153
  },
154
154
  "engines": {
155
155
  "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
@@ -2359,9 +2359,9 @@
2359
2359
  }
2360
2360
  },
2361
2361
  "node_modules/@netlify/build": {
2362
- "version": "26.4.0",
2363
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.4.0.tgz",
2364
- "integrity": "sha512-Xr4HR7gr+B34x8WwFcFU8+AOVoaPkWBchhPH9K+hJggzFf9CyCodMMwHo5+obkg6aNJtVcGQZTmZXtI9Tu8twQ==",
2362
+ "version": "26.5.0",
2363
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
2364
+ "integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
2365
2365
  "dependencies": {
2366
2366
  "@bugsnag/js": "^7.0.0",
2367
2367
  "@netlify/cache-utils": "^4.0.0",
@@ -2504,9 +2504,9 @@
2504
2504
  }
2505
2505
  },
2506
2506
  "node_modules/@netlify/build/node_modules/chalk": {
2507
- "version": "5.0.0",
2508
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
2509
- "integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ==",
2507
+ "version": "5.0.1",
2508
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
2509
+ "integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w==",
2510
2510
  "engines": {
2511
2511
  "node": "^12.17.0 || ^14.13 || >=16.0.0"
2512
2512
  },
@@ -3452,9 +3452,9 @@
3452
3452
  }
3453
3453
  },
3454
3454
  "node_modules/@netlify/eslint-config-node": {
3455
- "version": "5.1.6",
3456
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.6.tgz",
3457
- "integrity": "sha512-eVxIgtv9DCvcsxsJkQHLhnCo5UJieytr8UgjuiRry2pambzlZxO2CHNg8ynZ027Q+JRkr+4beyGmhgek9ZlUVA==",
3455
+ "version": "5.1.7",
3456
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.7.tgz",
3457
+ "integrity": "sha512-5s1FtyIsfOru4kmsio3FGdApl8KvJTYeVfOT13f9KW5qeLkQfON8KldaJSJsSqJPC7T0ZELNwTEXrZSMihhtSQ==",
3458
3458
  "dev": true,
3459
3459
  "dependencies": {
3460
3460
  "@babel/core": "^7.13.8",
@@ -4317,9 +4317,9 @@
4317
4317
  }
4318
4318
  },
4319
4319
  "node_modules/@netlify/plugins-list": {
4320
- "version": "6.16.0",
4321
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.0.tgz",
4322
- "integrity": "sha512-wfPmtfHW7WY6oivVfkHY6yo2hiMjvsP97/vKIn+mzpjmua+nCC3aIfbU+JJGnH8HwKq7UAbC2bwLNQhvQdYsuQ==",
4320
+ "version": "6.17.0",
4321
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.17.0.tgz",
4322
+ "integrity": "sha512-XQMijnVOxbZwkOeSzUZ8Hwon8WIv9uka5R6+mjJs25lcFiTscA8HqHWjhSHf2xPSrcKopJm4BNJZja5YHV3NQg==",
4323
4323
  "engines": {
4324
4324
  "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
4325
4325
  }
@@ -5569,6 +5569,23 @@
5569
5569
  "url": "https://opencollective.com/verdaccio"
5570
5570
  }
5571
5571
  },
5572
+ "node_modules/@verdaccio/local-storage/node_modules/debug": {
5573
+ "version": "4.3.3",
5574
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
5575
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
5576
+ "dev": true,
5577
+ "dependencies": {
5578
+ "ms": "2.1.2"
5579
+ },
5580
+ "engines": {
5581
+ "node": ">=6.0"
5582
+ },
5583
+ "peerDependenciesMeta": {
5584
+ "supports-color": {
5585
+ "optional": true
5586
+ }
5587
+ }
5588
+ },
5572
5589
  "node_modules/@verdaccio/local-storage/node_modules/mkdirp": {
5573
5590
  "version": "1.0.4",
5574
5591
  "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
@@ -5581,6 +5598,12 @@
5581
5598
  "node": ">=10"
5582
5599
  }
5583
5600
  },
5601
+ "node_modules/@verdaccio/local-storage/node_modules/ms": {
5602
+ "version": "2.1.2",
5603
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
5604
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
5605
+ "dev": true
5606
+ },
5584
5607
  "node_modules/@verdaccio/readme": {
5585
5608
  "version": "10.3.2",
5586
5609
  "resolved": "https://registry.npmjs.org/@verdaccio/readme/-/readme-10.3.2.tgz",
@@ -8026,9 +8049,9 @@
8026
8049
  }
8027
8050
  },
8028
8051
  "node_modules/commander": {
8029
- "version": "9.0.0",
8030
- "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz",
8031
- "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw==",
8052
+ "version": "9.1.0",
8053
+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.1.0.tgz",
8054
+ "integrity": "sha512-i0/MaqBtdbnJ4XQs4Pmyb+oFQl+q0lsAmokVUH92SlSw4fkeAcG3bVon+Qt7hmtF+u3Het6o4VgrcY3qAoEB6w==",
8032
8055
  "engines": {
8033
8056
  "node": "^12.20.0 || >=14"
8034
8057
  }
@@ -9241,9 +9264,9 @@
9241
9264
  "dev": true
9242
9265
  },
9243
9266
  "node_modules/debug": {
9244
- "version": "4.3.3",
9245
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
9246
- "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
9267
+ "version": "4.3.4",
9268
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
9269
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
9247
9270
  "dependencies": {
9248
9271
  "ms": "2.1.2"
9249
9272
  },
@@ -26043,9 +26066,9 @@
26043
26066
  }
26044
26067
  },
26045
26068
  "@netlify/build": {
26046
- "version": "26.4.0",
26047
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.4.0.tgz",
26048
- "integrity": "sha512-Xr4HR7gr+B34x8WwFcFU8+AOVoaPkWBchhPH9K+hJggzFf9CyCodMMwHo5+obkg6aNJtVcGQZTmZXtI9Tu8twQ==",
26069
+ "version": "26.5.0",
26070
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-26.5.0.tgz",
26071
+ "integrity": "sha512-aF6H6CnWcggf5ObDYMzreGq9tKtny95Ys9GhxCMxoQxfhcw3kab984Xj1epk3wlKNt1vJbZ3bndlme3LDG/cOg==",
26049
26072
  "requires": {
26050
26073
  "@bugsnag/js": "^7.0.0",
26051
26074
  "@netlify/cache-utils": "^4.0.0",
@@ -26149,9 +26172,9 @@
26149
26172
  }
26150
26173
  },
26151
26174
  "chalk": {
26152
- "version": "5.0.0",
26153
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.0.tgz",
26154
- "integrity": "sha512-/duVOqst+luxCQRKEo4bNxinsOQtMP80ZYm7mMqzuh5PociNL0PvmHFvREJ9ueYL2TxlHjBcmLCdmocx9Vg+IQ=="
26175
+ "version": "5.0.1",
26176
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.0.1.tgz",
26177
+ "integrity": "sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w=="
26155
26178
  },
26156
26179
  "decompress-response": {
26157
26180
  "version": "5.0.0",
@@ -26703,9 +26726,9 @@
26703
26726
  "integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw=="
26704
26727
  },
26705
26728
  "@netlify/eslint-config-node": {
26706
- "version": "5.1.6",
26707
- "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.6.tgz",
26708
- "integrity": "sha512-eVxIgtv9DCvcsxsJkQHLhnCo5UJieytr8UgjuiRry2pambzlZxO2CHNg8ynZ027Q+JRkr+4beyGmhgek9ZlUVA==",
26729
+ "version": "5.1.7",
26730
+ "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-5.1.7.tgz",
26731
+ "integrity": "sha512-5s1FtyIsfOru4kmsio3FGdApl8KvJTYeVfOT13f9KW5qeLkQfON8KldaJSJsSqJPC7T0ZELNwTEXrZSMihhtSQ==",
26709
26732
  "dev": true,
26710
26733
  "requires": {
26711
26734
  "@babel/core": "^7.13.8",
@@ -27237,9 +27260,9 @@
27237
27260
  }
27238
27261
  },
27239
27262
  "@netlify/plugins-list": {
27240
- "version": "6.16.0",
27241
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.16.0.tgz",
27242
- "integrity": "sha512-wfPmtfHW7WY6oivVfkHY6yo2hiMjvsP97/vKIn+mzpjmua+nCC3aIfbU+JJGnH8HwKq7UAbC2bwLNQhvQdYsuQ=="
27263
+ "version": "6.17.0",
27264
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.17.0.tgz",
27265
+ "integrity": "sha512-XQMijnVOxbZwkOeSzUZ8Hwon8WIv9uka5R6+mjJs25lcFiTscA8HqHWjhSHf2xPSrcKopJm4BNJZja5YHV3NQg=="
27243
27266
  },
27244
27267
  "@netlify/routing-local-proxy": {
27245
27268
  "version": "0.34.1",
@@ -28194,11 +28217,26 @@
28194
28217
  "mkdirp": "1.0.4"
28195
28218
  },
28196
28219
  "dependencies": {
28220
+ "debug": {
28221
+ "version": "4.3.3",
28222
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
28223
+ "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
28224
+ "dev": true,
28225
+ "requires": {
28226
+ "ms": "2.1.2"
28227
+ }
28228
+ },
28197
28229
  "mkdirp": {
28198
28230
  "version": "1.0.4",
28199
28231
  "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",
28200
28232
  "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
28201
28233
  "dev": true
28234
+ },
28235
+ "ms": {
28236
+ "version": "2.1.2",
28237
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
28238
+ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
28239
+ "dev": true
28202
28240
  }
28203
28241
  }
28204
28242
  },
@@ -30039,9 +30077,9 @@
30039
30077
  }
30040
30078
  },
30041
30079
  "commander": {
30042
- "version": "9.0.0",
30043
- "resolved": "https://registry.npmjs.org/commander/-/commander-9.0.0.tgz",
30044
- "integrity": "sha512-JJfP2saEKbQqvW+FI93OYUB4ByV5cizMpFMiiJI8xDbBvQvSkIk0VvQdn1CZ8mqAO8Loq2h0gYTYtDFUZUeERw=="
30080
+ "version": "9.1.0",
30081
+ "resolved": "https://registry.npmjs.org/commander/-/commander-9.1.0.tgz",
30082
+ "integrity": "sha512-i0/MaqBtdbnJ4XQs4Pmyb+oFQl+q0lsAmokVUH92SlSw4fkeAcG3bVon+Qt7hmtF+u3Het6o4VgrcY3qAoEB6w=="
30045
30083
  },
30046
30084
  "common-path-prefix": {
30047
30085
  "version": "3.0.0",
@@ -31035,9 +31073,9 @@
31035
31073
  "dev": true
31036
31074
  },
31037
31075
  "debug": {
31038
- "version": "4.3.3",
31039
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",
31040
- "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",
31076
+ "version": "4.3.4",
31077
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
31078
+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
31041
31079
  "requires": {
31042
31080
  "ms": "2.1.2"
31043
31081
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "9.13.1",
4
+ "version": "9.13.4",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
@@ -26,6 +26,7 @@
26
26
  "Cassidy Williams (https://twitter.com/cassidoo)",
27
27
  "Charlie Depman <cdepman@gmail.com> (depman.dev)",
28
28
  "Charlie Depman <cdepman@gmail.com> (depman.dev)",
29
+ "Charlie Depman <cdepman@gmail.com> (depman.dev)",
29
30
  "Cole Bosmann",
30
31
  "Dan Croak (https://twitter.com/croaky)",
31
32
  "Dan Loewenherz <dan@lionheartsw.com> (https://twitter.com/dwlz)",
@@ -47,6 +48,7 @@
47
48
  "HonkingGoose",
48
49
  "Ian Martorell <ianmartorell@gmail.com>",
49
50
  "Ibrahima",
51
+ "Jackie Macharia (wangoimacharia.dev)",
50
52
  "Jacob Schatz",
51
53
  "Jake Jarvis <jake@jarv.is> (https://twitter.com/jakejarvis)",
52
54
  "Jakob Warkotsch <j.warkotsch@gmail.com>",
@@ -68,6 +70,7 @@
68
70
  "Kyle Rollins <kyleblankrollins@gmail.com> (kyleblankrollins.com)",
69
71
  "Leon Hennings",
70
72
  "Liran Tal <liran.tal@gmail.com> (https://twitter.com/liran_tal)",
73
+ "Louis DeScioli (https://twitter.com/descioli)",
71
74
  "Lukas Holzer <lukas.holzer@netlify.com> (https://twitter.com/luka5c0m)",
72
75
  "Marcus Weiner",
73
76
  "Mark Bello <mark@markbello.dev> (https://markbello.dev)",
@@ -201,12 +204,12 @@
201
204
  "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\" \"!site/package-lock.json\" \"!.github/**/*.md\""
202
205
  },
203
206
  "dependencies": {
204
- "@netlify/build": "^26.4.0",
207
+ "@netlify/build": "^26.5.0",
205
208
  "@netlify/config": "^17.0.18",
206
209
  "@netlify/framework-info": "^9.0.2",
207
210
  "@netlify/local-functions-proxy": "^1.1.1",
208
211
  "@netlify/plugin-edge-handlers": "^3.0.7",
209
- "@netlify/plugins-list": "^6.16.0",
212
+ "@netlify/plugins-list": "^6.17.0",
210
213
  "@netlify/routing-local-proxy": "^0.34.1",
211
214
  "@netlify/zip-it-and-ship-it": "^5.9.0",
212
215
  "@octokit/rest": "^18.0.0",
@@ -313,7 +316,7 @@
313
316
  },
314
317
  "devDependencies": {
315
318
  "@babel/preset-react": "^7.12.13",
316
- "@netlify/eslint-config-node": "^5.1.6",
319
+ "@netlify/eslint-config-node": "^5.1.7",
317
320
  "ava": "^4.0.0",
318
321
  "c8": "^7.11.0",
319
322
  "eslint-plugin-sort-destructure-keys": "^1.3.5",
@@ -29,6 +29,8 @@ const login = async (options, command) => {
29
29
  log()
30
30
  log(`Run ${chalk.cyanBright('netlify status')} for account details`)
31
31
  log()
32
+ log(`or run ${chalk.cyanBright('netlify switch')} to switch accounts`)
33
+ log()
32
34
  log(`To see all available commands run: ${chalk.cyanBright('netlify help')}`)
33
35
  log()
34
36
  return exit()
@@ -5,9 +5,8 @@ const inquirer = require('inquirer')
5
5
  const pick = require('lodash/pick')
6
6
  const parseGitHubUrl = require('parse-github-url')
7
7
  const prettyjson = require('prettyjson')
8
- const terminalLink = require('terminal-link')
9
8
 
10
- const { chalk, error, getRepoData, log, logJson, track, warn } = require('../../utils')
9
+ const { chalk, error, getRepoData, getTerminalLink, log, logJson, track, warn } = require('../../utils')
11
10
  const { configureRepo } = require('../../utils/init/config')
12
11
  const { getGitHubToken } = require('../../utils/init/config-github')
13
12
  const { createRepo, getTemplatesFromGitHub, validateTemplate } = require('../../utils/sites/utils')
@@ -77,7 +76,7 @@ const sitesCreateTemplate = async (repository, options, command) => {
77
76
  if (!exists) {
78
77
  const githubLink = getGitHubLink({ options, templateName })
79
78
  error(
80
- `Could not find template ${chalk.bold(templateName)}. Please verify it exists and you can ${terminalLink(
79
+ `Could not find template ${chalk.bold(templateName)}. Please verify it exists and you can ${getTerminalLink(
81
80
  'access to it on GitHub',
82
81
  githubLink,
83
82
  )}`,
@@ -86,7 +85,7 @@ const sitesCreateTemplate = async (repository, options, command) => {
86
85
  }
87
86
  if (!isTemplate) {
88
87
  const githubLink = getGitHubLink({ options, templateName })
89
- error(`${terminalLink(chalk.bold(templateName), githubLink)} is not a valid GitHub template`)
88
+ error(`${getTerminalLink(chalk.bold(templateName), githubLink)} is not a valid GitHub template`)
90
89
  return
91
90
  }
92
91
 
@@ -8,7 +8,7 @@ version = "0.1.0"
8
8
  [dependencies]
9
9
  aws_lambda_events = "0.5.0"
10
10
  http = "0.2.6"
11
- lambda_runtime = "0.4.1"
11
+ lambda_runtime = "0.5.1"
12
12
  log = "0.4.14"
13
13
  simple_logger = "1.16.0"
14
14
  tokio = "1.17.0"
package/src/lib/build.js CHANGED
@@ -18,7 +18,7 @@ const netlifyBuildPromise = import('@netlify/build')
18
18
  * @param {import('commander').OptionValues} config.options
19
19
  * @returns {BuildConfig}
20
20
  */
21
- const getBuildOptions = ({ cachedConfig, options: { context, debug, dry, json, offline, silent }, token }) => ({
21
+ const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, json, offline, silent }, token }) => ({
22
22
  cachedConfig,
23
23
  token,
24
24
  dry,
@@ -29,6 +29,7 @@ const getBuildOptions = ({ cachedConfig, options: { context, debug, dry, json, o
29
29
  // buffer = true will not stream output
30
30
  buffer: json || silent,
31
31
  offline,
32
+ cwd,
32
33
  featureFlags: {
33
34
  functionsBundlingManifest: true,
34
35
  },
@@ -4,11 +4,10 @@ const process = require('process')
4
4
 
5
5
  const { fetchLatest, fetchVersion, newerVersion, updateAvailable } = require('gh-release-fetch')
6
6
  const isExe = require('isexe')
7
- const terminalLink = require('terminal-link')
8
7
 
9
8
  // cannot directly import from ../utils as it would create a circular dependency.
10
9
  // the file `src/utils/live-tunnel.js` depends on this file
11
- const { NETLIFYDEVWARN, error, log } = require('../utils/command-helpers')
10
+ const { NETLIFYDEVWARN, error, getTerminalLink, log } = require('../utils/command-helpers')
12
11
  const execa = require('../utils/execa')
13
12
 
14
13
  const isWindows = () => process.platform === 'win32'
@@ -125,7 +124,7 @@ const fetchLatestVersion = async ({ destination, execName, extension, latestVers
125
124
  `${execName} is not supported on ${platform} with CPU architecture ${arch}`,
126
125
  )
127
126
 
128
- const issueLink = terminalLink('Create a new CLI issue', createIssueLink.href)
127
+ const issueLink = getTerminalLink('Create a new CLI issue', createIssueLink.href)
129
128
 
130
129
  error(`The operating system ${platform} with the CPU architecture ${arch} is currently not supported!
131
130
 
@@ -3,9 +3,16 @@ const { mkdir } = require('fs').promises
3
3
  const { extname, isAbsolute, join } = require('path')
4
4
  const { env } = require('process')
5
5
 
6
- const terminalLink = require('terminal-link')
7
-
8
- const { NETLIFYDEVERR, NETLIFYDEVLOG, NETLIFYDEVWARN, chalk, log, warn, watchDebounced } = require('../../utils')
6
+ const {
7
+ NETLIFYDEVERR,
8
+ NETLIFYDEVLOG,
9
+ NETLIFYDEVWARN,
10
+ chalk,
11
+ getTerminalLink,
12
+ log,
13
+ warn,
14
+ watchDebounced,
15
+ } = require('../../utils')
9
16
  const { getLogMessage } = require('../log')
10
17
 
11
18
  const { NetlifyFunction } = require('./netlify-function')
@@ -152,7 +159,7 @@ class FunctionsRegistry {
152
159
  this.functions.set(name, func)
153
160
  this.buildFunctionAndWatchFiles(func)
154
161
 
155
- log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} function ${terminalLink(chalk.yellow(name), func.url)}.`)
162
+ log(`${NETLIFYDEVLOG} ${chalk.green('Loaded')} function ${getTerminalLink(chalk.yellow(name), func.url)}.`)
156
163
  }
157
164
 
158
165
  async scan(relativeDirs) {
@@ -10,6 +10,7 @@ const WSL = require('is-wsl')
10
10
  const debounce = require('lodash/debounce')
11
11
  const { default: omit } = require('omit.js')
12
12
  const pEvent = require('p-event')
13
+ const terminalLink = require('terminal-link')
13
14
 
14
15
  const { name, version } = require('../../package.json')
15
16
  const { clearSpinner, startSpinner } = require('../lib/spinner')
@@ -230,11 +231,14 @@ const watchDebounced = async (target, { depth, onAdd = () => {}, onChange = () =
230
231
  return watcher
231
232
  }
232
233
 
234
+ const getTerminalLink = (text, url) => terminalLink(text, url, { fallback: () => `${text} ${url}` })
235
+
233
236
  module.exports = {
234
237
  BANG,
235
238
  chalk,
236
239
  error,
237
240
  exit,
241
+ getTerminalLink,
238
242
  getToken,
239
243
  log,
240
244
  logJson,