@ae-studio/px
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "@ae-studio/px", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -39,3 +39,5 @@ import chalk from 'chalk' | ||
const packageJson = await getProjectPackageJson() | ||
return packageJson?.scripts ? Object.keys(packageJson.scripts) : [] | ||
return packageJson && packageJson.scripts | ||
? Object.keys(packageJson.scripts) | ||
: [] | ||
} |
@@ -40,3 +40,3 @@ import fs from 'node:fs/promises' | ||
if (hasLockFile || options?.ignoreLockFile) { | ||
if (hasLockFile || (options && options.ignoreLockFile)) { | ||
return currentDir | ||
@@ -43,0 +43,0 @@ } |
19017
420