vovk 0.2.3-beta.116 → 0.2.3-beta.118

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 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 {
@@ -34,7 +39,7 @@ if (command === 'dev') {
34
39
  await parallel(
35
40
  [
36
41
  {
37
- command: `node ${__dirname}/server.js`,
42
+ command: `node ${__dirname}/server.mjs`,
38
43
  name: 'Vovk',
39
44
  },
40
45
  { command: `cd ${project} && npx next dev ${restArgs}`, name: 'Next' },
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 }>} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "0.2.3-beta.116",
3
+ "version": "0.2.3-beta.118",
4
4
  "description": "Structural add-on for Next.js",
5
5
  "bin": "./cli/index.mjs",
6
6
  "scripts": {