vona-cli-set-api 1.0.63 → 1.0.66
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/templates/create/project/basic/boilerplate/_.npmrc +1 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/dist/lib/bean/cli.bin.build.js +5 -3
- package/dist/lib/bean/toolsBin/test.js +1 -1
- package/dist/lib/utils.js +5 -3
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ public-hoist-pattern[]=*cabloy*
|
|
|
13
13
|
public-hoist-pattern[]=*@cabloy*
|
|
14
14
|
public-hoist-pattern[]=*why-is-node-running*
|
|
15
15
|
public-hoist-pattern[]=*ts-node*
|
|
16
|
+
public-hoist-pattern[]=zod
|
|
16
17
|
link-workspace-packages = 'deep'
|
|
17
18
|
prefer-workspace-packages = true
|
|
18
19
|
auto-install-peers = true
|
|
@@ -10,7 +10,7 @@ import terserImport from '@rollup/plugin-terser';
|
|
|
10
10
|
import fse from 'fs-extra';
|
|
11
11
|
import { rimraf } from 'rimraf';
|
|
12
12
|
import { rollup } from 'rollup';
|
|
13
|
-
import { generateConfigDefine, getOutDir, getOutReleasesDir } from "../utils.js";
|
|
13
|
+
import { generateConfigDefine, getAbsolutePathOfModule, getOutDir, getOutReleasesDir } from "../utils.js";
|
|
14
14
|
import { generateVonaMeta } from "./toolsBin/generateVonaMeta.js";
|
|
15
15
|
const commonjs = commonjsImport;
|
|
16
16
|
const resolve = resolveImport;
|
|
@@ -89,6 +89,8 @@ export class CliBinBuild extends BeanCliBase {
|
|
|
89
89
|
aliasEntries.push({ find: name, replacement: 'vona-shared' });
|
|
90
90
|
}
|
|
91
91
|
const replaceValues = generateConfigDefine(env, ['NODE_ENV', 'META_MODE', 'META_FLAVOR']);
|
|
92
|
+
const babelPluginZovaBeanModule = getAbsolutePathOfModule('babel-plugin-zova-bean-module', '');
|
|
93
|
+
const babelPluginTransformTypescriptMetadata = getAbsolutePathOfModule('babel-plugin-transform-typescript-metadata', '');
|
|
92
94
|
const plugins = [
|
|
93
95
|
alias({
|
|
94
96
|
entries: aliasEntries,
|
|
@@ -110,8 +112,8 @@ export class CliBinBuild extends BeanCliBase {
|
|
|
110
112
|
babelrc: false,
|
|
111
113
|
configFile: false,
|
|
112
114
|
plugins: [
|
|
113
|
-
[
|
|
114
|
-
[
|
|
115
|
+
[babelPluginZovaBeanModule, { brandName: 'vona' }],
|
|
116
|
+
[babelPluginTransformTypescriptMetadata],
|
|
115
117
|
['@babel/plugin-proposal-decorators', { version: 'legacy' }],
|
|
116
118
|
['@babel/plugin-transform-class-properties', { loose: true }],
|
|
117
119
|
['@babel/plugin-transform-typescript'],
|
|
@@ -44,7 +44,7 @@ async function testRun(projectPath, coverage, patterns) {
|
|
|
44
44
|
let coverageIncludeGlobs = [];
|
|
45
45
|
if (coverage) {
|
|
46
46
|
if (fse.existsSync(path.join(projectPath, 'packages-vona/vona-core'))) {
|
|
47
|
-
coverageIncludeGlobs = coverageIncludeGlobs.concat(['packages-vona/vona-core/**/*.ts', 'src/
|
|
47
|
+
coverageIncludeGlobs = coverageIncludeGlobs.concat(['packages-vona/vona-core/**/*.ts', 'src/suite-vendor/a-vona/**/*.ts']);
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
50
50
|
coverageIncludeGlobs = coverageIncludeGlobs.concat(['src/module/**/*.ts', 'src/suite/**/*.ts']);
|
package/dist/lib/utils.js
CHANGED
|
@@ -29,9 +29,11 @@ export function generateConfigDefine(env, translates) {
|
|
|
29
29
|
export function getAbsolutePathOfModule(id, postfix = 'index.js') {
|
|
30
30
|
const require = createRequire(import.meta.url);
|
|
31
31
|
let modulePath = require.resolve(id);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (postfix) {
|
|
33
|
+
const pos = modulePath.lastIndexOf(postfix);
|
|
34
|
+
if (pos > -1) {
|
|
35
|
+
modulePath = modulePath.substring(0, modulePath.length - postfix.length - 1);
|
|
36
|
+
}
|
|
35
37
|
}
|
|
36
38
|
return modulePath;
|
|
37
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vona-cli-set-api",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.66",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"ts-node": "^10.9.2",
|
|
61
61
|
"urllib": "^4.6.11",
|
|
62
62
|
"uuid": "^11.1.0",
|
|
63
|
-
"vona-core": "^5.0.
|
|
63
|
+
"vona-core": "^5.0.21",
|
|
64
64
|
"why-is-node-running": "^3.2.2",
|
|
65
65
|
"yargs-parser": "^21.1.1"
|
|
66
66
|
},
|