chore: tmp comments to verify loading order - cleanup after confirmed

This commit is contained in:
Nathan Walker
2025-07-14 08:47:45 -07:00
parent 49413e5873
commit 4fe0003eb6
4 changed files with 40 additions and 34 deletions

View File

@@ -92,7 +92,13 @@ export function dataSerialize(data: any, wrapPrimitives: boolean = false) {
}
function getCurrentAppPath(): string {
const currentDir = import.meta.dirname;
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.