@swell/cli 2.0.4 → 2.0.5

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.
@@ -92,13 +92,11 @@ export default class AppThemeDev extends PushAppCommand {
92
92
  console.error('No scripts found in package.json. Try adding scripts to your package file.');
93
93
  return;
94
94
  }
95
- const preferredScripts = ['dev', 'watch'];
96
- const scriptName = preferredScripts.find((script) => packageJson.scripts[script]);
97
- if (!scriptName) {
98
- console.warn('Neither "dev" nor "watch" scripts found in package.json');
95
+ if (!packageJson.scripts.bundle) {
96
+ console.warn('"bundle" script not found in package.json');
99
97
  return;
100
98
  }
101
- const childProcess = spawn('npm', ['run', scriptName], {
99
+ const childProcess = spawn('npm', ['run', 'bundle'], {
102
100
  env: { ...process.env, BROWSERSLIST_IGNORE_OLD_DATA: 'true' },
103
101
  shell: true,
104
102
  stdio: 'pipe',
@@ -108,16 +106,16 @@ export default class AppThemeDev extends PushAppCommand {
108
106
  for (const line of lines) {
109
107
  const trimmedLine = line.trim();
110
108
  if (trimmedLine) {
111
- console.log(`${style.success('📦')} ${trimmedLine}`);
109
+ console.log(trimmedLine);
112
110
  }
113
111
  }
114
112
  });
115
113
  childProcess.on('exit', (code) => {
116
114
  if (code === 0) {
117
- console.log(`${scriptName} completed successfully.`);
115
+ console.log(`bundle completed successfully.`);
118
116
  }
119
117
  else {
120
- console.error(`${scriptName} exited with code ${code}.`);
118
+ console.error(`bundle exited with code ${code}.`);
121
119
  }
122
120
  });
123
121
  }
@@ -1835,5 +1835,5 @@
1835
1835
  ]
1836
1836
  }
1837
1837
  },
1838
- "version": "2.0.4"
1838
+ "version": "2.0.5"
1839
1839
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/cli",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "type": "module",
5
5
  "description": "Swell's command line interface/utility",
6
6
  "keywords": [