Skip to content

Commit

Permalink
fix:maximum call stack size exceeded at paths.js(findYarnLock function)
Browse files Browse the repository at this point in the history
  • Loading branch information
CelsoDeCarvalho committed Jun 27, 2023
1 parent a3490e0 commit 201b22a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cli/src/lib/paths.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
const fs = require('fs')
const path = require('path')
const { reporter } = require('@dhis2/cli-helpers-engine')
const os = require('os');


const shellSource = path.dirname(
require.resolve('@dhis2/app-shell/package.json')
)
const shellAppDirname = 'src/D2App'

const findYarnLock = (base) => {
if (base === '/') {
// Get the root path or drive based on the operating system
const rootPathByOS = os.platform() === 'win32' ? path.parse(process.cwd()).root : '/';

if (base === rootPathByOS) {
return null
}

Expand Down

0 comments on commit 201b22a

Please sign in to comment.