0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

Adjust location of package.json

This commit is contained in:
G.Ambatte
2025-04-06 19:48:32 +12:00
parent cb060ae8b1
commit 0a4ac7a35a

View File

@@ -2,10 +2,11 @@
// Set working directory to project root // Set working directory to project root
import { dirname } from 'path'; import { dirname } from 'path';
import { fileURLToPath } from 'url'; import { fileURLToPath } from 'url';
import packageJSON from './../package.json' with { type: 'json' };
const __dirname = dirname(fileURLToPath(import.meta.url)); const __dirname = dirname(fileURLToPath(import.meta.url));
process.chdir(`${__dirname}/..`); process.chdir(`${__dirname}/..`);
import packageJSON from '../package.json' with { type: 'json' };
const version = packageJSON.version; const version = packageJSON.version;
import _ from 'lodash'; import _ from 'lodash';