@skillrecordings/cli 0.2.0 → 0.2.1

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/bin/skill.mjs +3 -9
  2. package/package.json +1 -1
package/bin/skill.mjs CHANGED
@@ -5,15 +5,9 @@ import { dirname, join } from 'node:path'
5
5
  const __dirname = dirname(fileURLToPath(import.meta.url))
6
6
  const cliDir = join(__dirname, '..')
7
7
 
8
- // Commands that don't need database/secrets
9
- const noSecretsNeeded = process.argv.some((a) =>
10
- ['--help', '-h', '--version', '-V', 'auth'].includes(a)
11
- )
12
-
13
- // Skip env validation for commands that don't need it
14
- if (noSecretsNeeded) {
15
- process.env.SKIP_ENV_VALIDATION = '1'
16
- }
8
+ // Skip env validation at import time - let commands fail at runtime if they need missing vars
9
+ // This allows help, auth, and other non-db commands to work without DATABASE_URL
10
+ process.env.SKIP_ENV_VALIDATION = '1'
17
11
 
18
12
  // Load env from CLI package directory
19
13
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillrecordings/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skill": "./bin/skill.mjs"