@cloudbase/cli 2.6.0-alpha.3 → 2.6.0-alpha.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.
- package/.yarn/cache/@cloudbase-functions-framework-npm-1.0.0-beta.3-68c4d9136e-3d11f97edc.zip +0 -0
- package/.yarn/cache/@types-ws-npm-8.5.12-90c42288cf-ddefb6ad16.zip +0 -0
- package/.yarn/cache/ws-npm-8.18.0-56f68bc4d6-91d4d35bc9.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/lib/commands/fun/base.js +7 -2
- package/package.json +2 -2
- package/.yarn/cache/@cloudbase-functions-framework-npm-0.0.12-a0ad7a7857-95be5c50de.zip +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/lib/commands/fun/base.js
CHANGED
|
@@ -121,6 +121,10 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
121
121
|
{
|
|
122
122
|
flags: '--source <source>',
|
|
123
123
|
desc: '目标函数文件所在目录路径。默认为当前路径'
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
flags: '--includeNodeModules',
|
|
127
|
+
desc: '包含本地 node_modules 目录,默认为 false 不包含'
|
|
124
128
|
}
|
|
125
129
|
],
|
|
126
130
|
requiredEnvId: false,
|
|
@@ -130,7 +134,7 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
130
134
|
}
|
|
131
135
|
execute(envId, log, options) {
|
|
132
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
133
|
-
let { serviceName, appId, source } = options;
|
|
137
|
+
let { serviceName, appId, source, includeNodeModules = false } = options;
|
|
134
138
|
const target = 'main';
|
|
135
139
|
source = path_1.default.resolve(source || process.cwd());
|
|
136
140
|
const loadResult = yield (0, functions_framework_1.loadUserFunction)(source, target);
|
|
@@ -224,7 +228,8 @@ let FunDeployCommand = class FunDeployCommand extends common_1.Command {
|
|
|
224
228
|
const { PackageName, PackageVersion } = yield (0, run_1.packageDeploy)({
|
|
225
229
|
envId,
|
|
226
230
|
serviceName,
|
|
227
|
-
filePath: source
|
|
231
|
+
filePath: source,
|
|
232
|
+
fileToIgnore: includeNodeModules ? [] : ['node_modules/**/*']
|
|
228
233
|
});
|
|
229
234
|
packageName = PackageName;
|
|
230
235
|
packageVersion = PackageVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/cli",
|
|
3
|
-
"version": "2.6.0-alpha.
|
|
3
|
+
"version": "2.6.0-alpha.4",
|
|
4
4
|
"description": "cli tool for cloudbase",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@cloudbase/cloud-api": "^0.5.5",
|
|
35
35
|
"@cloudbase/framework-core": "^1.9.7",
|
|
36
|
-
"@cloudbase/functions-framework": "^0.0.
|
|
36
|
+
"@cloudbase/functions-framework": "^1.0.0-beta.3",
|
|
37
37
|
"@cloudbase/lowcode-cli": "^0.21.1",
|
|
38
38
|
"@cloudbase/manager-node": "4.2.8",
|
|
39
39
|
"@cloudbase/toolbox": "^0.7.5",
|