lapeh 2.3.3 → 2.3.4

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.
Files changed (2) hide show
  1. package/bin/index.js +11 -2
  2. package/package.json +1 -1
package/bin/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
@@ -47,7 +47,16 @@ function runDev() {
47
47
  const bootstrapPath = fs.existsSync(localBootstrapPath) ? localBootstrapPath : fallbackBootstrapPath;
48
48
 
49
49
  // We execute a script that requires ts-node to run lib/bootstrap.ts
50
- execSync(`npx nodemon --watch src --watch lib --ext ts,json --exec "node -r ${tsNodePath} -r ${tsConfigPathsPath} ${bootstrapPath}"`, { stdio: 'inherit' });
50
+ // IMPORTANT: We need to use 'npx' to run nodemon from the project's node_modules,
51
+ // BUT we also need to ensure we use the project's ts-node and tsconfig-paths.
52
+
53
+ // The previous error "Cannot find module 'E:\PROJECT\ANY\2026\TESTING'" suggests an issue with argument parsing or path spaces.
54
+ // The path contains spaces "TESTING LAPEH". When passed to `exec`, it might be splitting.
55
+ // We should quote the paths properly.
56
+
57
+ const cmd = `npx nodemon --watch src --watch lib --ext ts,json --exec "node -r \\"${tsNodePath}\\" -r \\"${tsConfigPathsPath}\\" \\"${bootstrapPath}\\""`;
58
+
59
+ execSync(cmd, { stdio: 'inherit' });
51
60
  } catch (error) {
52
61
  // Ignore error
53
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lapeh",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "Framework API Express yang siap pakai (Standardized)",
5
5
  "main": "index.js",
6
6
  "bin": {