@joystick.js/cli-canary 0.0.0-canary.150 → 0.0.0-canary.152

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.
@@ -177,11 +177,10 @@ const handleAddOrChangeFile = async (context = {}, path2 = "", options = {}) =>
177
177
  try {
178
178
  if (context.isAddingOrChangingFile) {
179
179
  const codependencies = await getCodependenciesForFile(path2);
180
- const fileResults = await buildFiles(
181
- [path2, ...codependencies?.existing || []],
182
- null,
183
- process.env.NODE_ENV
184
- );
180
+ const fileResults = await buildFiles({
181
+ files: [path2, ...codependencies?.existing || []],
182
+ environment: process.env.NODE_ENV
183
+ });
185
184
  const fileResultsHaveErrors = fileResults.filter((result) => !!result).map(({ success }) => success).includes(false);
186
185
  removeDeletedDependenciesFromMap(codependencies.deleted);
187
186
  if (process.serverProcess && fileResultsHaveErrors) {
@@ -210,6 +209,7 @@ const handleAddOrChangeFile = async (context = {}, path2 = "", options = {}) =>
210
209
  }
211
210
  }
212
211
  } catch (exception) {
212
+ console.log(exception);
213
213
  throw new Error(`[dev.handleAddOrChangeFile] ${exception.message}`);
214
214
  }
215
215
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.150",
3
+ "version": "0.0.0-canary.152",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -212,11 +212,10 @@ const handleAddOrChangeFile = async (context = {}, path = '', options = {}) => {
212
212
  try {
213
213
  if (context.isAddingOrChangingFile) {
214
214
  const codependencies = await getCodependenciesForFile(path);
215
- const fileResults = await buildFiles(
216
- [path, ...(codependencies?.existing || [])],
217
- null,
218
- process.env.NODE_ENV
219
- );
215
+ const fileResults = await buildFiles({
216
+ files: [path, ...(codependencies?.existing || [])],
217
+ environment: process.env.NODE_ENV,
218
+ });
220
219
 
221
220
  const fileResultsHaveErrors = fileResults
222
221
  .filter((result) => !!result)
@@ -259,6 +258,7 @@ const handleAddOrChangeFile = async (context = {}, path = '', options = {}) => {
259
258
  }
260
259
  }
261
260
  } catch (exception) {
261
+ console.log(exception);
262
262
  throw new Error(`[dev.handleAddOrChangeFile] ${exception.message}`);
263
263
  }
264
264
  };