@zwa73/dev-utils 1.0.24 → 1.0.25
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/Command/Node.js +1 -1
- package/dist/UtilSchemaTool.js +1 -1
- package/package.json +2 -2
- package/src/Command/Node.ts +1 -1
- package/src/UtilSchemaTool.ts +1 -1
package/dist/Command/Node.js
CHANGED
@@ -12,6 +12,6 @@ const CmdNode = (program) => program
|
|
12
12
|
let cmd = `ts-node -r tsconfig-paths/register ${arg}`;
|
13
13
|
if (opt.project)
|
14
14
|
cmd += `-p ${opt.project}`;
|
15
|
-
await utils_1.UtilFunc.exec(cmd, 'info', 'error');
|
15
|
+
await utils_1.UtilFunc.exec(cmd, { outlvl: 'info', errlvl: 'error' });
|
16
16
|
});
|
17
17
|
exports.CmdNode = CmdNode;
|
package/dist/UtilSchemaTool.js
CHANGED
@@ -37,7 +37,7 @@ var UtilST;
|
|
37
37
|
*/
|
38
38
|
async function builAllSchema(configPath, outDir, coverDefine = {}) {
|
39
39
|
outDir = path.join(outDir, "schemas.json");
|
40
|
-
await utils_1.UtilFunc.exec(`typescript-json-schema ${configPath} * --out ${outDir} --required --strictNullChecks --aliasRefs`, 'info', 'error');
|
40
|
+
await utils_1.UtilFunc.exec(`typescript-json-schema ${configPath} * --out ${outDir} --required --strictNullChecks --aliasRefs`, { outlvl: 'info', errlvl: 'error' });
|
41
41
|
const schema = (await utils_1.UtilFT.loadJSONFile(outDir));
|
42
42
|
//进行预处理并展开
|
43
43
|
await expandSchema(outDir, schema, coverDefine);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zwa73/dev-utils",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.25",
|
4
4
|
"description": "编译与调试工具",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"author": "zwa73",
|
16
16
|
"license": "ISC",
|
17
17
|
"dependencies": {
|
18
|
-
"@zwa73/utils": "^1.0.
|
18
|
+
"@zwa73/utils": "^1.0.113",
|
19
19
|
"commander": "^11.1.0",
|
20
20
|
"ts-node": "^10.9.2",
|
21
21
|
"tsconfig-paths": "^4.2.0",
|
package/src/Command/Node.ts
CHANGED
@@ -11,5 +11,5 @@ export const CmdNode = (program:Command)=>program
|
|
11
11
|
SLogger.info(`编译并运行: ${arg}`);
|
12
12
|
let cmd = `ts-node -r tsconfig-paths/register ${arg}`;
|
13
13
|
if(opt.project) cmd+=`-p ${opt.project}`;
|
14
|
-
await UtilFunc.exec(cmd,'info','error');
|
14
|
+
await UtilFunc.exec(cmd,{outlvl:'info',errlvl:'error'});
|
15
15
|
});
|
package/src/UtilSchemaTool.ts
CHANGED
@@ -12,7 +12,7 @@ export namespace UtilST{
|
|
12
12
|
*/
|
13
13
|
export async function builAllSchema(configPath:string,outDir:string,coverDefine:JObject={}){
|
14
14
|
outDir = path.join(outDir,"schemas.json");
|
15
|
-
await UtilFunc.exec(`typescript-json-schema ${configPath} * --out ${outDir} --required --strictNullChecks --aliasRefs`,'info','error');
|
15
|
+
await UtilFunc.exec(`typescript-json-schema ${configPath} * --out ${outDir} --required --strictNullChecks --aliasRefs`,{outlvl:'info',errlvl:'error'});
|
16
16
|
const schema = (await UtilFT.loadJSONFile(outDir)) as any;
|
17
17
|
//进行预处理并展开
|
18
18
|
await expandSchema(outDir,schema,coverDefine);
|