netlify-cli 17.16.4 → 17.17.1
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/dist/commands/base-command.d.ts.map +1 -1
- package/dist/commands/base-command.js +5 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/build-info.d.ts.map +1 -1
- package/dist/utils/build-info.js +6 -0
- package/dist/utils/gh-auth.js +2 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -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,
|
|
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"}
|
package/dist/utils/build-info.js
CHANGED
|
@@ -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);
|
package/dist/utils/gh-auth.js
CHANGED
|
@@ -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
|
|
47
|
-
|
|
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>You’re 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
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.17.1",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "17.
|
|
9
|
+
"version": "17.17.1",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|