@lark-apaas/fullstack-cli 1.1.46-alpha.11 → 1.1.46-alpha.13
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.
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4467,10 +4467,15 @@ import fs15 from "fs";
|
|
|
4467
4467
|
import { createRequire as createRequire2 } from "module";
|
|
4468
4468
|
import path13 from "path";
|
|
4469
4469
|
var CAPABILITIES_DIR = "server/capabilities";
|
|
4470
|
+
var SHARED_CAPABILITIES_DIR = "shared/capabilities";
|
|
4470
4471
|
function getProjectRoot2() {
|
|
4471
4472
|
return process.cwd();
|
|
4472
4473
|
}
|
|
4473
4474
|
function getCapabilitiesDir() {
|
|
4475
|
+
const sharedDir = path13.join(getProjectRoot2(), SHARED_CAPABILITIES_DIR);
|
|
4476
|
+
if (fs15.existsSync(sharedDir)) {
|
|
4477
|
+
return sharedDir;
|
|
4478
|
+
}
|
|
4474
4479
|
return path13.join(getProjectRoot2(), CAPABILITIES_DIR);
|
|
4475
4480
|
}
|
|
4476
4481
|
function getCapabilityPath(id) {
|
|
@@ -4645,7 +4650,7 @@ function logError(message) {
|
|
|
4645
4650
|
async function list2(options) {
|
|
4646
4651
|
try {
|
|
4647
4652
|
if (!capabilitiesDirExists()) {
|
|
4648
|
-
logError("
|
|
4653
|
+
logError("capabilities directory not found (looked for shared/capabilities and server/capabilities)");
|
|
4649
4654
|
process.exit(1);
|
|
4650
4655
|
}
|
|
4651
4656
|
if (options.id) {
|