@form8ion/javascript 13.0.0-beta.2 → 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/lib/index.mjs CHANGED
@@ -584,6 +584,7 @@ async function scaffoldPackageType ({
584
584
  documentation: scaffoldPackageDocumentation({packageName, visibility, scope, packageManager, provideExample}),
585
585
  nextSteps: [
586
586
  {summary: 'Add the appropriate `save` flag to the installation instructions in the README'},
587
+ {summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'},
587
588
  {summary: 'Publish pre-release versions to npm until package is stable enough to publish v1.0.0'}
588
589
  ]
589
590
  },
@@ -682,7 +683,7 @@ async function scaffoldCliType ({
682
683
  devDependencies: ['rimraf'],
683
684
  vcsIgnore: {files: [], directories: [`/${defaultBuildDirectory}/`]},
684
685
  buildDirectory: defaultBuildDirectory,
685
- nextSteps: []
686
+ nextSteps: [{summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'}]
686
687
  }
687
688
  ]);
688
689
  }
@@ -1120,7 +1121,7 @@ var packageManagers = /*#__PURE__*/Object.freeze({
1120
1121
  defineLockfilePath: determineLockfilePathFor
1121
1122
  });
1122
1123
 
1123
- async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1124
+ async function lift ({projectRoot, vcs, results, pathWithinParent, enhancers = {}}) {
1124
1125
  info('Lifting JavaScript-specific details');
1125
1126
 
1126
1127
  const {
@@ -1138,7 +1139,8 @@ async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1138
1139
 
1139
1140
  const enhancerResults = await applyEnhancers({
1140
1141
  results,
1141
- enhancers: [
1142
+ enhancers: {
1143
+ ...enhancers,
1142
1144
  huskyPlugin,
1143
1145
  enginesEnhancer,
1144
1146
  coveragePlugin,
@@ -1148,7 +1150,7 @@ async function lift ({projectRoot, vcs, results, pathWithinParent}) {
1148
1150
  npmConfigPlugin,
1149
1151
  projectTypes,
1150
1152
  packageManagers
1151
- ],
1153
+ },
1152
1154
  options: {packageManager, projectRoot, vcs, packageDetails: JSON.parse(packageContents)}
1153
1155
  });
1154
1156