@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/README.md +6 -0
- package/example.js +6 -0
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
package/example.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -620,6 +620,7 @@ async function scaffoldPackageType ({
|
|
|
620
620
|
documentation: scaffoldPackageDocumentation({packageName, visibility, scope, packageManager, provideExample}),
|
|
621
621
|
nextSteps: [
|
|
622
622
|
{summary: 'Add the appropriate `save` flag to the installation instructions in the README'},
|
|
623
|
+
{summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'},
|
|
623
624
|
{summary: 'Publish pre-release versions to npm until package is stable enough to publish v1.0.0'}
|
|
624
625
|
]
|
|
625
626
|
},
|
|
@@ -718,7 +719,7 @@ async function scaffoldCliType ({
|
|
|
718
719
|
devDependencies: ['rimraf'],
|
|
719
720
|
vcsIgnore: {files: [], directories: [`/${defaultBuildDirectory}/`]},
|
|
720
721
|
buildDirectory: defaultBuildDirectory,
|
|
721
|
-
nextSteps: []
|
|
722
|
+
nextSteps: [{summary: 'Define supported node.js versions as `engines.node` in the `package.json` file'}]
|
|
722
723
|
}
|
|
723
724
|
]);
|
|
724
725
|
}
|
|
@@ -1156,7 +1157,7 @@ var packageManagers = /*#__PURE__*/Object.freeze({
|
|
|
1156
1157
|
defineLockfilePath: determineLockfilePathFor
|
|
1157
1158
|
});
|
|
1158
1159
|
|
|
1159
|
-
async function lift ({projectRoot, vcs, results, pathWithinParent}) {
|
|
1160
|
+
async function lift ({projectRoot, vcs, results, pathWithinParent, enhancers = {}}) {
|
|
1160
1161
|
cliMessages.info('Lifting JavaScript-specific details');
|
|
1161
1162
|
|
|
1162
1163
|
const {
|
|
@@ -1174,17 +1175,18 @@ async function lift ({projectRoot, vcs, results, pathWithinParent}) {
|
|
|
1174
1175
|
|
|
1175
1176
|
const enhancerResults = await core.applyEnhancers({
|
|
1176
1177
|
results,
|
|
1177
|
-
enhancers:
|
|
1178
|
-
|
|
1178
|
+
enhancers: {
|
|
1179
|
+
...enhancers,
|
|
1180
|
+
huskyPlugin: huskyPlugin__namespace,
|
|
1179
1181
|
enginesEnhancer,
|
|
1180
1182
|
coveragePlugin,
|
|
1181
|
-
commitConventionPlugin__namespace,
|
|
1183
|
+
commitConventionPlugin: commitConventionPlugin__namespace,
|
|
1182
1184
|
dialects,
|
|
1183
1185
|
codeStylePlugin,
|
|
1184
1186
|
npmConfigPlugin,
|
|
1185
1187
|
projectTypes,
|
|
1186
1188
|
packageManagers
|
|
1187
|
-
|
|
1189
|
+
},
|
|
1188
1190
|
options: {packageManager, projectRoot, vcs, packageDetails: JSON.parse(packageContents)}
|
|
1189
1191
|
});
|
|
1190
1192
|
|