vona-cli-set-api 1.0.180 → 1.0.184
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/.vscode/vona.code-snippets +10 -0
- package/cli/templates/create/project/basic/boilerplate/env/.env +1 -0
- package/cli/templates/create/project/basic/boilerplate/package.original.json +1 -1
- package/dist/lib/bean/cli.bin.build.js +5 -1
- package/package.json +2 -2
|
@@ -143,5 +143,15 @@
|
|
|
143
143
|
"}"
|
|
144
144
|
],
|
|
145
145
|
"description": "record.host"
|
|
146
|
+
},
|
|
147
|
+
"findManyQueryTransform": {
|
|
148
|
+
"scope": "typescript,typescriptreact",
|
|
149
|
+
"prefix": "findmanyquerytransform",
|
|
150
|
+
"body": [
|
|
151
|
+
"findManyQueryTransform(_info: IPipeOptionsQueryTransformInfo): boolean | undefined {",
|
|
152
|
+
" $0return undefined;"
|
|
153
|
+
"}"
|
|
154
|
+
],
|
|
155
|
+
"description": "findManyQueryTransform"
|
|
146
156
|
}
|
|
147
157
|
}
|
|
@@ -20,6 +20,7 @@ const babel = babelImport;
|
|
|
20
20
|
const terser = terserImport;
|
|
21
21
|
const alias = aliasImport;
|
|
22
22
|
const replace = replaceImport;
|
|
23
|
+
const __dialectDriversAll = ['pg', 'mysql2', 'better-sqlite3', 'mysql', 'oracledb', 'pg-native', 'pg-query-stream', 'sqlite3', 'tedious', 'cloudflare:sockets'];
|
|
23
24
|
export class CliBinBuild extends BeanCliBase {
|
|
24
25
|
async execute() {
|
|
25
26
|
const { argv } = this.context;
|
|
@@ -85,7 +86,10 @@ export class CliBinBuild extends BeanCliBase {
|
|
|
85
86
|
}
|
|
86
87
|
async _rollup(projectPath, env, outDir) {
|
|
87
88
|
const aliasEntries = [];
|
|
88
|
-
|
|
89
|
+
const dialectDrivers = (process.env.BUILD_DIALECT_DRIVERS || '').split(',');
|
|
90
|
+
for (const name of __dialectDriversAll) {
|
|
91
|
+
if (dialectDrivers.includes(name))
|
|
92
|
+
continue;
|
|
89
93
|
aliasEntries.push({ find: name, replacement: 'vona-shared' });
|
|
90
94
|
}
|
|
91
95
|
const replaceValues = generateConfigDefine(env, ['NODE_ENV', 'META_MODE', 'META_FLAVOR']);
|
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.184",
|
|
5
5
|
"description": "vona cli-set-api",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ts-node": "^10.9.2",
|
|
62
62
|
"urllib": "^4.6.11",
|
|
63
63
|
"uuid": "^11.1.0",
|
|
64
|
-
"vona-core": "^5.0.
|
|
64
|
+
"vona-core": "^5.0.51",
|
|
65
65
|
"why-is-node-running": "^3.2.2",
|
|
66
66
|
"yargs-parser": "^21.1.1"
|
|
67
67
|
},
|