@joystick.js/cli-canary 0.0.0-canary.151 → 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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.151",
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)