@capawesome/cli 2.1.1-dev.9d51378.1756319026 → 2.1.1-dev.9d51378.1756319028

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 +7 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55,10 +55,13 @@ const captureException = async (error) => {
55
55
  await Sentry.close();
56
56
  };
57
57
  try {
58
- console.log(process.argv);
59
- console.log(process.argv.join(' '));
60
- console.log(process.argv.join(' ').includes('@capawesome/cli'));
61
- if (!process.argv.join(' ').includes('@capawesome/cli')) {
58
+ console.log('All npm env vars:');
59
+ Object.keys(process.env).filter(key => key.startsWith('npm_')).forEach(key => {
60
+ console.log(`${key}: ${process.env[key]}`);
61
+ });
62
+ // Check if executed via npx (which indicates modern usage)
63
+ const isNpxExecution = process.env.npm_command === 'exec' && process.env.npm_lifecycle_event === 'npx';
64
+ if (!isNpxExecution) {
62
65
  consola.warn('The `capawesome` command is deprecated. Please use `@capawesome/cli` instead.');
63
66
  }
64
67
  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.1756319026",
3
+ "version": "2.1.1-dev.9d51378.1756319028",
4
4
  "description": "The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.",
5
5
  "type": "module",
6
6
  "scripts": {