@cloudbase/cli 2.1.7-alpha.0 → 2.1.8

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "typescript.tsdk": "node_modules\\typescript\\lib"
3
+ }
package/bin/cloudbase.js CHANGED
File without changes
package/bin/tcb.js CHANGED
File without changes
@@ -30,3 +30,4 @@ __exportStar(require("./code-download"), exports);
30
30
  __exportStar(require("./version"), exports);
31
31
  __exportStar(require("./concurrency"), exports);
32
32
  __exportStar(require("./alias"), exports);
33
+ __exportStar(require("./layer"), exports);
@@ -50,7 +50,7 @@ let CreateFileLayer = class CreateFileLayer extends common_1.Command {
50
50
  const { file } = options;
51
51
  const layerName = `${alias}_${envId}`;
52
52
  const filePath = path_1.default.resolve(file);
53
- const runtimes = ['Nodejs8.9', 'Php7', 'Java8'];
53
+ const runtimes = ['Nodejs12.16', 'Nodejs8.9', 'Php7', 'Java8'];
54
54
  const loading = (0, utils_1.loadingFactory)();
55
55
  loading.start('文件层创建中...');
56
56
  yield (0, function_1.createLayer)({
@@ -22,7 +22,7 @@ function createLayer(options) {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  const { contentPath = '', layerName, base64Content = '', runtimes = [] } = options;
24
24
  (0, utils_1.checkFullAccess)(contentPath);
25
- const validRuntime = ['Nodejs8.9', 'Php7', 'Java8'];
25
+ const validRuntime = ['Nodejs8.9', 'Php7', 'Java8', 'Nodejs12.16'];
26
26
  if (runtimes.some(item => validRuntime.indexOf(item) === -1)) {
27
27
  throw new toolbox_1.CloudBaseError(`Invalid runtime value. Now only support: ${validRuntime.join(', ')}`);
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cli",
3
- "version": "2.1.7-alpha.0",
3
+ "version": "2.1.8",
4
4
  "description": "cli tool for cloudbase",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -14,3 +14,4 @@ export * from './code-download';
14
14
  export * from './version';
15
15
  export * from './concurrency';
16
16
  export * from './alias';
17
+ export * from './layer';