@nasl/cli 0.1.11 → 0.1.12
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/bin/nasl.mjs +4 -1
- package/dist/bin/nasl.mjs.map +1 -1
- package/dist/bin/naslc.mjs +4 -1
- package/dist/bin/naslc.mjs.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/out/services/resolve.d.ts.map +1 -1
- package/out/services/resolve.js +3 -0
- package/out/services/resolve.js.map +1 -1
- package/out/utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13405,7 +13405,7 @@ function fastAppendLogToFile(suffix, content) {
|
|
|
13405
13405
|
if (process.env.NASL_CLI_LOG_DIR) {
|
|
13406
13406
|
const logDir = sysPath.resolve(process.env.NASL_CLI_LOG_DIR);
|
|
13407
13407
|
libExports.ensureDirSync(logDir);
|
|
13408
|
-
const filePath = sysPath.resolve(logDir,
|
|
13408
|
+
const filePath = sysPath.resolve(logDir, `__-${suffix}`);
|
|
13409
13409
|
libExports.outputFileSync(filePath, content, { flag: 'a' });
|
|
13410
13410
|
}
|
|
13411
13411
|
}
|
|
@@ -13681,6 +13681,9 @@ function extractDeps(content) {
|
|
|
13681
13681
|
else if (/\.enums\.(\w+)\.(\w+)/.test(dep)) {
|
|
13682
13682
|
dep = dep.replace(/\.enums\.(\w+).+$/, '.enums.$1');
|
|
13683
13683
|
}
|
|
13684
|
+
else if (/app\.dataSources\.\w+\.entities\.\w+\.\w+$/.test(dep)) {
|
|
13685
|
+
continue; // 应该是写法有问题,跳过让后面的 checker 做检查
|
|
13686
|
+
}
|
|
13684
13687
|
dep = `${dep}.${dep.includes('.views.') ? 'tsx' : 'ts'}`;
|
|
13685
13688
|
deps.add(dep);
|
|
13686
13689
|
}
|