vovk-cli 0.0.1-beta.79 → 0.0.1-beta.80
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/init/createConfig.mjs +3 -4
- package/dist/init/index.mjs +0 -18
- package/package.json +6 -6
- /package/client-templates/jsBase/{index.d.mts.ejs → index.d.ts.ejs} +0 -0
- /package/client-templates/jsBase/{index.mjs.ejs → index.js.ejs} +0 -0
- /package/client-templates/schemaJs/{schema.d.js.ejs → schema.d.ts.ejs} +0 -0
|
@@ -8,20 +8,19 @@ export const BUNDLE_BUILD_TSDOWN = async ({ entry, outDir }) => {
|
|
|
8
8
|
await build({
|
|
9
9
|
entry,
|
|
10
10
|
dts: true,
|
|
11
|
-
format:
|
|
11
|
+
format: 'esm',
|
|
12
12
|
hash: false,
|
|
13
13
|
fixedExtension: true,
|
|
14
|
-
|
|
14
|
+
clean: true,
|
|
15
15
|
outDir,
|
|
16
16
|
platform: 'neutral',
|
|
17
|
+
outExtensions: () => ({ js: '.js', dts: '.d.ts' }),
|
|
17
18
|
inputOptions: {
|
|
18
19
|
resolve: {
|
|
19
20
|
mainFields: ['module', 'main'],
|
|
20
|
-
conditionNames: ['default', 'import', 'module', 'node'],
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
noExternal: ['vovk', 'vovk/*', 'vovk-ajv', 'ajv/**', 'ajv-errors', 'ajv-formats/**'],
|
|
24
|
-
tsconfig: './tsconfig.bundle.json',
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
26
|
export async function createConfig({ root, options: { validationLibrary, bundle, lang, dryRun }, }) {
|
package/dist/init/index.mjs
CHANGED
|
@@ -41,24 +41,6 @@ export class Init {
|
|
|
41
41
|
}
|
|
42
42
|
if (bundle) {
|
|
43
43
|
devDependencies.push('tsdown');
|
|
44
|
-
if (!dryRun) {
|
|
45
|
-
const bundleTsconfig = path.join(root, 'tsconfig.bundle.json');
|
|
46
|
-
const bundleTsconfigContent = {
|
|
47
|
-
compilerOptions: {
|
|
48
|
-
moduleResolution: 'bundler',
|
|
49
|
-
paths: {
|
|
50
|
-
'vovk/*': ['./node_modules/vovk/*'],
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
try {
|
|
55
|
-
await fs.writeFile(bundleTsconfig, JSON.stringify(bundleTsconfigContent, null, 2));
|
|
56
|
-
log.info(`Created bundle tsconfig at ${chalkHighlightThing(bundleTsconfig)}`);
|
|
57
|
-
}
|
|
58
|
-
catch (error) {
|
|
59
|
-
log.error(`Failed to create bundle tsconfig at ${chalkHighlightThing(bundleTsconfig)}: ${error.message}`);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
44
|
}
|
|
63
45
|
if (updateScripts) {
|
|
64
46
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vovk-cli",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.80",
|
|
4
4
|
"description": "CLI tool for managing Vovk.ts projects",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://vovk.dev",
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"vovk": "^3.0.0-beta.
|
|
46
|
-
"vovk-ajv": "^0.0.0-beta.
|
|
47
|
-
"vovk-client": "^0.0.4-beta.
|
|
48
|
-
"vovk-python": "^0.0.1-beta.
|
|
49
|
-
"vovk-rust": "^0.0.1-beta.
|
|
45
|
+
"vovk": "^3.0.0-beta.118",
|
|
46
|
+
"vovk-ajv": "^0.0.0-beta.16",
|
|
47
|
+
"vovk-client": "^0.0.4-beta.16",
|
|
48
|
+
"vovk-python": "^0.0.1-beta.6",
|
|
49
|
+
"vovk-rust": "^0.0.1-beta.8"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
52
|
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.57"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|