netlify-cli 17.16.4 → 17.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"build-info.d.ts","sourceRoot":"","sources":["../../src/utils/build-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAI9C,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAmCrD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAWnF;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YACzB,WAAW,SACd,KAAK,GAAG,OAAO,KACpB,QAAQ,QAAQ,GAAG,SAAS,CAkC9B,CAAA"}
1
+ {"version":3,"file":"build-info.d.ts","sourceRoot":"","sources":["../../src/utils/build-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAI9C,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAmCrD;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAWnF;AAED;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,YACzB,WAAW,SACd,KAAK,GAAG,OAAO,KACpB,QAAQ,QAAQ,GAAG,SAAS,CAyC9B,CAAA"}
@@ -52,6 +52,12 @@ export const detectFrameworkSettings = async (command, type = 'dev') => {
52
52
  if (settings.length === 1) {
53
53
  return settings[0];
54
54
  }
55
+ if (type === 'build' && command.netlify.config?.build?.command?.length) {
56
+ return {
57
+ ...settings[0],
58
+ buildCommand: command.netlify.config.build.command,
59
+ };
60
+ }
55
61
  if (settings.length > 1) {
56
62
  // multiple matching detectors, make the user choose
57
63
  const scriptInquirerOptions = formatSettingsArrForInquirer(settings, type);
@@ -43,8 +43,8 @@ export const authWithNetlify = async () => {
43
43
  if (parameters.get('token')) {
44
44
  // @ts-expect-error TS(2722) FIXME: Cannot invoke an object which is possibly 'undefin... Remove this comment to see the full error message
45
45
  deferredResolve(Object.fromEntries(parameters));
46
- res.end(`${"<html><head><script>if(history.replaceState){history.replaceState({},'','/')}</script><style>html{font-family:sans-serif;background:#0e1e25}body{overflow:hidden;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;width:100vw;}h3{margin:0}.card{position:relative;display:flex;flex-direction:column;width:75%;max-width:364px;padding:24px;background:white;color:rgb(14,30,37);border-radius:8px;box-shadow:0 2px 4px 0 rgba(14,30,37,.16);}</style></head>" +
47
- "<body><div class=card><h3>Logged In</h3><p>You're now logged into Netlify CLI with your "}${parameters.get('provider')} credentials. Please close this window.</p></div>`);
46
+ res.end(`${"<html><head><title>Logged in</title><script>if(history.replaceState){history.replaceState({},'','/')}</script><style>html{font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';line-height:1.5;background:rgb(18 24 31)}body{overflow:hidden;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;width:100vw;}h3{margin:0}p{margin: 1rem 0 0.5rem}.card{position:relative;display:flex;flex-direction:column;width:75%;max-width:364px;padding:24px;background:white;color:rgb(18 24 31);border-radius:8px;box-shadow:rgb(6 11 16 / 20%) 0px 16px 24px, rgb(6 11 16 / 30%) 0px 6px 30px, rgb(6 11 16 / 40%) 0px 8px 10px;}</style></head>" +
47
+ '<body><div class=card><h3>Logged in</h3><p>Youre now logged into Netlify CLI with your '}${parameters.get('provider')} credentials. Please close this window.</p></div>`);
48
48
  server.close();
49
49
  return;
50
50
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "17.16.4",
3
+ "version": "17.17.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "17.16.4",
9
+ "version": "17.17.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "17.16.4",
4
+ "version": "17.17.0",
5
5
  "author": "Netlify Inc.",
6
6
  "type": "module",
7
7
  "engines": {