onelaraveljs 1.1.6 → 1.1.8
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/package.json +1 -1
- package/scripts/dev-context.js +2 -2
package/package.json
CHANGED
package/scripts/dev-context.js
CHANGED
|
@@ -244,7 +244,7 @@ class ContextDevServer {
|
|
|
244
244
|
let compilerPath = config.watchPaths.compiler;
|
|
245
245
|
// fallback mainly for dev env if scripts/compiler exists
|
|
246
246
|
if (!compilerPath.includes('node_modules')) {
|
|
247
|
-
if (!
|
|
247
|
+
if (!existsSync(path.resolve(projectRoot, 'scripts/compiler'))) {
|
|
248
248
|
// Try looking in node_modules
|
|
249
249
|
compilerPath = path.resolve(projectRoot, 'node_modules/onelaraveljs/scripts/compiler');
|
|
250
250
|
} else {
|
|
@@ -254,7 +254,7 @@ class ContextDevServer {
|
|
|
254
254
|
compilerPath = path.resolve(projectRoot, compilerPath);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
if (
|
|
257
|
+
if (existsSync(compilerPath)) {
|
|
258
258
|
console.log(`👀 Watching compiler in: ${compilerPath}`);
|
|
259
259
|
watch(compilerPath, { recursive: true }, (eventType, filename) => {
|
|
260
260
|
if (filename && (filename.endsWith('.py') || filename.endsWith('.js'))) {
|