@reliverse/dler 1.7.88 → 1.7.89
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.
|
@@ -11,10 +11,10 @@ export async function mkdistBuild(ctx) {
|
|
|
11
11
|
let processedEntries = 0;
|
|
12
12
|
let totalWrittenFiles = 0;
|
|
13
13
|
let totalErrors = 0;
|
|
14
|
-
relinka("
|
|
14
|
+
relinka("verbose", `Processing ${entries.length} mkdist entries...`);
|
|
15
15
|
for (const entry of entries) {
|
|
16
16
|
processedEntries++;
|
|
17
|
-
relinka("
|
|
17
|
+
relinka("verbose", `Processing entry ${processedEntries}/${entries.length}: ${entry.input}`);
|
|
18
18
|
const distDir = entry.outDir || entry.input;
|
|
19
19
|
if (ctx.options.transpileStub) {
|
|
20
20
|
await rmdir(distDir);
|
|
@@ -42,7 +42,7 @@ export async function mkdistBuild(ctx) {
|
|
|
42
42
|
...entry
|
|
43
43
|
};
|
|
44
44
|
relinka(
|
|
45
|
-
"
|
|
45
|
+
"verbose",
|
|
46
46
|
`[mkdist] Building with options: srcDir=${mkdistOptions.srcDir}, distDir=${mkdistOptions.distDir}, rootDir=${mkdistOptions.rootDir}`
|
|
47
47
|
);
|
|
48
48
|
await ctx.hooks.callHook("mkdist:entry:options", ctx, entry, mkdistOptions);
|
|
@@ -87,7 +87,7 @@ export async function applyMagicSpells(targets, options = {}) {
|
|
|
87
87
|
}
|
|
88
88
|
if (DEBUG_MODE) {
|
|
89
89
|
relinka(
|
|
90
|
-
"
|
|
90
|
+
"verbose",
|
|
91
91
|
`[spells] Found ${sourceFilesWithDirectives.length} source files with magic directives`
|
|
92
92
|
);
|
|
93
93
|
}
|
|
@@ -152,7 +152,7 @@ export async function applyMagicSpells(targets, options = {}) {
|
|
|
152
152
|
);
|
|
153
153
|
if (DEBUG_MODE) {
|
|
154
154
|
relinka(
|
|
155
|
-
"
|
|
155
|
+
"verbose",
|
|
156
156
|
`[spells] \u2713 Processed ${result.totalSpellsProcessed} magic spells in ${result.processedFiles.length} files`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
@@ -183,7 +183,7 @@ async function processCustomTarget(outputDir, options = {}) {
|
|
|
183
183
|
outputFilesToProcess.push(filePath);
|
|
184
184
|
if (DEBUG_MODE) {
|
|
185
185
|
relinka(
|
|
186
|
-
"
|
|
186
|
+
"verbose",
|
|
187
187
|
`[spells] \u21D2 found directives in ${path.relative(process.cwd(), filePath)}`
|
|
188
188
|
);
|
|
189
189
|
}
|
|
@@ -198,7 +198,7 @@ async function processCustomTarget(outputDir, options = {}) {
|
|
|
198
198
|
if (outputFilesToProcess.length === 0) {
|
|
199
199
|
if (DEBUG_MODE) {
|
|
200
200
|
relinka(
|
|
201
|
-
"
|
|
201
|
+
"verbose",
|
|
202
202
|
`[spells] No files with magic directives found in custom target: ${outputDir}`
|
|
203
203
|
);
|
|
204
204
|
}
|
|
@@ -247,7 +247,7 @@ async function scanSourceForMagicDirectives(srcRoot, options = {}) {
|
|
|
247
247
|
sourceFilesWithDirectives.push(filePath);
|
|
248
248
|
if (DEBUG_MODE) {
|
|
249
249
|
relinka(
|
|
250
|
-
"
|
|
250
|
+
"verbose",
|
|
251
251
|
`[spells] \u21D2 found directives in ${path.relative(process.cwd(), filePath)}`
|
|
252
252
|
);
|
|
253
253
|
}
|
|
@@ -65,6 +65,6 @@ export async function removeLogInternalCalls(targetDir) {
|
|
|
65
65
|
},
|
|
66
66
|
{ concurrency: CONCURRENCY_DEFAULT }
|
|
67
67
|
);
|
|
68
|
-
relinka("
|
|
68
|
+
relinka("verbose", "Successfully removed logInternal and relinka internal calls from files");
|
|
69
69
|
return true;
|
|
70
70
|
}
|