@cabloy/cli 3.0.3 → 3.0.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.
@@ -167,8 +167,14 @@ export class LocalHelper {
167
167
  return await getRegistry();
168
168
  }
169
169
  parseBrandPath() {
170
+ const require = createRequire(import.meta.url);
170
171
  const modulePath = require.resolve(`${process.env.CabloyCliBrandName}-cli/package.json`);
171
- return path.join(path.dirname(modulePath), `dist/bin/${process.env.CabloyCliBrandName}.js`);
172
+ // ts or js
173
+ let file = path.join(path.dirname(modulePath), `src/bin/${process.env.CabloyCliBrandName}.ts`);
174
+ if (!fse.existsSync(file)) {
175
+ file = path.join(path.dirname(modulePath), `dist/bin/${process.env.CabloyCliBrandName}.js`);
176
+ }
177
+ return file;
172
178
  }
173
179
  async invokeCli(args, options) {
174
180
  await this.processHelper.spawnExe({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cabloy/cli",
3
3
  "type": "module",
4
- "version": "3.0.3",
4
+ "version": "3.0.5",
5
5
  "description": "@cabloy/cli",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@babel/parser": "^7.26.5",
30
- "@cabloy/word-utils": "^1.0.8",
30
+ "@cabloy/word-utils": "^2.0.0",
31
31
  "@npmcli/config": "^8.3.4",
32
32
  "@zhennann/common-bin": "^4.0.0",
33
33
  "@zhennann/ejs": "^3.0.1",
@@ -44,9 +44,9 @@
44
44
  "semver": "^7.6.2",
45
45
  "tmp": "^0.2.3",
46
46
  "urllib": "^3.24.0",
47
+ "@cabloy/module-info": "^1.2.10",
47
48
  "@cabloy/module-glob": "^5.1.12",
48
- "@cabloy/process-helper": "^2.0.2",
49
- "@cabloy/module-info": "^1.2.10"
49
+ "@cabloy/process-helper": "^2.0.3"
50
50
  },
51
51
  "gitHead": "2d40c063c115b230fdbc89f5a78b4412ebd0dfc9"
52
52
  }