vona-cli-set-api 1.0.426 → 1.0.428

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.
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "vona": "^5.0.240"
49
+ "vona": "^5.0.241"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@cabloy/lint": "^5.0.16",
package/dist/index.js CHANGED
@@ -1025,6 +1025,7 @@ class CliBinTsc extends BeanCliBase {
1025
1025
 
1026
1026
  const __ThisSetName__ = 'api';
1027
1027
 
1028
+ let __snippetsPathPrefix;
1028
1029
  class CliCreateBean extends BeanCliBase {
1029
1030
  async execute() {
1030
1031
  const {
@@ -1106,12 +1107,20 @@ class CliCreateBean extends BeanCliBase {
1106
1107
  return result;
1107
1108
  }
1108
1109
  _combineBoilerplatesOrSnippetsPath(type, moduleRoot, scenePath) {
1110
+ // boilerplate
1109
1111
  if (type === 'boilerplate') {
1110
1112
  return path.join(moduleRoot, 'cli', scenePath);
1111
1113
  }
1114
+ // snippets
1115
+ if (__snippetsPathPrefix) {
1116
+ return path.join(moduleRoot, __snippetsPathPrefix, scenePath);
1117
+ }
1112
1118
  let snippetsPath = path.join(moduleRoot, 'dist-cli', scenePath);
1113
1119
  if (!fse.existsSync(snippetsPath)) {
1114
1120
  snippetsPath = path.join(moduleRoot, 'cli', scenePath);
1121
+ __snippetsPathPrefix = 'cli';
1122
+ } else {
1123
+ __snippetsPathPrefix = 'dist-cli';
1115
1124
  }
1116
1125
  return snippetsPath;
1117
1126
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-cli-set-api",
3
3
  "type": "module",
4
- "version": "1.0.426",
4
+ "version": "1.0.428",
5
5
  "description": "vona cli-set-api",
6
6
  "publishConfig": {
7
7
  "access": "public"