@xenon-device-management/xenon 1.1.26 → 1.1.27
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/lib/package.json
CHANGED
|
@@ -54,9 +54,10 @@ const logger_1 = __importDefault(require("../logger"));
|
|
|
54
54
|
const config_1 = require("../config");
|
|
55
55
|
function resolvePluginRoot() {
|
|
56
56
|
let dir = __dirname;
|
|
57
|
-
for (let i = 0; i <
|
|
57
|
+
for (let i = 0; i < 8; i++) {
|
|
58
58
|
const pkgJson = path.join(dir, 'package.json');
|
|
59
|
-
|
|
59
|
+
const schema = path.join(dir, 'prisma', 'schema.prisma');
|
|
60
|
+
if (fs.existsSync(pkgJson) && fs.existsSync(schema)) {
|
|
60
61
|
try {
|
|
61
62
|
const pkg = JSON.parse(fs.readFileSync(pkgJson, 'utf8'));
|
|
62
63
|
if (pkg.name === '@xenon-device-management/xenon' || pkg.name === 'xenon') {
|
package/package.json
CHANGED