@cloud-ru/ft-deps-validator 1.1.2-preview-9ce1a08.0 → 1.1.2-preview-fc0bfdf.0
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.
|
@@ -17,7 +17,7 @@ const node_fs_1 = __importDefault(require("node:fs"));
|
|
|
17
17
|
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
18
18
|
const node_path_1 = __importDefault(require("node:path"));
|
|
19
19
|
const readPackageJsonFile = (folder) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
-
const file = yield promises_1.default.readFile(node_path_1.default.
|
|
20
|
+
const file = yield promises_1.default.readFile(node_path_1.default.resolve(folder, './package.json'), 'utf8');
|
|
21
21
|
return JSON.parse(file);
|
|
22
22
|
});
|
|
23
23
|
exports.readPackageJsonFile = readPackageJsonFile;
|
|
@@ -11,7 +11,7 @@ import fs from 'node:fs';
|
|
|
11
11
|
import fsp from 'node:fs/promises';
|
|
12
12
|
import path from 'node:path';
|
|
13
13
|
export const readPackageJsonFile = (folder) => __awaiter(void 0, void 0, void 0, function* () {
|
|
14
|
-
const file = yield fsp.readFile(path.
|
|
14
|
+
const file = yield fsp.readFile(path.resolve(folder, './package.json'), 'utf8');
|
|
15
15
|
return JSON.parse(file);
|
|
16
16
|
});
|
|
17
17
|
export const readPackageJsonFileSync = (folder) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ft-deps-validator",
|
|
3
|
-
"version": "1.1.2-preview-
|
|
3
|
+
"version": "1.1.2-preview-fc0bfdf.0",
|
|
4
4
|
"description": "Validator for unused, missing or wrong version dependencies in monorepo's packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"glob": "10.5.0",
|
|
39
39
|
"yargs": "18.0.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "36f723bbdcf6a92a85b0a3926fb5dccdd68bdc32"
|
|
42
42
|
}
|
|
@@ -10,7 +10,7 @@ type PackageJson = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
export const readPackageJsonFile = async (folder: string): Promise<PackageJson> => {
|
|
13
|
-
const file = await fsp.readFile(path.
|
|
13
|
+
const file = await fsp.readFile(path.resolve(folder, './package.json'), 'utf8');
|
|
14
14
|
return JSON.parse(file);
|
|
15
15
|
};
|
|
16
16
|
|