@nx/expo 20.0.3 → 20.0.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.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,13 +28,13 @@
|
|
|
28
28
|
"main": "./index",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "20.0.
|
|
32
|
-
"@nx/eslint": "20.0.
|
|
33
|
-
"@nx/jest": "20.0.
|
|
34
|
-
"@nx/js": "20.0.
|
|
35
|
-
"@nx/react": "20.0.
|
|
36
|
-
"@nx/web": "20.0.
|
|
37
|
-
"@nx/webpack": "20.0.
|
|
31
|
+
"@nx/devkit": "20.0.5",
|
|
32
|
+
"@nx/eslint": "20.0.5",
|
|
33
|
+
"@nx/jest": "20.0.5",
|
|
34
|
+
"@nx/js": "20.0.5",
|
|
35
|
+
"@nx/react": "20.0.5",
|
|
36
|
+
"@nx/web": "20.0.5",
|
|
37
|
+
"@nx/webpack": "20.0.5",
|
|
38
38
|
"enhanced-resolve": "^5.8.3",
|
|
39
39
|
"metro-config": "~0.80.4",
|
|
40
40
|
"metro-resolver": "~0.80.4",
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = update;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const jest_1 = require("@nx/jest");
|
|
6
|
-
/**
|
|
7
|
-
* Change the preset in expo's jest config
|
|
8
|
-
* - changes preset of jest.config to jest-expo
|
|
9
|
-
*/
|
|
10
|
-
async function update(tree) {
|
|
11
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
12
|
-
for (const [name, config] of projects.entries()) {
|
|
13
|
-
if (config.targets?.['start']?.executor === '@nrwl/expo:start' ||
|
|
14
|
-
config.targets?.['start']?.executor === '@nx/expo:start') {
|
|
15
|
-
const jestConfigPath = config.targets?.test?.options?.jestConfig;
|
|
16
|
-
if (!jestConfigPath || !tree.exists(jestConfigPath))
|
|
17
|
-
return;
|
|
18
|
-
try {
|
|
19
|
-
(0, jest_1.removePropertyFromJestConfig)(tree, jestConfigPath, 'preset');
|
|
20
|
-
(0, jest_1.addPropertyToJestConfig)(tree, jestConfigPath, 'preset', 'jest-expo');
|
|
21
|
-
}
|
|
22
|
-
catch {
|
|
23
|
-
devkit_1.logger.error((0, devkit_1.stripIndents) `Unable to update ${jestConfigPath} for project ${name}.`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = update;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
/**
|
|
6
|
-
* Add new submit target
|
|
7
|
-
*/
|
|
8
|
-
async function update(tree) {
|
|
9
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
10
|
-
for (const [name, config] of projects.entries()) {
|
|
11
|
-
if (config.targets?.['start']?.executor === '@nx/expo:start') {
|
|
12
|
-
if (!config.targets['submit']) {
|
|
13
|
-
config.targets['submit'] = {
|
|
14
|
-
executor: '@nx/expo:submit',
|
|
15
|
-
options: {},
|
|
16
|
-
};
|
|
17
|
-
(0, devkit_1.updateProjectConfiguration)(tree, name, config);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
22
|
-
}
|