@plumeria/init 22.1.2 → 22.2.1

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.
Files changed (2) hide show
  1. package/dist/setup.js +5 -6
  2. 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
- const guard = answers.eslint && guardsByScript(detected);
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 (guard && existing && !existing.includes('plumeria-lint')) {
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: guard && !existing
578
- ? 'no build script to guard'
579
- : 'the scripts already carry it',
576
+ note: existing
577
+ ? 'the scripts already carry it'
578
+ : 'no build script to guard',
580
579
  file: 'package.json',
581
580
  };
582
581
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/init",
3
- "version": "22.1.2",
3
+ "version": "22.2.1",
4
4
  "description": "One command that sets up Plumeria: detects the bundler, installs the packages, writes the configs",
5
5
  "author": "zss-labs",
6
6
  "license": "MIT",