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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onelaraveljs",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "OneLaravel JS Framework Core & Compiler",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -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 (!require('fs').existsSync(path.resolve(projectRoot, 'scripts/compiler'))) {
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 (require('fs').existsSync(compilerPath)) {
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'))) {