@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.
- package/dist/lib/dev/index.js +5 -5
- package/package.json +1 -1
- package/src/lib/dev/index.js +5 -5
package/dist/lib/dev/index.js
CHANGED
|
@@ -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
|
-
|
|
183
|
-
|
|
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
package/src/lib/dev/index.js
CHANGED
|
@@ -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
|
-
|
|
218
|
-
|
|
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
|
};
|