netlify-cli 17.33.3 → 17.33.5
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/build/build.d.ts.map +1 -1
- package/dist/commands/build/build.js +2 -6
- package/dist/commands/deploy/deploy.d.ts.map +1 -1
- package/dist/commands/deploy/deploy.js +5 -1
- package/dist/lib/build.d.ts +3 -1
- package/dist/lib/build.d.ts.map +1 -1
- package/dist/lib/build.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/build-info.d.ts +7 -0
- package/dist/utils/build-info.d.ts.map +1 -1
- package/dist/utils/build-info.js +22 -0
- package/dist/utils/deploy/deploy-site.d.ts.map +1 -1
- package/dist/utils/deploy/deploy-site.js +3 -1
- package/dist/utils/deploy/hash-fns.d.ts +1 -26
- package/dist/utils/deploy/hash-fns.d.ts.map +1 -1
- package/dist/utils/deploy/hash-fns.js +1 -1
- package/dist/utils/feature-flags.d.ts.map +1 -1
- package/dist/utils/feature-flags.js +2 -1
- package/functions-templates/typescript/hello-world/package-lock.json +6 -6
- package/npm-shrinkwrap.json +160 -147
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Settings } from '@netlify/build-info';
|
|
2
2
|
import BaseCommand from '../commands/base-command.js';
|
|
3
|
+
import { $TSFixMe } from '../commands/types.js';
|
|
3
4
|
/**
|
|
4
5
|
* Detects and filters the build setting for a project and a command
|
|
5
6
|
*/
|
|
@@ -11,4 +12,10 @@ export declare function detectBuildSettings(command: BaseCommand): Promise<Setti
|
|
|
11
12
|
* @param type The type of command (dev or build)
|
|
12
13
|
*/
|
|
13
14
|
export declare const detectFrameworkSettings: (command: BaseCommand, type?: 'dev' | 'build') => Promise<Settings | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* Generates a defaultConfig for @netlify/build based on the settings from the heuristics
|
|
17
|
+
* Returns the defaultConfig in the format that @netlify/build expects (json version of toml)
|
|
18
|
+
* @param settings The settings from the heuristics
|
|
19
|
+
*/
|
|
20
|
+
export declare const getDefaultConfig: (settings?: Settings) => $TSFixMe | undefined;
|
|
14
21
|
//# sourceMappingURL=build-info.d.ts.map
|
|
@@ -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;AAK9C,OAAO,WAAW,MAAM,6BAA6B,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;AAK9C,OAAO,WAAW,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAmC/C;;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,CA0D9B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,cAAe,QAAQ,KAAG,QAAQ,GAAG,SAqBjE,CAAA"}
|
package/dist/utils/build-info.js
CHANGED
|
@@ -99,3 +99,25 @@ command = "${chosenSettings.devCommand}"
|
|
|
99
99
|
return chosenSettings;
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* Generates a defaultConfig for @netlify/build based on the settings from the heuristics
|
|
104
|
+
* Returns the defaultConfig in the format that @netlify/build expects (json version of toml)
|
|
105
|
+
* @param settings The settings from the heuristics
|
|
106
|
+
*/
|
|
107
|
+
export const getDefaultConfig = (settings) => {
|
|
108
|
+
if (!settings) {
|
|
109
|
+
return undefined;
|
|
110
|
+
}
|
|
111
|
+
// TODO: We need proper types for the netlify configuration
|
|
112
|
+
const config = { build: {} };
|
|
113
|
+
if (settings.buildCommand) {
|
|
114
|
+
config.build.command = settings.buildCommand;
|
|
115
|
+
config.build.commandOrigin = 'default';
|
|
116
|
+
}
|
|
117
|
+
if (settings.dist) {
|
|
118
|
+
config.build.publish = settings.dist;
|
|
119
|
+
config.build.publishOrigin = 'default';
|
|
120
|
+
}
|
|
121
|
+
config.plugins = settings.plugins_recommended?.map((plugin) => ({ package: plugin })) || [];
|
|
122
|
+
return config;
|
|
123
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy-site.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/deploy-site.ts"],"names":[],"mappings":"AAKA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAwBvD,eAAO,MAAM,UAAU,YACZ,WAAW,OACf,QAAQ;;;;;;yBA4CS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;gBAI7D,MAAM;;;;;
|
|
1
|
+
{"version":3,"file":"deploy-site.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/deploy-site.ts"],"names":[],"mappings":"AAKA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAwBvD,eAAO,MAAM,UAAU,YACZ,WAAW,OACf,QAAQ;;;;;;yBA4CS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI;;;;gBAI7D,MAAM;;;;;EAyIrB,CAAA"}
|
|
@@ -89,7 +89,9 @@ skipFunctionsCache, statusCb = () => {
|
|
|
89
89
|
throw new Error('No files or functions to deploy');
|
|
90
90
|
}
|
|
91
91
|
if (functionsWithNativeModules.length !== 0) {
|
|
92
|
-
const functionsWithNativeModulesMessage = functionsWithNativeModules
|
|
92
|
+
const functionsWithNativeModulesMessage = functionsWithNativeModules
|
|
93
|
+
.map(({ name }) => `- ${name}`)
|
|
94
|
+
.join('\n');
|
|
93
95
|
warn(`Modules with native dependencies\n
|
|
94
96
|
${functionsWithNativeModulesMessage}
|
|
95
97
|
|
|
@@ -12,31 +12,6 @@ declare const hashFns: (command: BaseCommand, directories: string[], config: {
|
|
|
12
12
|
skipFunctionsCache: $TSFixMe;
|
|
13
13
|
statusCb: $TSFixMe;
|
|
14
14
|
tmpDir: $TSFixMe;
|
|
15
|
-
}) => Promise
|
|
16
|
-
functions: {};
|
|
17
|
-
functionsWithNativeModules: never[];
|
|
18
|
-
shaMap: {};
|
|
19
|
-
functionSchedules?: undefined;
|
|
20
|
-
fnShaMap?: undefined;
|
|
21
|
-
fnConfig?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
functionSchedules: ("" | {
|
|
24
|
-
name: string;
|
|
25
|
-
cron: string;
|
|
26
|
-
} | undefined)[];
|
|
27
|
-
functions: {};
|
|
28
|
-
functionsWithNativeModules: (Omit<import("@netlify/zip-it-and-ship-it/dist/function.js").FunctionArchive, "runtime"> & {
|
|
29
|
-
routes?: import("@netlify/zip-it-and-ship-it").ExtendedRoute[] | undefined;
|
|
30
|
-
excludedRoutes?: import("@netlify/zip-it-and-ship-it").Route[] | undefined;
|
|
31
|
-
runtime: import("@netlify/zip-it-and-ship-it").RuntimeName;
|
|
32
|
-
schedule?: string | undefined;
|
|
33
|
-
runtimeAPIVersion?: number | undefined;
|
|
34
|
-
} & {
|
|
35
|
-
buildData?: unknown;
|
|
36
|
-
})[];
|
|
37
|
-
fnShaMap: {};
|
|
38
|
-
fnConfig: {};
|
|
39
|
-
shaMap?: undefined;
|
|
40
|
-
}>;
|
|
15
|
+
}) => Promise<$TSFixMe>;
|
|
41
16
|
export default hashFns;
|
|
42
17
|
//# sourceMappingURL=hash-fns.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"AAUA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAoGlD,QAAA,MAAM,OAAO,YACF,WAAW,eACP,MAAM,EAAE,UACb;IACN,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,QAAQ,CAAA;IACzB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAA;IACtB,OAAO,EAAE,QAAQ,CAAA;IACjB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;CACjB
|
|
1
|
+
{"version":3,"file":"hash-fns.d.ts","sourceRoot":"","sources":["../../../src/utils/deploy/hash-fns.ts"],"names":[],"mappings":"AAUA,OAAO,WAAW,MAAM,gCAAgC,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAoGlD,QAAA,MAAM,OAAO,YACF,WAAW,eACP,MAAM,EAAE,UACb;IACN,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,QAAQ,CAAA;IACzB,wBAAwB;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,QAAQ,CAAA;IACtB,OAAO,EAAE,QAAQ,CAAA;IACjB,kBAAkB,EAAE,QAAQ,CAAA;IAC5B,QAAQ,EAAE,QAAQ,CAAA;IAClB,MAAM,EAAE,QAAQ,CAAA;CACjB,KACA,QAAQ,QAAQ,CAuGlB,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -95,7 +95,7 @@ const hashFns = async (command, directories, config) => {
|
|
|
95
95
|
statusCb,
|
|
96
96
|
tmpDir,
|
|
97
97
|
});
|
|
98
|
-
const fileObjs = functionZips.map(({ buildData, displayName, generator, invocationMode, path: functionPath, priority, runtime, runtimeVersion,
|
|
98
|
+
const fileObjs = functionZips.map(({ buildData, displayName, generator, invocationMode, path: functionPath, priority, runtime, runtimeVersion, timeout, trafficRules, }) => ({
|
|
99
99
|
filepath: functionPath,
|
|
100
100
|
root: tmpDir,
|
|
101
101
|
relname: path.relative(tmpDir, functionPath),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../src/utils/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,oBAAoB,aAAc,MAAM,oBAAa,OACa,CAAA;AAE/E;;GAEG;AACH,eAAO,MAAM,2BAA2B,aAAc;IACpD,aAAa,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,CAAA;CAC1D,KAAG,
|
|
1
|
+
{"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../src/utils/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,oBAAoB,aAAc,MAAM,oBAAa,OACa,CAAA;AAE/E;;GAEG;AACH,eAAO,MAAM,2BAA2B,aAAc;IACpD,aAAa,CAAC,EAAE,OAAO,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,CAAA;CAC1D,KAAG,YAMF,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC,CAAA"}
|
|
@@ -16,8 +16,9 @@ export const isFeatureFlagEnabled = (flagName, siteInfo) => Boolean(siteInfo.fea
|
|
|
16
16
|
* Retrieves all Feature flags from the siteInfo
|
|
17
17
|
*/
|
|
18
18
|
export const getFeatureFlagsFromSiteInfo = (siteInfo) => ({
|
|
19
|
-
...
|
|
19
|
+
...siteInfo.feature_flags,
|
|
20
20
|
// see https://github.com/netlify/pod-dev-foundations/issues/581#issuecomment-1731022753
|
|
21
21
|
zisi_golang_use_al2: isFeatureFlagEnabled('cli_golang_use_al2', siteInfo),
|
|
22
22
|
netlify_build_frameworks_api: true,
|
|
23
|
+
project_ceruledge_ui: true,
|
|
23
24
|
});
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"node_modules/@types/node": {
|
|
49
|
-
"version": "20.
|
|
50
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.
|
|
51
|
-
"integrity": "sha512-
|
|
49
|
+
"version": "20.14.10",
|
|
50
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.10.tgz",
|
|
51
|
+
"integrity": "sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"undici-types": "~5.26.4"
|
|
54
54
|
}
|
|
@@ -100,9 +100,9 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"@types/node": {
|
|
103
|
-
"version": "20.
|
|
104
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.
|
|
105
|
-
"integrity": "sha512-
|
|
103
|
+
"version": "20.14.10",
|
|
104
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.14.10.tgz",
|
|
105
|
+
"integrity": "sha512-MdiXf+nDuMvY0gJKxyfZ7/6UFsETO7mGKF54MVD/ekJS6HdFtpZFBgrh6Pseu64XTb2MLyFPlbW6hj8HYRQNOQ==",
|
|
106
106
|
"requires": {
|
|
107
107
|
"undici-types": "~5.26.4"
|
|
108
108
|
}
|