@form8ion/javascript 11.5.6 → 11.6.0
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.js +9 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +9 -8
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -263,9 +263,7 @@ async function test({projectRoot}) {
|
|
|
263
263
|
return !!engines?.node;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
-
async function lift$1({
|
|
267
|
-
const {name} = JSON.parse(await fs.promises.readFile(`${projectRoot}/package.json`, 'utf8'));
|
|
268
|
-
|
|
266
|
+
async function lift$1({packageDetails: {name}}) {
|
|
269
267
|
return {
|
|
270
268
|
devDependencies: ['ls-engines'],
|
|
271
269
|
scripts: {'lint:engines': 'ls-engines'},
|
|
@@ -652,9 +650,9 @@ async function scaffoldProjectType ({
|
|
|
652
650
|
}
|
|
653
651
|
}
|
|
654
652
|
|
|
655
|
-
async function lifter$1 ({projectRoot}) {
|
|
656
|
-
if (await isPackage({projectRoot})) return liftPackage$1({projectRoot});
|
|
657
|
-
if (await isCli({projectRoot})) return liftCli({projectRoot});
|
|
653
|
+
async function lifter$1 ({projectRoot, packageDetails}) {
|
|
654
|
+
if (await isPackage({projectRoot})) return liftPackage$1({projectRoot, packageDetails});
|
|
655
|
+
if (await isCli({projectRoot})) return liftCli({projectRoot, packageDetails});
|
|
658
656
|
|
|
659
657
|
return {};
|
|
660
658
|
}
|
|
@@ -990,7 +988,10 @@ async function lift ({projectRoot, vcs, results}) {
|
|
|
990
988
|
packageManager: manager
|
|
991
989
|
} = results;
|
|
992
990
|
|
|
993
|
-
const packageManager = await
|
|
991
|
+
const [packageManager, packageContents] = await Promise.all([
|
|
992
|
+
resolvePackageManager({projectRoot, packageManager: manager}),
|
|
993
|
+
node_fs.promises.readFile(`${projectRoot}/package.json`, 'utf8')
|
|
994
|
+
]);
|
|
994
995
|
|
|
995
996
|
const enhancerResults = await core.applyEnhancers({
|
|
996
997
|
results,
|
|
@@ -1003,7 +1004,7 @@ async function lift ({projectRoot, vcs, results}) {
|
|
|
1003
1004
|
codeStylePlugin,
|
|
1004
1005
|
projectTypes
|
|
1005
1006
|
],
|
|
1006
|
-
options: {packageManager, projectRoot, vcs}
|
|
1007
|
+
options: {packageManager, projectRoot, vcs, packageDetails: JSON.parse(packageContents)}
|
|
1007
1008
|
});
|
|
1008
1009
|
|
|
1009
1010
|
await liftPackage(
|