@plumeria/init 22.1.2 → 22.2.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/dist/setup.js +5 -6
- package/package.json +1 -1
package/dist/setup.js
CHANGED
|
@@ -561,12 +561,11 @@ const scriptAction = (detected, answers) => {
|
|
|
561
561
|
const scripts = { ...manifest.scripts };
|
|
562
562
|
const notes = [];
|
|
563
563
|
const existing = scripts.build;
|
|
564
|
-
|
|
565
|
-
if (guard && existing && existing.includes('plumerialint')) {
|
|
564
|
+
if (existing && existing.includes('plumerialint')) {
|
|
566
565
|
scripts.build = existing.replace(/plumerialint/g, 'plumeria-lint');
|
|
567
566
|
notes.push(`build: ${scripts.build}`);
|
|
568
567
|
}
|
|
569
|
-
else if (
|
|
568
|
+
else if (existing && !existing.includes('plumeria-lint')) {
|
|
570
569
|
scripts.build = (0, exports.buildScript)(existing, answers.styleProp);
|
|
571
570
|
notes.push(`build: ${scripts.build}`);
|
|
572
571
|
}
|
|
@@ -574,9 +573,9 @@ const scriptAction = (detected, answers) => {
|
|
|
574
573
|
return {
|
|
575
574
|
kind: 'skip',
|
|
576
575
|
label: 'skip',
|
|
577
|
-
note:
|
|
578
|
-
? '
|
|
579
|
-
: '
|
|
576
|
+
note: existing
|
|
577
|
+
? 'the scripts already carry it'
|
|
578
|
+
: 'no build script to guard',
|
|
580
579
|
file: 'package.json',
|
|
581
580
|
};
|
|
582
581
|
}
|