vovk 0.2.3-beta.116 → 0.2.3-beta.117
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/cli/index.mjs +5 -0
- package/cli/server.mjs +4 -0
- package/package.json +1 -1
package/cli/index.mjs
CHANGED
|
@@ -6,6 +6,11 @@ import parallel from './lib/parallel.mjs';
|
|
|
6
6
|
import getAvailablePort from './lib/getAvailablePort.mjs';
|
|
7
7
|
import getVars from './getVars.mjs';
|
|
8
8
|
import parseCommandLineArgs from './lib/parseCommandLineArgs.mjs';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
10
|
+
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
|
+
// @ts-ignore Ignore meta-property error
|
|
13
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
14
|
|
|
10
15
|
const { command, flags, restArgs } = parseCommandLineArgs();
|
|
11
16
|
const {
|
package/cli/server.mjs
CHANGED
|
@@ -6,11 +6,15 @@ import parseCommandLineArgs from './lib/parseCommandLineArgs.mjs';
|
|
|
6
6
|
import generateClient from './generateClient.mjs';
|
|
7
7
|
import getVars from './getVars.mjs';
|
|
8
8
|
import isEqual from './lib/isEqual.mjs';
|
|
9
|
+
import { fileURLToPath } from 'url';
|
|
9
10
|
|
|
10
11
|
const { flags } = parseCommandLineArgs();
|
|
11
12
|
|
|
12
13
|
const { config } = /** @type {{ config: string }} */ (flags);
|
|
13
14
|
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
16
|
+
// @ts-ignore Ignore meta-property error
|
|
17
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
14
18
|
const metadataPath = path.join(__dirname, '../../../.vovk.json');
|
|
15
19
|
|
|
16
20
|
/** @type {(metadata: object) => Promise<{ written: boolean; path: string }>} */
|