@nx/expo 22.0.0-beta.0 → 22.0.0-beta.2
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/migrations.json +0 -132
- package/package.json +7 -7
- package/src/migrations/update-19-0-0/change-webpack-to-metro.d.ts +0 -8
- package/src/migrations/update-19-0-0/change-webpack-to-metro.d.ts.map +0 -1
- package/src/migrations/update-19-0-0/change-webpack-to-metro.js +0 -32
- package/src/migrations/update-19-2-0/remove-deprecated-webpack-config.d.ts +0 -7
- package/src/migrations/update-19-2-0/remove-deprecated-webpack-config.d.ts.map +0 -1
- package/src/migrations/update-19-2-0/remove-deprecated-webpack-config.js +0 -19
- package/src/migrations/update-19-7-0/remove-eas-pre-install.d.ts +0 -7
- package/src/migrations/update-19-7-0/remove-eas-pre-install.d.ts.map +0 -1
- package/src/migrations/update-19-7-0/remove-eas-pre-install.js +0 -24
package/migrations.json
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"generators": {
|
|
3
|
-
"update-19-0-0-change-webpack-to-metro": {
|
|
4
|
-
"version": "19.0.0-beta.9",
|
|
5
|
-
"cli": "nx",
|
|
6
|
-
"description": "Change webpack to metro in expo projects",
|
|
7
|
-
"factory": "./src/migrations/update-19-0-0/change-webpack-to-metro"
|
|
8
|
-
},
|
|
9
|
-
"update-19-2-0-remove-webpack-config": {
|
|
10
|
-
"version": "19.2.0-beta.2",
|
|
11
|
-
"cli": "nx",
|
|
12
|
-
"description": "Remove deprecated webpack.config.js",
|
|
13
|
-
"factory": "./src/migrations/update-19-2-0/remove-deprecated-webpack-config"
|
|
14
|
-
},
|
|
15
|
-
"update-19-7-0-remove-eas-pre-install": {
|
|
16
|
-
"version": "19.7.0-beta.4",
|
|
17
|
-
"cli": "nx",
|
|
18
|
-
"description": "Remove eas-build-pre-install script from app's package.json",
|
|
19
|
-
"factory": "./src/migrations/update-19-7-0/remove-eas-pre-install"
|
|
20
|
-
},
|
|
21
3
|
"update-21-4-0-remove-deprecated-deps": {
|
|
22
4
|
"version": "21.4.0-beta.0",
|
|
23
5
|
"cli": "nx",
|
|
@@ -38,120 +20,6 @@
|
|
|
38
20
|
}
|
|
39
21
|
},
|
|
40
22
|
"packageJsonUpdates": {
|
|
41
|
-
"19.0.0": {
|
|
42
|
-
"version": "19.0.0-beta.7",
|
|
43
|
-
"packages": {
|
|
44
|
-
"expo": {
|
|
45
|
-
"version": "~50.0.14",
|
|
46
|
-
"alwaysAddToPackageJson": false
|
|
47
|
-
},
|
|
48
|
-
"expo-splash-screen": {
|
|
49
|
-
"version": "~0.26.4",
|
|
50
|
-
"alwaysAddToPackageJson": false
|
|
51
|
-
},
|
|
52
|
-
"@expo/cli": {
|
|
53
|
-
"version": "~0.17.8",
|
|
54
|
-
"alwaysAddToPackageJson": false
|
|
55
|
-
},
|
|
56
|
-
"babel-preset-expo": {
|
|
57
|
-
"version": "~10.0.1",
|
|
58
|
-
"alwaysAddToPackageJson": false
|
|
59
|
-
},
|
|
60
|
-
"react-native": {
|
|
61
|
-
"version": "~0.73.6",
|
|
62
|
-
"alwaysAddToPackageJson": false
|
|
63
|
-
},
|
|
64
|
-
"react-native-web": {
|
|
65
|
-
"version": "~0.19.10",
|
|
66
|
-
"alwaysAddToPackageJson": false
|
|
67
|
-
},
|
|
68
|
-
"@expo/metro-config": {
|
|
69
|
-
"version": "~0.17.6",
|
|
70
|
-
"alwaysAddToPackageJson": false
|
|
71
|
-
},
|
|
72
|
-
"@expo/metro-runtime": {
|
|
73
|
-
"version": "~3.1.3",
|
|
74
|
-
"alwaysAddToPackageJson": false
|
|
75
|
-
},
|
|
76
|
-
"react-native-svg-transformer": {
|
|
77
|
-
"version": "1.3.0",
|
|
78
|
-
"alwaysAddToPackageJson": false
|
|
79
|
-
},
|
|
80
|
-
"react-native-svg": {
|
|
81
|
-
"version": "15.1.0",
|
|
82
|
-
"alwaysAddToPackageJson": false
|
|
83
|
-
},
|
|
84
|
-
"@testing-library/react-native": {
|
|
85
|
-
"version": "~12.4.5",
|
|
86
|
-
"alwaysAddToPackageJson": false
|
|
87
|
-
},
|
|
88
|
-
"jest-expo": {
|
|
89
|
-
"version": "~50.0.4",
|
|
90
|
-
"alwaysAddToPackageJson": false
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"19.2.0": {
|
|
95
|
-
"version": "19.2.0-beta.2",
|
|
96
|
-
"packages": {
|
|
97
|
-
"expo": {
|
|
98
|
-
"version": "~51.0.8",
|
|
99
|
-
"alwaysAddToPackageJson": false
|
|
100
|
-
},
|
|
101
|
-
"expo-splash-screen": {
|
|
102
|
-
"version": "~0.27.4",
|
|
103
|
-
"alwaysAddToPackageJson": false
|
|
104
|
-
},
|
|
105
|
-
"expo-status-bar": {
|
|
106
|
-
"version": "~1.12.1",
|
|
107
|
-
"alwaysAddToPackageJson": false
|
|
108
|
-
},
|
|
109
|
-
"@expo/cli": {
|
|
110
|
-
"version": "~0.18.13",
|
|
111
|
-
"alwaysAddToPackageJson": false
|
|
112
|
-
},
|
|
113
|
-
"babel-preset-expo": {
|
|
114
|
-
"version": "~11.0.0",
|
|
115
|
-
"alwaysAddToPackageJson": false
|
|
116
|
-
},
|
|
117
|
-
"react-native": {
|
|
118
|
-
"version": "0.74.1",
|
|
119
|
-
"alwaysAddToPackageJson": false
|
|
120
|
-
},
|
|
121
|
-
"react-native-web": {
|
|
122
|
-
"version": "~0.19.11",
|
|
123
|
-
"alwaysAddToPackageJson": false
|
|
124
|
-
},
|
|
125
|
-
"@expo/metro-config": {
|
|
126
|
-
"version": "~0.18.1",
|
|
127
|
-
"alwaysAddToPackageJson": false
|
|
128
|
-
},
|
|
129
|
-
"@expo/metro-runtime": {
|
|
130
|
-
"version": "~3.2.1",
|
|
131
|
-
"alwaysAddToPackageJson": false
|
|
132
|
-
},
|
|
133
|
-
"react-native-svg-transformer": {
|
|
134
|
-
"version": "1.3.0",
|
|
135
|
-
"alwaysAddToPackageJson": false
|
|
136
|
-
},
|
|
137
|
-
"react-native-svg": {
|
|
138
|
-
"version": "15.2.0",
|
|
139
|
-
"alwaysAddToPackageJson": false
|
|
140
|
-
},
|
|
141
|
-
"@testing-library/react-native": {
|
|
142
|
-
"version": "~12.5.0",
|
|
143
|
-
"alwaysAddToPackageJson": false
|
|
144
|
-
},
|
|
145
|
-
"jest-expo": {
|
|
146
|
-
"version": "~51.0.2",
|
|
147
|
-
"alwaysAddToPackageJson": false
|
|
148
|
-
},
|
|
149
|
-
"@babel/runtime": {
|
|
150
|
-
"version": "7.24.5",
|
|
151
|
-
"alwaysAddToPackageJson": false
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
23
|
"20.3.0": {
|
|
156
24
|
"version": "20.3.0-beta.0",
|
|
157
25
|
"packages": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "22.0.0-beta.
|
|
3
|
+
"version": "22.0.0-beta.2",
|
|
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.0.0-beta.
|
|
32
|
-
"@nx/eslint": "22.0.0-beta.
|
|
33
|
-
"@nx/js": "22.0.0-beta.
|
|
34
|
-
"@nx/react": "22.0.0-beta.
|
|
31
|
+
"@nx/devkit": "22.0.0-beta.2",
|
|
32
|
+
"@nx/eslint": "22.0.0-beta.2",
|
|
33
|
+
"@nx/js": "22.0.0-beta.2",
|
|
34
|
+
"@nx/react": "22.0.0-beta.2",
|
|
35
35
|
"enhanced-resolve": "^5.8.3",
|
|
36
36
|
"picocolors": "^1.1.0",
|
|
37
37
|
"tsconfig-paths": "^4.1.2",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"metro-resolver": ">= 0.82.0"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@nx/detox": "22.0.0-beta.
|
|
46
|
-
"@nx/rollup": "22.0.0-beta.
|
|
45
|
+
"@nx/detox": "22.0.0-beta.2",
|
|
46
|
+
"@nx/rollup": "22.0.0-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"executors": "./executors.json",
|
|
49
49
|
"ng-update": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"change-webpack-to-metro.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/migrations/update-19-0-0/change-webpack-to-metro.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAKL,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBA0B9C"}
|
|
@@ -1,32 +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
|
-
* Migration:
|
|
7
|
-
* - change target 'export-web'
|
|
8
|
-
* - change bundler to 'metro'
|
|
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 === '@nx/expo:start') {
|
|
14
|
-
if (config.targets['web']) {
|
|
15
|
-
delete config.targets['web'];
|
|
16
|
-
}
|
|
17
|
-
if (config.targets['export-web']) {
|
|
18
|
-
config.targets['export-web'].options.bundler = 'metro';
|
|
19
|
-
}
|
|
20
|
-
if (tree.exists(`${config.root}/app.json`)) {
|
|
21
|
-
(0, devkit_1.updateJson)(tree, `${config.root}/app.json`, (appJson) => {
|
|
22
|
-
if (appJson.expo?.web) {
|
|
23
|
-
appJson.expo.web.bundler = 'metro';
|
|
24
|
-
}
|
|
25
|
-
return appJson;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
(0, devkit_1.updateProjectConfiguration)(tree, name, config);
|
|
30
|
-
}
|
|
31
|
-
await (0, devkit_1.formatFiles)(tree);
|
|
32
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@nx/devkit';
|
|
2
|
-
/**
|
|
3
|
-
* This function removes the deprecated webpack.config.js file from projects that use the expo:start executor
|
|
4
|
-
* @param tree
|
|
5
|
-
*/
|
|
6
|
-
export default function update(tree: Tree): Promise<void>;
|
|
7
|
-
//# sourceMappingURL=remove-deprecated-webpack-config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-deprecated-webpack-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/migrations/update-19-2-0/remove-deprecated-webpack-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,YAAY,CAAC;AAG/C;;;GAGG;AACH,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBAU9C"}
|
|
@@ -1,19 +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 path_1 = require("path");
|
|
6
|
-
/**
|
|
7
|
-
* This function removes the deprecated webpack.config.js file from projects that use the expo:start executor
|
|
8
|
-
* @param tree
|
|
9
|
-
*/
|
|
10
|
-
async function update(tree) {
|
|
11
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
12
|
-
for (const [_, config] of projects.entries()) {
|
|
13
|
-
if (config.targets?.['start']?.executor === '@nx/expo:start') {
|
|
14
|
-
if (tree.exists((0, path_1.join)(config.root, 'webpack.config.js'))) {
|
|
15
|
-
tree.delete((0, path_1.join)(config.root, 'webpack.config.js'));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-eas-pre-install.d.ts","sourceRoot":"","sources":["../../../../../../packages/expo/src/migrations/update-19-7-0/remove-eas-pre-install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmC,MAAM,YAAY,CAAC;AAGnE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,IAAI,EAAE,IAAI,QAexC"}
|
|
@@ -1,24 +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 path_1 = require("path");
|
|
6
|
-
/**
|
|
7
|
-
* Remove eas-build-pre-install script from app's package.json.
|
|
8
|
-
* This script causes an issue with Yarn 4.
|
|
9
|
-
*/
|
|
10
|
-
function update(tree) {
|
|
11
|
-
const projects = (0, devkit_1.getProjects)(tree);
|
|
12
|
-
for (const [_, config] of projects.entries()) {
|
|
13
|
-
const packageJsonPath = (0, path_1.join)(config.root, 'package.json');
|
|
14
|
-
if (!tree.exists(packageJsonPath)) {
|
|
15
|
-
continue;
|
|
16
|
-
}
|
|
17
|
-
(0, devkit_1.updateJson)(tree, (0, path_1.join)(config.root, 'package.json'), (packageJson) => {
|
|
18
|
-
if (packageJson.scripts?.['eas-build-pre-install']) {
|
|
19
|
-
delete packageJson.scripts['eas-build-pre-install'];
|
|
20
|
-
}
|
|
21
|
-
return packageJson;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|