@serenityjs/plugins 0.1.0-beta.7 → 0.1.0-beta.8

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/index.js +7 -6
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -135,9 +135,10 @@ var Plugins = class {
135
135
  if (!needModules) {
136
136
  try {
137
137
  (0, import_node_child_process.execSync)("npm install", { cwd: (0, import_node_path.resolve)(file.path, file.name) });
138
- } catch {
138
+ } catch (reason) {
139
139
  this.logger.error(
140
- `Failed to install node_modules for plugin "${file.name}".`
140
+ `Failed to install node_modules for plugin "${file.name}".`,
141
+ reason
141
142
  );
142
143
  continue;
143
144
  }
@@ -164,8 +165,8 @@ var Plugins = class {
164
165
  (0, import_node_child_process.execSync)("tsc", { cwd: (0, import_node_path.resolve)(file.path, file.name) });
165
166
  }
166
167
  this.logger.success(`Compiled plugin "${file.name}".`);
167
- } catch {
168
- this.logger.error(`Failed to compile plugin "${file.name}".`);
168
+ } catch (reason) {
169
+ this.logger.error(`Failed to compile plugin "${file.name}".`, reason);
169
170
  continue;
170
171
  }
171
172
  }
@@ -178,8 +179,8 @@ var Plugins = class {
178
179
  new import_logger.Logger(`${file.name}@${pack.version}`, import_logger.LoggerColors.Blue)
179
180
  );
180
181
  this.plugins.set(file.name, { instance, package: pack, plugin });
181
- } catch {
182
- this.logger.error(`Failed to import plugin "${file.name}".`);
182
+ } catch (reason) {
183
+ this.logger.error(`Failed to import plugin "${file.name}".`, reason);
183
184
  continue;
184
185
  }
185
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serenityjs/plugins",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.0-beta.8",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "repository": "https://github.com/SerenityJS/serenity",
@@ -18,9 +18,9 @@
18
18
  "preset": "@serenityjs/jest-presets/jest/node"
19
19
  },
20
20
  "devDependencies": {
21
- "@serenityjs/eslint-config": "0.1.0-beta.7",
22
- "@serenityjs/jest-presets": "0.1.0-beta.7",
23
- "@serenityjs/typescript-config": "0.1.0-beta.7",
21
+ "@serenityjs/eslint-config": "0.1.0-beta.8",
22
+ "@serenityjs/jest-presets": "0.1.0-beta.8",
23
+ "@serenityjs/typescript-config": "0.1.0-beta.8",
24
24
  "@types/jest": "^29.5.12",
25
25
  "@types/node": "^20.11.24",
26
26
  "jest": "^29.7.0",
@@ -28,6 +28,6 @@
28
28
  "typescript": "^5.4.2"
29
29
  },
30
30
  "dependencies": {
31
- "@serenityjs/logger": "0.1.0-beta.7"
31
+ "@serenityjs/logger": "0.1.0-beta.8"
32
32
  }
33
33
  }