mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -95,10 +95,7 @@ function getCurrentAppPath(): string {
|
||||
if (!global.__dirname) {
|
||||
global.__dirname = typeof __dirname !== 'undefined' ? __dirname : import.meta.dirname;
|
||||
}
|
||||
console.log('getCurrentAppPath __dirname:', __dirname);
|
||||
const currentDir = global.__dirname;
|
||||
console.log('getCurrentAppPath global.__dirname:', global.__dirname);
|
||||
console.log('getCurrentAppPath currentDir:', currentDir);
|
||||
const tnsModulesIndex = currentDir.indexOf('/tns_modules');
|
||||
|
||||
// Module not hosted in ~/tns_modules when bundled. Use current dir.
|
||||
|
||||
Reference in New Issue
Block a user