@roots/bud-compiler 2023.5.11 → 2023.5.22
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/lib/compiler.service.js
CHANGED
@@ -37,11 +37,6 @@ export class Compiler extends Service {
|
|
37
37
|
}
|
38
38
|
}));
|
39
39
|
await this.app.hooks.fire(`compiler.before`, this.app);
|
40
|
-
if (this.app.isCLI() && this.app.context.args.dry) {
|
41
|
-
this.logger.timeEnd(`initialize`);
|
42
|
-
this.logger.log(`running in dry mode. exiting early.`);
|
43
|
-
return;
|
44
|
-
}
|
45
40
|
this.logger.timeEnd(`initialize`);
|
46
41
|
this.logger.await(`compilation`);
|
47
42
|
this.instance = this.implementation(this.config);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@roots/bud-compiler",
|
3
|
-
"version": "2023.5.
|
3
|
+
"version": "2023.5.22",
|
4
4
|
"description": "Compilation handler",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=16"
|
@@ -71,19 +71,19 @@
|
|
71
71
|
"types": "./lib/index.d.ts",
|
72
72
|
"module": "./lib/index.js",
|
73
73
|
"devDependencies": {
|
74
|
-
"@roots/bud-api": "2023.5.
|
74
|
+
"@roots/bud-api": "2023.5.22",
|
75
75
|
"@skypack/package-check": "0.2.2",
|
76
|
-
"@types/node": "18.16.
|
76
|
+
"@types/node": "18.16.12",
|
77
77
|
"@types/react": "18.2.6"
|
78
78
|
},
|
79
79
|
"dependencies": {
|
80
|
-
"@roots/bud-dashboard": "2023.5.
|
81
|
-
"@roots/bud-framework": "2023.5.
|
82
|
-
"@roots/bud-support": "2023.5.
|
80
|
+
"@roots/bud-dashboard": "2023.5.22",
|
81
|
+
"@roots/bud-framework": "2023.5.22",
|
82
|
+
"@roots/bud-support": "2023.5.22",
|
83
83
|
"ink": "4.2.0",
|
84
84
|
"react": "18.2.0",
|
85
85
|
"tslib": "2.5.0",
|
86
|
-
"webpack": "5.
|
86
|
+
"webpack": "5.83.0"
|
87
87
|
},
|
88
88
|
"volta": {
|
89
89
|
"extends": "../../../package.json"
|
package/src/compiler.service.tsx
CHANGED
@@ -74,13 +74,8 @@ export class Compiler extends Service implements Contract.Service {
|
|
74
74
|
|
75
75
|
await this.app.hooks.fire(`compiler.before`, this.app)
|
76
76
|
|
77
|
-
if (this.app.isCLI() && this.app.context.args.dry) {
|
78
|
-
this.logger.timeEnd(`initialize`)
|
79
|
-
this.logger.log(`running in dry mode. exiting early.`)
|
80
|
-
return
|
81
|
-
}
|
82
|
-
|
83
77
|
this.logger.timeEnd(`initialize`)
|
78
|
+
|
84
79
|
this.logger.await(`compilation`)
|
85
80
|
|
86
81
|
this.instance = this.implementation(this.config)
|
package/src/compiler.test.ts
CHANGED
@@ -43,14 +43,6 @@ describe(`@roots/bud-compiler`, function () {
|
|
43
43
|
expect(compiler.config).toHaveLength(2)
|
44
44
|
})
|
45
45
|
|
46
|
-
it(`should log early exit (--dry)`, async () => {
|
47
|
-
// @ts-ignore
|
48
|
-
bud.context.args.dry = true
|
49
|
-
const logSpy = vi.spyOn(compiler.logger, `log`)
|
50
|
-
await compiler.compile()
|
51
|
-
expect(logSpy).toHaveBeenCalledTimes(3)
|
52
|
-
})
|
53
|
-
|
54
46
|
it(`should set done tap`, async () => {
|
55
47
|
try {
|
56
48
|
await compiler.compile()
|