@applift/core 0.7.0 → 0.7.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/dist/index.mjs +4 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -285,13 +285,14 @@ async function loadProjectConfig(cwd) {
285
285
  packageJson: false,
286
286
  defaults: ProjectConfigSchema.parse({})
287
287
  });
288
- const parsed = ProjectConfigSchema.safeParse(result.config ?? {});
288
+ const raw = result.config ?? {};
289
+ const parsed = ProjectConfigSchema.safeParse(raw);
289
290
  if (!parsed.success) {
290
291
  const details = parsed.error.issues.map((i) => `${i.path.join(".") || "(根)"}: ${i.message}`).join(";");
291
292
  throw new Error(`applift.config.ts 字段校验失败 → ${details}`);
292
293
  }
293
294
  const config = parsed.data;
294
- const rawRec = result.config ?? {};
295
+ const rawRec = raw;
295
296
  const deprecated = [];
296
297
  if ("build" in rawRec) deprecated.push({
297
298
  key: "build",
@@ -311,7 +312,7 @@ async function loadProjectConfig(cwd) {
311
312
  }
312
313
  return {
313
314
  config,
314
- raw: result.config ?? {},
315
+ raw,
315
316
  cwd: result.cwd ?? cwd
316
317
  };
317
318
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applift/core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/hcg1023/applift.git",