adminforth 1.0.33 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/utils.js +3 -0
- package/modules/utils.ts +4 -0
- package/package.json +1 -1
package/dist/modules/utils.js
CHANGED
|
@@ -16,6 +16,9 @@ export function guessLabelFromName(name) {
|
|
|
16
16
|
let package_json;
|
|
17
17
|
const __filename = fileURLToPath(import.meta.url);
|
|
18
18
|
const __dirname = path.join(path.dirname(__filename), '..');
|
|
19
|
+
console.log('📦 __filename', __dirname);
|
|
20
|
+
console.log('📦 __dirname_orig', path.dirname(__filename));
|
|
21
|
+
console.log('📦 __dirname', __dirname);
|
|
19
22
|
export const ADMIN_FORTH_ABSOLUTE_PATH = __dirname;
|
|
20
23
|
package_json = JSON.parse(fs.readFileSync(path.join(ADMIN_FORTH_ABSOLUTE_PATH, 'package.json'), 'utf8'));
|
|
21
24
|
export const ADMINFORTH_VERSION = package_json.version;
|
package/modules/utils.ts
CHANGED
|
@@ -18,6 +18,10 @@ export function guessLabelFromName(name) {
|
|
|
18
18
|
let package_json;
|
|
19
19
|
const __filename = fileURLToPath(import.meta.url);
|
|
20
20
|
const __dirname = path.join(path.dirname(__filename), '..');
|
|
21
|
+
console.log('📦 __filename', __dirname);
|
|
22
|
+
console.log('📦 __dirname_orig', path.dirname(__filename));
|
|
23
|
+
|
|
24
|
+
console.log('📦 __dirname', __dirname);
|
|
21
25
|
|
|
22
26
|
export const ADMIN_FORTH_ABSOLUTE_PATH = __dirname;
|
|
23
27
|
|