File tree Expand file tree Collapse file tree
frameworks/angular-slickgrid/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { existsSync , readFileSync } from 'node:fs' ;
2- import { dirname , join , resolve } from 'node:path' ;
3- import { fileURLToPath } from 'node:url' ;
2+ import { join , resolve } from 'node:path' ;
43
54import { readJsonSync , writeJsonSync } from '@gc-utils/fs-extra' ;
65import { parse } from 'yaml' ;
76
8- const __filename = fileURLToPath ( import . meta. url ) ;
9- const __dirname = dirname ( __filename ) ;
10- const processPath = join ( __dirname , '../' ) ;
11- const projectRootPath = join ( __dirname , '../../../' ) ; // project root from current script location
7+ const cwd = process . cwd ( ) ;
8+ const processPath = join ( cwd , '../' ) ;
9+ const projectRootPath = join ( cwd , '../../../' ) ; // project root from current script location
1210
1311const MONOREPO_NAMESPACE = '@slickgrid-universal' ;
1412
You can’t perform that action at this time.
0 commit comments