@lark-apaas/fullstack-cli 1.1.46-alpha.14 → 1.1.46-alpha.16

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 +1 -19
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2612,19 +2612,6 @@ 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
- }
2628
2615
  try {
2629
2616
  console.log("[fullstack-cli] Starting sync...");
2630
2617
  const config = genSyncConfig({
@@ -4467,15 +4454,10 @@ import fs15 from "fs";
4467
4454
  import { createRequire as createRequire2 } from "module";
4468
4455
  import path13 from "path";
4469
4456
  var CAPABILITIES_DIR = "server/capabilities";
4470
- var SHARED_CAPABILITIES_DIR = "shared/capabilities";
4471
4457
  function getProjectRoot2() {
4472
4458
  return process.cwd();
4473
4459
  }
4474
4460
  function getCapabilitiesDir() {
4475
- const sharedDir = path13.join(getProjectRoot2(), SHARED_CAPABILITIES_DIR);
4476
- if (fs15.existsSync(sharedDir)) {
4477
- return sharedDir;
4478
- }
4479
4461
  return path13.join(getProjectRoot2(), CAPABILITIES_DIR);
4480
4462
  }
4481
4463
  function getCapabilityPath(id) {
@@ -4650,7 +4632,7 @@ function logError(message) {
4650
4632
  async function list2(options) {
4651
4633
  try {
4652
4634
  if (!capabilitiesDirExists()) {
4653
- logError("capabilities directory not found (looked for shared/capabilities and server/capabilities)");
4635
+ logError("server/capabilities directory not found");
4654
4636
  process.exit(1);
4655
4637
  }
4656
4638
  if (options.id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-cli",
3
- "version": "1.1.46-alpha.14",
3
+ "version": "1.1.46-alpha.16",
4
4
  "description": "CLI tool for fullstack template management",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@lark-apaas/http-client": "^0.1.5",
34
+ "@lark-apaas/http-client": "0.1.6-alpha.2",
35
35
  "@lydell/node-pty": "1.1.0",
36
36
  "@vercel/nft": "^0.30.3",
37
37
  "commander": "^13.0.0",