@apicircle/cli 1.1.2 → 1.1.3
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/bin/cli.cjs +2 -4
- package/dist/bin/cli.cjs.map +1 -1
- package/dist/bin/cli.js +1 -1
- package/dist/{chunk-E4QK7ACO.js → chunk-6AJQOXSH.js} +2 -2
- package/dist/{chunk-E4QK7ACO.js.map → chunk-6AJQOXSH.js.map} +1 -1
- package/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CLI_PACKAGE_VERSION
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6AJQOXSH.js";
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { Command } from "commander";
|
|
@@ -153,7 +153,7 @@ import * as os from "os";
|
|
|
153
153
|
import * as path3 from "path";
|
|
154
154
|
import { promises as fs3 } from "fs";
|
|
155
155
|
import {
|
|
156
|
-
|
|
156
|
+
resolveApicircleRoot,
|
|
157
157
|
findWorkspaceEntry,
|
|
158
158
|
loadRegistry,
|
|
159
159
|
registerWorkspace,
|
|
@@ -163,9 +163,7 @@ import {
|
|
|
163
163
|
import { saveToFile as saveToFile2 } from "@apicircle/core/workspace/file-backed";
|
|
164
164
|
import { generateId as generateId3 } from "@apicircle/shared";
|
|
165
165
|
function defaultWorkspacesRoot() {
|
|
166
|
-
|
|
167
|
-
if (override && override.length > 0) return path3.resolve(override);
|
|
168
|
-
return defaultApicircleRoot();
|
|
166
|
+
return resolveApicircleRoot();
|
|
169
167
|
}
|
|
170
168
|
async function resolveWorkspace(opts = {}) {
|
|
171
169
|
const root = opts.workspacesRoot ?? defaultWorkspacesRoot();
|