@rspack/test-tools 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dist/compiler.js +6 -1
  2. package/package.json +2 -2
package/dist/compiler.js CHANGED
@@ -204,7 +204,12 @@ class TestCompilerManager {
204
204
  if (this.compilerInstance) {
205
205
  this.compilerInstance.close((e) => {
206
206
  this.emitter.emit(ECompilerEvent.Close, e);
207
- e ? reject(e) : resolve();
207
+ if (e) {
208
+ reject(e);
209
+ }
210
+ else {
211
+ resolve();
212
+ }
208
213
  });
209
214
  }
210
215
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/test-tools",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "license": "MIT",
5
5
  "description": "Test tools for rspack",
6
6
  "main": "dist/index.js",
@@ -67,7 +67,7 @@
67
67
  "@types/fs-extra": "11.0.4",
68
68
  "@types/jsdom": "^21.1.7",
69
69
  "typescript": "^6.0.3",
70
- "@rspack/core": "2.0.0"
70
+ "@rspack/core": "2.0.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@rspack/core": ">=1.0.0"