mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-07-06 20:35:26 -05:00
Fix running from a path with spaces
This commit is contained in:
parent
370b5f1b56
commit
355cefe382
|
|
@ -19,7 +19,7 @@ const debug = createDebug('cli');
|
|||
|
||||
export const paths = getPaths('nxapi');
|
||||
|
||||
export const dir = path.resolve(import.meta.url.substr(process.platform === 'win32' ? 8 : 7), '..', '..');
|
||||
export const dir = path.resolve(decodeURI(import.meta.url.substr(process.platform === 'win32' ? 8 : 7)), '..', '..');
|
||||
export const pkg = JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf-8'));
|
||||
export const version = pkg.version;
|
||||
export const git = (() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user