@roots/bud-compiler 6.12.3 → 6.13.0

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.
@@ -12,13 +12,22 @@ import * as Ink from 'ink';
12
12
  * Wepback compilation controller class
13
13
  */
14
14
  export class Compiler extends Service {
15
- constructor() {
16
- super(...arguments);
17
- /**
18
- * Configuration
19
- */
20
- this.config = [];
21
- }
15
+ /**
16
+ * Compiler implementation
17
+ */
18
+ implementation;
19
+ /**
20
+ * Compiler instance
21
+ */
22
+ instance;
23
+ /**
24
+ * Compilation stats
25
+ */
26
+ stats;
27
+ /**
28
+ * Configuration
29
+ */
30
+ config = [];
22
31
  /**
23
32
  * Initiates compilation
24
33
  */
@@ -37,11 +46,6 @@ export class Compiler extends Service {
37
46
  }
38
47
  }));
39
48
  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
49
  this.logger.timeEnd(`initialize`);
46
50
  this.logger.await(`compilation`);
47
51
  this.instance = this.implementation(this.config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roots/bud-compiler",
3
- "version": "6.12.3",
3
+ "version": "6.13.0",
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": "6.12.3",
74
+ "@roots/bud-api": "6.13.0",
75
75
  "@skypack/package-check": "0.2.2",
76
- "@types/node": "18.16.6",
76
+ "@types/node": "18.16.12",
77
77
  "@types/react": "18.2.6"
78
78
  },
79
79
  "dependencies": {
80
- "@roots/bud-dashboard": "6.12.3",
81
- "@roots/bud-framework": "6.12.3",
82
- "@roots/bud-support": "6.12.3",
80
+ "@roots/bud-dashboard": "6.13.0",
81
+ "@roots/bud-framework": "6.13.0",
82
+ "@roots/bud-support": "6.13.0",
83
83
  "ink": "4.2.0",
84
84
  "react": "18.2.0",
85
85
  "tslib": "2.5.0",
86
- "webpack": "5.82.0"
86
+ "webpack": "5.83.0"
87
87
  },
88
88
  "volta": {
89
89
  "extends": "../../../package.json"
@@ -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)
@@ -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()