@lark-apaas/fullstack-cli 1.1.45 → 1.1.46-alpha.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.js +13 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2612,6 +2612,19 @@ async function run2(options) {
2612
2612
  console.log("[fullstack-cli] Skip syncing (not a valid npm project)");
2613
2613
  process.exit(0);
2614
2614
  }
2615
+ const sparkMetaPath = path5.join(userProjectRoot, ".spark", "meta.json");
2616
+ if (fs7.existsSync(sparkMetaPath)) {
2617
+ try {
2618
+ const meta = JSON.parse(fs7.readFileSync(sparkMetaPath, "utf-8"));
2619
+ if (Number(meta.archType) === 2) {
2620
+ console.log("[fullstack-cli] Skip syncing (.spark/meta.json archType=2)");
2621
+ process.exit(0);
2622
+ }
2623
+ } catch (error) {
2624
+ const message = error instanceof Error ? error.message : String(error);
2625
+ console.warn(`[fullstack-cli] \u26A0 Failed to read .spark/meta.json, fallback to default sync: ${message}`);
2626
+ }
2627
+ }
2615
2628
  try {
2616
2629
  console.log("[fullstack-cli] Starting sync...");
2617
2630
  const config = genSyncConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.45",
3
+ "version": "1.1.46-alpha.1",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",