miaoda-expo-devkit 0.1.1-beta.91 → 0.1.1-beta.92

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/dist/cli/lint.js +13 -2
  2. package/package.json +1 -1
package/dist/cli/lint.js CHANGED
@@ -17266,9 +17266,19 @@ async function validateAppJsonSchema() {
17266
17266
  const exp = appJson?.expo ?? appJson;
17267
17267
  const schema = { type: "object", properties: app_config_schema_v55_default };
17268
17268
  const validator = new import_schemer.default(schema, { rootDir: projectRoot });
17269
+ let ok = true;
17270
+ if (!exp?.scheme && !exp?.ios?.scheme) {
17271
+ console.error(
17272
+ `
17273
+ [app.json required fields missing]
17274
+ ${appJsonPath}: 'expo.scheme' is required
17275
+ type: string | string[] (each item must match /^[a-z][a-z0-9+.-]*$/)
17276
+ example: "miaoda" or ["miaoda", "com.baidu.miaoda"]`
17277
+ );
17278
+ ok = false;
17279
+ }
17269
17280
  try {
17270
17281
  await validator.validateSchemaAsync(exp);
17271
- return true;
17272
17282
  } catch (e) {
17273
17283
  if (e instanceof import_schemer.SchemerError) {
17274
17284
  console.error("\n[app.json schema errors]");
@@ -17277,8 +17287,9 @@ async function validateAppJsonSchema() {
17277
17287
  console.error(` ${appJsonPath}: ${field} \u2014 ${err.message} (got: ${JSON.stringify(err.data)})`);
17278
17288
  }
17279
17289
  }
17280
- return false;
17290
+ ok = false;
17281
17291
  }
17292
+ return ok;
17282
17293
  }
17283
17294
  async function main() {
17284
17295
  run("oxlint", "oxlint", ["--config", oxlintConfig, ...lintTargets]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.91",
3
+ "version": "0.1.1-beta.92",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",