@notis_ai/cli 0.2.20 → 0.2.22

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,9 +46,15 @@ export function detectLocale(): Locale {
46
46
  return /^fr\b/i.test(lang) ? 'fr' : 'en';
47
47
  }
48
48
 
49
- function defaultStrict(): boolean {
50
- const env = (globalThis as { process?: { env?: Record<string, string | undefined> } }).process?.env;
51
- return env?.NODE_ENV !== 'production';
49
+ // Bundlers replace only the literal `process.env.NODE_ENV`, so a production
50
+ // build drops a clashing shortcut instead of throwing and blanking the view.
51
+ // Where nothing replaces it and no `process` exists, stay strict.
52
+ export function defaultStrict(): boolean {
53
+ try {
54
+ return process.env.NODE_ENV !== 'production';
55
+ } catch {
56
+ return true;
57
+ }
52
58
  }
53
59
 
54
60
  function consume(event: KeyboardEvent, immediate = false): void {