修复原生壳锁路径守卫格式

用Prettier忽略保持根锁路径声明单行

恢复check-native-shells精确源码守卫匹配
This commit is contained in:
2026-08-22 17:25:45 +08:00
parent d352815f29
commit b4788d6f87
2 changed files with 4 additions and 8 deletions
+2 -4
View File
@@ -7,10 +7,8 @@ const packagePath = new URL('../package.json', import.meta.url);
const packageConfig = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
const rootPackagePath = new URL('../../../package.json', import.meta.url);
const rootPackageConfig = JSON.parse(fs.readFileSync(rootPackagePath, 'utf8'));
const rootPackageLockPath = new URL(
'../../../package-lock.json',
import.meta.url,
);
// prettier-ignore
const rootPackageLockPath = new URL('../../../package-lock.json', import.meta.url);
const rootPackageLock = JSON.parse(
fs.readFileSync(rootPackageLockPath, 'utf8'),
);
+2 -4
View File
@@ -334,10 +334,8 @@ const easConfigPath = new URL('../eas.json', import.meta.url);
const easConfig = JSON.parse(fs.readFileSync(easConfigPath, 'utf8'));
const rootPackagePath = new URL('../../../package.json', import.meta.url);
const rootPackageConfig = JSON.parse(fs.readFileSync(rootPackagePath, 'utf8'));
const rootPackageLockPath = new URL(
'../../../package-lock.json',
import.meta.url,
);
// prettier-ignore
const rootPackageLockPath = new URL('../../../package-lock.json', import.meta.url);
const rootPackageLock = JSON.parse(
fs.readFileSync(rootPackageLockPath, 'utf8'),
);