vona-cli-set-api 1.0.63 → 1.0.65
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 +3 -2
- 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,7 @@ 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', '');
|
|
92
93
|
const plugins = [
|
|
93
94
|
alias({
|
|
94
95
|
entries: aliasEntries,
|
|
@@ -110,7 +111,7 @@ export class CliBinBuild extends BeanCliBase {
|
|
|
110
111
|
babelrc: false,
|
|
111
112
|
configFile: false,
|
|
112
113
|
plugins: [
|
|
113
|
-
[
|
|
114
|
+
[babelPluginZovaBeanModule, { brandName: 'vona' }],
|
|
114
115
|
['babel-plugin-transform-typescript-metadata'],
|
|
115
116
|
['@babel/plugin-proposal-decorators', { version: 'legacy' }],
|
|
116
117
|
['@babel/plugin-transform-class-properties', { loose: true }],
|
|
@@ -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.65",
|
|
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
|
},
|