@nx/expo 19.0.7 → 19.0.8
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/package.json +9 -9
- package/plugins/plugin.js +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "19.0.
|
|
3
|
+
"version": "19.0.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Expo Plugin for Nx contains executors and generators for managing and developing an expo application within your workspace. For example, you can directly build for different target platforms as well as generate projects and publish your code.",
|
|
6
6
|
"keywords": [
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"main": "./index",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "19.0.
|
|
31
|
+
"@nx/devkit": "19.0.8",
|
|
32
32
|
"chalk": "^4.1.0",
|
|
33
33
|
"enhanced-resolve": "^5.8.3",
|
|
34
34
|
"fs-extra": "^11.1.0",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"node-fetch": "^2.6.7",
|
|
38
38
|
"tslib": "^2.3.0",
|
|
39
39
|
"tsconfig-paths": "^4.1.2",
|
|
40
|
-
"@nx/jest": "19.0.
|
|
41
|
-
"@nx/js": "19.0.
|
|
42
|
-
"@nx/eslint": "19.0.
|
|
43
|
-
"@nx/react": "19.0.
|
|
44
|
-
"@nx/web": "19.0.
|
|
45
|
-
"@nx/webpack": "19.0.
|
|
46
|
-
"@nrwl/expo": "19.0.
|
|
40
|
+
"@nx/jest": "19.0.8",
|
|
41
|
+
"@nx/js": "19.0.8",
|
|
42
|
+
"@nx/eslint": "19.0.8",
|
|
43
|
+
"@nx/react": "19.0.8",
|
|
44
|
+
"@nx/web": "19.0.8",
|
|
45
|
+
"@nx/webpack": "19.0.8",
|
|
46
|
+
"@nrwl/expo": "19.0.8"
|
|
47
47
|
},
|
|
48
48
|
"executors": "./executors.json",
|
|
49
49
|
"ng-update": {
|
package/plugins/plugin.js
CHANGED
|
@@ -10,16 +10,19 @@ const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculat
|
|
|
10
10
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
11
11
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
|
12
12
|
const cachePath = (0, path_1.join)(cache_directory_1.projectGraphCacheDirectory, 'expo.hash');
|
|
13
|
-
const targetsCache =
|
|
14
|
-
const calculatedTargets = {};
|
|
13
|
+
const targetsCache = readTargetsCache();
|
|
15
14
|
function readTargetsCache() {
|
|
16
|
-
return (0, devkit_1.readJsonFile)(cachePath);
|
|
15
|
+
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
17
16
|
}
|
|
18
|
-
function writeTargetsToCache(
|
|
19
|
-
|
|
17
|
+
function writeTargetsToCache() {
|
|
18
|
+
const oldCache = readTargetsCache();
|
|
19
|
+
(0, devkit_1.writeJsonFile)(cachePath, {
|
|
20
|
+
...oldCache,
|
|
21
|
+
targetsCache,
|
|
22
|
+
});
|
|
20
23
|
}
|
|
21
24
|
const createDependencies = () => {
|
|
22
|
-
writeTargetsToCache(
|
|
25
|
+
writeTargetsToCache();
|
|
23
26
|
return [];
|
|
24
27
|
};
|
|
25
28
|
exports.createDependencies = createDependencies;
|
|
@@ -42,14 +45,11 @@ exports.createNodes = [
|
|
|
42
45
|
const hash = (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [
|
|
43
46
|
(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot)),
|
|
44
47
|
]);
|
|
45
|
-
|
|
46
|
-
? targetsCache[hash]
|
|
47
|
-
: buildExpoTargets(projectRoot, options, context);
|
|
48
|
-
calculatedTargets[hash] = targets;
|
|
48
|
+
targetsCache[hash] ??= buildExpoTargets(projectRoot, options, context);
|
|
49
49
|
return {
|
|
50
50
|
projects: {
|
|
51
51
|
[projectRoot]: {
|
|
52
|
-
targets,
|
|
52
|
+
targets: targetsCache[hash],
|
|
53
53
|
},
|
|
54
54
|
},
|
|
55
55
|
};
|