@nx/expo 22.6.3 → 22.6.5
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 +8 -8
- package/plugins/plugin.d.ts.map +1 -1
- package/plugins/plugin.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "22.6.
|
|
3
|
+
"version": "22.6.5",
|
|
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,10 +28,10 @@
|
|
|
28
28
|
"main": "./index.js",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "22.6.
|
|
32
|
-
"@nx/eslint": "22.6.
|
|
33
|
-
"@nx/js": "22.6.
|
|
34
|
-
"@nx/react": "22.6.
|
|
31
|
+
"@nx/devkit": "22.6.5",
|
|
32
|
+
"@nx/eslint": "22.6.5",
|
|
33
|
+
"@nx/js": "22.6.5",
|
|
34
|
+
"@nx/react": "22.6.5",
|
|
35
35
|
"enhanced-resolve": "^5.8.3",
|
|
36
36
|
"picocolors": "^1.1.0",
|
|
37
37
|
"semver": "^7.6.3",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"metro-resolver": ">= 0.82.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"nx": "22.6.
|
|
46
|
+
"nx": "22.6.5"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@nx/detox": "22.6.
|
|
50
|
-
"@nx/rollup": "22.6.
|
|
49
|
+
"@nx/detox": "22.6.5",
|
|
50
|
+
"@nx/rollup": "22.6.5"
|
|
51
51
|
},
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"ng-update": {
|
package/plugins/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../packages/expo/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAOd,MAAM,YAAY,CAAC;AAWpB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../packages/expo/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EAOd,MAAM,YAAY,CAAC;AAWpB,MAAM,WAAW,iBAAiB;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAsBD,eAAO,MAAM,WAAW,EAAE,aAAa,CAAC,iBAAiB,CAsBxD,CAAC;AAEF,eAAO,MAAM,aAAa,kCAAc,CAAC"}
|
package/plugins/plugin.js
CHANGED
|
@@ -11,7 +11,6 @@ const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
|
11
11
|
const devkit_internals_1 = require("nx/src/devkit-internals");
|
|
12
12
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
|
13
13
|
const util_1 = require("@nx/js/src/plugins/typescript/util");
|
|
14
|
-
const pmc = (0, devkit_1.getPackageManagerCommand)();
|
|
15
14
|
function readTargetsCache(cachePath) {
|
|
16
15
|
return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
|
|
17
16
|
}
|
|
@@ -28,8 +27,9 @@ exports.createNodes = [
|
|
|
28
27
|
const optionsHash = (0, devkit_internals_1.hashObject)(options);
|
|
29
28
|
const cachePath = (0, path_1.join)(cache_directory_1.workspaceDataDirectory, `expo-${optionsHash}.hash`);
|
|
30
29
|
const targetsCache = readTargetsCache(cachePath);
|
|
30
|
+
const pmc = (0, devkit_1.getPackageManagerCommand)((0, devkit_1.detectPackageManager)(context.workspaceRoot));
|
|
31
31
|
try {
|
|
32
|
-
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache), configFiles, options, context);
|
|
32
|
+
return await (0, devkit_1.createNodesFromFiles)((configFile, options, context) => createNodesInternal(configFile, options, context, targetsCache, pmc), configFiles, options, context);
|
|
33
33
|
}
|
|
34
34
|
finally {
|
|
35
35
|
writeTargetsToCache(cachePath, targetsCache);
|
|
@@ -37,7 +37,7 @@ exports.createNodes = [
|
|
|
37
37
|
},
|
|
38
38
|
];
|
|
39
39
|
exports.createNodesV2 = exports.createNodes;
|
|
40
|
-
async function createNodesInternal(configFile, options, context, targetsCache) {
|
|
40
|
+
async function createNodesInternal(configFile, options, context, targetsCache, pmc) {
|
|
41
41
|
options = normalizeOptions(options);
|
|
42
42
|
const projectRoot = (0, path_1.dirname)(configFile);
|
|
43
43
|
// Do not create a project if package.json or project.json or metro.config.js isn't there.
|
|
@@ -55,7 +55,7 @@ async function createNodesInternal(configFile, options, context, targetsCache) {
|
|
|
55
55
|
return {};
|
|
56
56
|
}
|
|
57
57
|
const hash = await (0, calculate_hash_for_create_nodes_1.calculateHashForCreateNodes)(projectRoot, options, context, [(0, js_1.getLockFileName)((0, devkit_1.detectPackageManager)(context.workspaceRoot))]);
|
|
58
|
-
targetsCache[hash] ??= buildExpoTargets(projectRoot, options, context);
|
|
58
|
+
targetsCache[hash] ??= buildExpoTargets(projectRoot, options, context, pmc);
|
|
59
59
|
return {
|
|
60
60
|
projects: {
|
|
61
61
|
[projectRoot]: {
|
|
@@ -64,7 +64,7 @@ async function createNodesInternal(configFile, options, context, targetsCache) {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function buildExpoTargets(projectRoot, options, context) {
|
|
67
|
+
function buildExpoTargets(projectRoot, options, context, pmc) {
|
|
68
68
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
69
69
|
const targets = {
|
|
70
70
|
[options.startTargetName]: {
|