File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import chalk from 'chalk';
99
1010import { recursiveCopySync } from './utils.js' ;
1111
12- const SCRIPT_ROOT = getScriptRoot ( ) ;
12+ const SCRIPT_ROOT = getScriptRoot ( import . meta . url ) ;
1313const PACKAGE_MANAGER = getPackageManager ( ) ;
1414
1515const TEMPLATES_ROOT = join ( SCRIPT_ROOT , '../src/templates' ) ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414
1515import { build } from './build.js' ;
1616
17- const SCRIPT_ROOT = getScriptRoot ( ) ;
17+ const SCRIPT_ROOT = getScriptRoot ( import . meta . url ) ;
1818const PACKAGE_JSON = getPackageJson ( SCRIPT_ROOT ) ;
1919
2020/* */
Original file line number Diff line number Diff line change 11import { dirname } from 'node:path' ;
22import { fileURLToPath } from 'node:url' ;
33
4- export const getScriptRoot = ( ) : string => {
5- return dirname ( fileURLToPath ( import . meta . url ) ) ;
4+ export const getScriptRoot = ( importMetaUrl : string ) : string => {
5+ return dirname ( fileURLToPath ( importMetaUrl ) ) ;
66} ;
You can’t perform that action at this time.
0 commit comments