@form8ion/javascript 13.0.0-beta.3 → 13.0.0-beta.4

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/README.md CHANGED
@@ -103,6 +103,12 @@ const {
103
103
  scripts: {},
104
104
  eslint: {configs: [], ignore: {directories: []}},
105
105
  packageManager: 'npm'
106
+ },
107
+ enhancers: {
108
+ PluginName: {
109
+ test: () => true,
110
+ lift: () => ({})
111
+ }
106
112
  }
107
113
  });
108
114
  }
package/example.js CHANGED
@@ -71,6 +71,12 @@ const {
71
71
  scripts: {},
72
72
  eslint: {configs: [], ignore: {directories: []}},
73
73
  packageManager: 'npm'
74
+ },
75
+ enhancers: {
76
+ PluginName: {
77
+ test: () => true,
78
+ lift: () => ({})
79
+ }
74
80
  }
75
81
  });
76
82
  }
package/lib/index.js CHANGED
@@ -1157,7 +1157,7 @@ var packageManagers = /*#__PURE__*/Object.freeze({
1157
1157
  defineLockfilePath: determineLockfilePathFor
1158
1158
  });
1159
1159
 
1160
- async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1160
+ async function lift ({projectRoot, vcs, results, pathWithinParent, enhancers = {}}) {
1161
1161
  cliMessages.info('Lifting JavaScript-specific details');
1162
1162
 
1163
1163
  const {
@@ -1175,17 +1175,18 @@ async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1175
1175
 
1176
1176
  const enhancerResults = await core.applyEnhancers({
1177
1177
  results,
1178
- enhancers: [
1179
- huskyPlugin__namespace,
1178
+ enhancers: {
1179
+ ...enhancers,
1180
+ huskyPlugin: huskyPlugin__namespace,
1180
1181
  enginesEnhancer,
1181
1182
  coveragePlugin,
1182
- commitConventionPlugin__namespace,
1183
+ commitConventionPlugin: commitConventionPlugin__namespace,
1183
1184
  dialects,
1184
1185
  codeStylePlugin,
1185
1186
  npmConfigPlugin,
1186
1187
  projectTypes,
1187
1188
  packageManagers
1188
- ],
1189
+ },
1189
1190
  options: {packageManager, projectRoot, vcs, packageDetails: JSON.parse(packageContents)}
1190
1191
  });
1191
1192