@capawesome/cli 2.1.1-dev.9d51378.1756319025 → 2.1.1-dev.9d51378.1756319027

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55,7 +55,14 @@ const captureException = async (error) => {
55
55
  await Sentry.close();
56
56
  };
57
57
  try {
58
- if (!process.argv.join(' ').includes('@capawesome/cli')) {
58
+ console.log('process.argv:', process.argv);
59
+ console.log('npm_execpath:', process.env.npm_execpath);
60
+ console.log('npm_command:', process.env.npm_command);
61
+ console.log('npm_lifecycle_event:', process.env.npm_lifecycle_event);
62
+ console.log('_:', process.env._);
63
+ // Check if executed via npx @capawesome/cli
64
+ const isNpxCapawesomeCli = process.env.npm_command === 'exec' && process.env._ && process.env._.includes('@capawesome/cli');
65
+ if (!process.argv.join(' ').includes('@capawesome/cli') && !isNpxCapawesomeCli) {
59
66
  consola.warn('The `capawesome` command is deprecated. Please use `@capawesome/cli` instead.');
60
67
  }
61
68
  const result = processConfig(config, process.argv.slice(2));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/cli",
3
- "version": "2.1.1-dev.9d51378.1756319025",
3
+ "version": "2.1.1-dev.9d51378.1756319027",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "type": "module",
6
6
  "scripts": {