@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.
- package/dist/index.js +7 -4
- 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(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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