@adonisjs/assembler 8.0.0-next.12 → 8.0.0-next.14
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.
|
@@ -53,6 +53,16 @@ function parseConfig(cwd, ts) {
|
|
|
53
53
|
console.log(ts.formatDiagnosticsWithColorAndContext(parsedConfig.errors, compilerHost));
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
+
if (parsedConfig.raw.include) {
|
|
57
|
+
parsedConfig.raw.include = parsedConfig.raw.include.map((includePath) => {
|
|
58
|
+
return includePath.replace("${configDir}/", "");
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
if (parsedConfig.raw.exclude) {
|
|
62
|
+
parsedConfig.raw.exclude = parsedConfig.raw.exclude.map((excludePath) => {
|
|
63
|
+
return excludePath.replace("${configDir}/", "");
|
|
64
|
+
});
|
|
65
|
+
}
|
|
56
66
|
return parsedConfig;
|
|
57
67
|
}
|
|
58
68
|
function runNode(cwd, options) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
debug_default,
|
|
4
4
|
removeExtension,
|
|
5
5
|
throttle
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7ANGUQDV.js";
|
|
7
7
|
|
|
8
8
|
// src/index_generator/source.ts
|
|
9
9
|
import string from "@poppinss/utils/string";
|
|
@@ -325,15 +325,15 @@ var IndexGeneratorSource = class {
|
|
|
325
325
|
buffer.dedent().write(`}`);
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* Displays the log message after generating the index file
|
|
329
329
|
*
|
|
330
330
|
* @example
|
|
331
|
-
* const
|
|
331
|
+
* const startTime = process.hrtime()
|
|
332
332
|
* // ... perform operations
|
|
333
|
-
*
|
|
333
|
+
* this.#logCreation(startTime)
|
|
334
334
|
*/
|
|
335
|
-
#
|
|
336
|
-
|
|
335
|
+
#logCreation(startTime) {
|
|
336
|
+
this.#cliLogger.info(`created ${this.#config.output}`, { startTime });
|
|
337
337
|
}
|
|
338
338
|
/**
|
|
339
339
|
* Add a file to the virtual file system and regenerate index if needed
|
|
@@ -347,9 +347,9 @@ var IndexGeneratorSource = class {
|
|
|
347
347
|
const added = this.#vfs.add(filePath);
|
|
348
348
|
if (added) {
|
|
349
349
|
debug_default('file added, re-generating "%s" index', this.name);
|
|
350
|
-
const
|
|
350
|
+
const startTime = process.hrtime();
|
|
351
351
|
await this.#generateOutput();
|
|
352
|
-
|
|
352
|
+
this.#logCreation(startTime);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
/**
|
|
@@ -364,9 +364,9 @@ var IndexGeneratorSource = class {
|
|
|
364
364
|
const removed = this.#vfs.remove(filePath);
|
|
365
365
|
if (removed) {
|
|
366
366
|
debug_default('file removed, re-generating "%s" index', this.name);
|
|
367
|
-
const
|
|
367
|
+
const startTime = process.hrtime();
|
|
368
368
|
await this.#generateOutput();
|
|
369
|
-
|
|
369
|
+
this.#logCreation(startTime);
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
/**
|
|
@@ -376,10 +376,10 @@ var IndexGeneratorSource = class {
|
|
|
376
376
|
* the configuration, and writes the generated index file to disk.
|
|
377
377
|
*/
|
|
378
378
|
async generate() {
|
|
379
|
-
const
|
|
379
|
+
const startTime = process.hrtime();
|
|
380
380
|
await this.#vfs.scan();
|
|
381
381
|
await this.#generateOutput();
|
|
382
|
-
|
|
382
|
+
this.#logCreation(startTime);
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
|
package/build/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FileBuffer,
|
|
3
3
|
IndexGenerator
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-TWCIFDZF.js";
|
|
5
5
|
import {
|
|
6
6
|
VirtualFileSystem,
|
|
7
7
|
copyFiles,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
runNode,
|
|
15
15
|
throttle,
|
|
16
16
|
watch
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7ANGUQDV.js";
|
|
18
18
|
|
|
19
19
|
// src/bundler.ts
|
|
20
20
|
import dedent from "dedent";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/assembler",
|
|
3
3
|
"description": "Provides utilities to run AdonisJS development server and build project for production",
|
|
4
|
-
"version": "8.0.0-next.
|
|
4
|
+
"version": "8.0.0-next.14",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.0.0"
|
|
7
7
|
},
|
|
@@ -49,26 +49,26 @@
|
|
|
49
49
|
"@japa/snapshot": "^2.0.9",
|
|
50
50
|
"@poppinss/ts-exec": "^1.4.1",
|
|
51
51
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
52
|
-
"@types/node": "^24.6.
|
|
52
|
+
"@types/node": "^24.6.2",
|
|
53
53
|
"@types/picomatch": "^4.0.2",
|
|
54
54
|
"@types/pretty-hrtime": "^1.0.3",
|
|
55
55
|
"c8": "^10.1.3",
|
|
56
56
|
"cross-env": "^10.1.0",
|
|
57
57
|
"del-cli": "^7.0.0",
|
|
58
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.37.0",
|
|
59
59
|
"hot-hook": "^0.4.1-next.0",
|
|
60
60
|
"p-event": "^7.0.0",
|
|
61
61
|
"prettier": "^3.6.2",
|
|
62
62
|
"release-it": "^19.0.5",
|
|
63
63
|
"tsup": "^8.5.0",
|
|
64
64
|
"typedoc": "^0.28.13",
|
|
65
|
-
"typescript": "^5.9.
|
|
65
|
+
"typescript": "^5.9.3"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@adonisjs/env": "^7.0.0-next.1",
|
|
69
69
|
"@antfu/install-pkg": "^1.1.0",
|
|
70
|
-
"@ast-grep/napi": "^0.39.
|
|
71
|
-
"@poppinss/cliui": "^6.
|
|
70
|
+
"@ast-grep/napi": "^0.39.6",
|
|
71
|
+
"@poppinss/cliui": "^6.5.0",
|
|
72
72
|
"@poppinss/hooks": "^7.2.6",
|
|
73
73
|
"@poppinss/utils": "^7.0.0-next.3",
|
|
74
74
|
"chokidar": "^4.0.3",
|