vovk-cli 0.0.1-draft.382 → 0.0.1-draft.383
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.
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import type { VovkFetcher } from 'vovk';
|
|
3
3
|
import { createRPC } from '<%= t.commonImports.module.createRPC %>';
|
|
4
4
|
import { schema } from './schema<%= t.nodeNextResolutionExt.ts %>';
|
|
5
|
+
<% if(t.isBundle) { %>
|
|
5
6
|
import { openapi } from './openapi<%= t.nodeNextResolutionExt.ts %>';
|
|
7
|
+
<% } else { %>
|
|
8
|
+
// TODO: This is a temporary fix https://github.com/rolldown/tsdown/issues/528#issuecomment-3476284358
|
|
9
|
+
import openapi dfrom './openapi.json' with { type: "json" };
|
|
10
|
+
<% } %>
|
|
6
11
|
<% Object.values(t.schema.segments).filter((segment) => segment.emitSchema).forEach((segment, i) => { if(segment.segmentType !== 'mixin') { %>
|
|
7
12
|
import type { Controllers as Controllers<%= i %> } from "<%= t.segmentMeta[segment.segmentName].segmentImportPath %>";
|
|
8
13
|
<% }
|
package/dist/bundle/index.mjs
CHANGED
|
@@ -5,27 +5,6 @@ import { generate } from '../generate/generate.mjs';
|
|
|
5
5
|
import { BuiltInTemplateName } from '../getProjectInfo/getConfig/getTemplateDefs.mjs';
|
|
6
6
|
import chalkHighlightThing from '../utils/chalkHighlightThing.mjs';
|
|
7
7
|
import { locateSegments } from '../locateSegments.mjs';
|
|
8
|
-
/*
|
|
9
|
-
async function tsdownBundle({
|
|
10
|
-
outDirAbsolute,
|
|
11
|
-
tsFullClientOutAbsoluteDirInput,
|
|
12
|
-
}: {
|
|
13
|
-
outDirAbsolute: string;
|
|
14
|
-
tsFullClientOutAbsoluteDirInput: string;
|
|
15
|
-
}) {
|
|
16
|
-
const { build } = await import('tsdown');
|
|
17
|
-
|
|
18
|
-
await build({
|
|
19
|
-
entry: path.join(tsFullClientOutAbsoluteDirInput, './index.ts'),
|
|
20
|
-
dts: true,
|
|
21
|
-
format: ['cjs', 'esm'],
|
|
22
|
-
hash: false,
|
|
23
|
-
fixedExtension: true,
|
|
24
|
-
clean: true,
|
|
25
|
-
...tsdownBuildOptions,
|
|
26
|
-
outDir: outDirAbsolute,
|
|
27
|
-
});
|
|
28
|
-
} */
|
|
29
8
|
export async function bundle({ projectInfo, fullSchema, cliBundleOptions, }) {
|
|
30
9
|
const { config, log, cwd, apiDirAbsolutePath } = projectInfo;
|
|
31
10
|
const locatedSegments = await locateSegments({ dir: apiDirAbsolutePath, config, log });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vovk-cli",
|
|
3
|
-
"version": "0.0.1-draft.
|
|
3
|
+
"version": "0.0.1-draft.383",
|
|
4
4
|
"bin": {
|
|
5
5
|
"vovk": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://vovk.dev",
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"vovk": "^3.0.0-draft.
|
|
39
|
-
"vovk-ajv": "^0.0.0-draft.
|
|
40
|
-
"vovk-client": "^0.0.4-draft.
|
|
41
|
-
"vovk-python": "^0.0.1-draft.
|
|
42
|
-
"vovk-rust": "^0.0.1-draft.
|
|
38
|
+
"vovk": "^3.0.0-draft.465",
|
|
39
|
+
"vovk-ajv": "^0.0.0-draft.111",
|
|
40
|
+
"vovk-client": "^0.0.4-draft.138",
|
|
41
|
+
"vovk-python": "^0.0.1-draft.80",
|
|
42
|
+
"vovk-rust": "^0.0.1-draft.66"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.44"
|