@cloudbase/manager-node 4.6.4 → 4.6.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.
@@ -180,7 +180,7 @@ class CloudRunService {
180
180
  /**
181
181
  * 上传部署包
182
182
  */
183
- const zipFile = await codeToZip(targetPath, { installDependency: true });
183
+ const zipFile = await codeToZip(targetPath, { installDependency: (serverConfig === null || serverConfig === void 0 ? void 0 : serverConfig.InstallDependency) !== undefined ? serverConfig.InstallDependency : true });
184
184
  await (0, utils_1.upload)({
185
185
  url: uploadUrl,
186
186
  file: zipFile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/manager-node",
3
- "version": "4.6.4",
3
+ "version": "4.6.5",
4
4
  "description": "The node manage service api for cloudbase.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -99,7 +99,7 @@ export declare class CloudRunService {
99
99
  deploy(params: {
100
100
  serverName: string;
101
101
  targetPath: string;
102
- serverConfig?: Partial<Pick<ICloudrunServerBaseConfig, 'OpenAccessTypes' | 'Cpu' | 'Mem' | 'MinNum' | 'MaxNum' | 'PolicyDetails' | 'CustomLogs' | 'EnvParams' | 'Port' | 'Dockerfile' | 'BuildDir' | 'InternalAccess' | 'InternalDomain' | 'EntryPoint' | 'Cmd'>>;
102
+ serverConfig?: Partial<Pick<ICloudrunServerBaseConfig, 'OpenAccessTypes' | 'Cpu' | 'Mem' | 'MinNum' | 'MaxNum' | 'PolicyDetails' | 'CustomLogs' | 'EnvParams' | 'Port' | 'Dockerfile' | 'BuildDir' | 'InternalAccess' | 'InternalDomain' | 'EntryPoint' | 'Cmd' | 'InstallDependency'>>;
103
103
  }): Promise<IResponseInfo>;
104
104
  /**
105
105
  * 获取云托管服务模板列表
@@ -245,6 +245,10 @@ export interface ICloudrunServerBaseConfig {
245
245
  * @example ["echo", "test"]
246
246
  */
247
247
  Cmd?: string[];
248
+ /**
249
+ * 是否在线安装依赖,true 则本地不打包 node_modules,依赖在线装(如Docker)
250
+ */
251
+ InstallDependency?: boolean;
248
252
  }
249
253
  export interface IDiffConfigItem {
250
254
  Key: string;