vovk 0.2.3-beta.6 → 0.2.3-beta.8
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/generateClient.js +1 -1
- package/cli/watchMetadata.js +3 -0
- package/package.json +1 -1
package/cli/generateClient.js
CHANGED
|
@@ -13,7 +13,7 @@ async function generateClient(rcPath) {
|
|
|
13
13
|
? path.join(process.cwd(), vovkrc.streamFetcher)
|
|
14
14
|
: vovkrc.streamFetcher;
|
|
15
15
|
|
|
16
|
-
const controllersPath = path.join('
|
|
16
|
+
const controllersPath = path.join('../..', vovkrc.route).replace(/\.ts$/, '');
|
|
17
17
|
let ts = `import type { Controllers } from "${controllersPath}";
|
|
18
18
|
import type { clientizeController } from 'vovk/client';
|
|
19
19
|
import type { promisifyWorker } from 'vovk/worker';
|
package/cli/watchMetadata.js
CHANGED
|
@@ -21,6 +21,9 @@ async function watchMetadata() {
|
|
|
21
21
|
|
|
22
22
|
const jsonWatcher = watch(path.join(__dirname, '../../.vovk/vovk-metadata.json'));
|
|
23
23
|
|
|
24
|
+
await generateClient(argv.rc, argv.output);
|
|
25
|
+
console.info(' 🐺 Client generated');
|
|
26
|
+
|
|
24
27
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
25
28
|
for await (const _event of jsonWatcher) {
|
|
26
29
|
await generateClient(argv.rc, argv.output);
|