@nx/expo 20.2.2 → 20.3.0-beta.1
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 +77 -0
- package/package.json +8 -8
- package/src/executors/install/install.impl.js +2 -2
- package/src/generators/application/files/base/tsconfig.json.template +2 -0
- package/src/generators/application/lib/normalize-options.d.ts +1 -0
- package/src/generators/application/lib/normalize-options.js +2 -0
- package/src/generators/library/files/lib/tsconfig.json.template +2 -0
- package/src/generators/library/library.js +2 -2
- package/src/utils/versions.d.ts +18 -18
- package/src/utils/versions.js +18 -18
package/migrations.json
CHANGED
|
@@ -247,6 +247,83 @@
|
|
|
247
247
|
"alwaysAddToPackageJson": false
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
+
},
|
|
251
|
+
"20.3.0": {
|
|
252
|
+
"version": "20.3.0-beta.0",
|
|
253
|
+
"packages": {
|
|
254
|
+
"expo": {
|
|
255
|
+
"version": "~52.0.11",
|
|
256
|
+
"alwaysAddToPackageJson": false
|
|
257
|
+
},
|
|
258
|
+
"expo-splash-screen": {
|
|
259
|
+
"version": "~0.29.13",
|
|
260
|
+
"alwaysAddToPackageJson": false
|
|
261
|
+
},
|
|
262
|
+
"expo-status-bar": {
|
|
263
|
+
"version": "~2.0.0",
|
|
264
|
+
"alwaysAddToPackageJson": false
|
|
265
|
+
},
|
|
266
|
+
"@expo/cli": {
|
|
267
|
+
"version": "~0.21.8",
|
|
268
|
+
"alwaysAddToPackageJson": false
|
|
269
|
+
},
|
|
270
|
+
"babel-preset-expo": {
|
|
271
|
+
"version": "~12.0.1",
|
|
272
|
+
"alwaysAddToPackageJson": false
|
|
273
|
+
},
|
|
274
|
+
"react": {
|
|
275
|
+
"version": "~18.3.1",
|
|
276
|
+
"alwaysAddToPackageJson": false
|
|
277
|
+
},
|
|
278
|
+
"react-dom": {
|
|
279
|
+
"version": "~18.3.1",
|
|
280
|
+
"alwaysAddToPackageJson": false
|
|
281
|
+
},
|
|
282
|
+
"react-test-renderer": {
|
|
283
|
+
"version": "~18.3.1",
|
|
284
|
+
"alwaysAddToPackageJson": false
|
|
285
|
+
},
|
|
286
|
+
"@types/react": {
|
|
287
|
+
"version": "~18.3.12",
|
|
288
|
+
"alwaysAddToPackageJson": false
|
|
289
|
+
},
|
|
290
|
+
"react-native": {
|
|
291
|
+
"version": "~0.76.3",
|
|
292
|
+
"alwaysAddToPackageJson": false
|
|
293
|
+
},
|
|
294
|
+
"react-native-web": {
|
|
295
|
+
"version": "~0.19.13",
|
|
296
|
+
"alwaysAddToPackageJson": false
|
|
297
|
+
},
|
|
298
|
+
"@expo/metro-config": {
|
|
299
|
+
"version": "~0.19.4",
|
|
300
|
+
"alwaysAddToPackageJson": false
|
|
301
|
+
},
|
|
302
|
+
"@expo/metro-runtime": {
|
|
303
|
+
"version": "~4.0.0",
|
|
304
|
+
"alwaysAddToPackageJson": false
|
|
305
|
+
},
|
|
306
|
+
"react-native-svg-transformer": {
|
|
307
|
+
"version": "~1.5.0",
|
|
308
|
+
"alwaysAddToPackageJson": false
|
|
309
|
+
},
|
|
310
|
+
"react-native-svg": {
|
|
311
|
+
"version": "~15.8.0",
|
|
312
|
+
"alwaysAddToPackageJson": false
|
|
313
|
+
},
|
|
314
|
+
"@testing-library/react-native": {
|
|
315
|
+
"version": "~12.9.0",
|
|
316
|
+
"alwaysAddToPackageJson": false
|
|
317
|
+
},
|
|
318
|
+
"jest-expo": {
|
|
319
|
+
"version": "~52.0.2",
|
|
320
|
+
"alwaysAddToPackageJson": false
|
|
321
|
+
},
|
|
322
|
+
"@babel/runtime": {
|
|
323
|
+
"version": "7.26.0",
|
|
324
|
+
"alwaysAddToPackageJson": false
|
|
325
|
+
}
|
|
326
|
+
}
|
|
250
327
|
}
|
|
251
328
|
}
|
|
252
329
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.3.0-beta.1",
|
|
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.
|
|
32
|
-
"@nx/eslint": "20.
|
|
33
|
-
"@nx/jest": "20.
|
|
34
|
-
"@nx/js": "20.
|
|
35
|
-
"@nx/react": "20.
|
|
36
|
-
"@nx/web": "20.
|
|
37
|
-
"@nx/webpack": "20.
|
|
31
|
+
"@nx/devkit": "20.3.0-beta.1",
|
|
32
|
+
"@nx/eslint": "20.3.0-beta.1",
|
|
33
|
+
"@nx/jest": "20.3.0-beta.1",
|
|
34
|
+
"@nx/js": "20.3.0-beta.1",
|
|
35
|
+
"@nx/react": "20.3.0-beta.1",
|
|
36
|
+
"@nx/web": "20.3.0-beta.1",
|
|
37
|
+
"@nx/webpack": "20.3.0-beta.1",
|
|
38
38
|
"enhanced-resolve": "^5.8.3",
|
|
39
39
|
"metro-config": "~0.80.4",
|
|
40
40
|
"metro-resolver": "~0.80.4",
|
|
@@ -25,10 +25,10 @@ async function installAndUpdatePackageJson(context, options) {
|
|
|
25
25
|
const packages = typeof options.packages === 'string'
|
|
26
26
|
? options.packages.split(',')
|
|
27
27
|
: options.packages ?? [];
|
|
28
|
-
await installAsync(packages,
|
|
28
|
+
await installAsync(packages, {
|
|
29
29
|
fix: options.fix,
|
|
30
30
|
check: options.check,
|
|
31
|
-
}
|
|
31
|
+
}, createInstallOptions({ force: options.force }));
|
|
32
32
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
33
33
|
const workspacePackageJsonPath = (0, path_1.join)(context.root, 'package.json');
|
|
34
34
|
const projectPackageJsonPath = (0, path_1.join)(context.root, projectRoot, 'package.json');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "<%= offsetFromRoot %>tsconfig.base.json",
|
|
3
|
+
<%_ if (!isTsSolutionSetup) { _%>
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"allowSyntheticDefaultImports": true,
|
|
5
6
|
"jsx": "react-native",
|
|
@@ -10,6 +11,7 @@
|
|
|
10
11
|
"strict": true,
|
|
11
12
|
"declaration": true
|
|
12
13
|
},
|
|
14
|
+
<%_ } _%>
|
|
13
15
|
"files": [],
|
|
14
16
|
"include": [],
|
|
15
17
|
"references": [
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
|
6
7
|
async function normalizeOptions(host, options) {
|
|
7
8
|
await (0, project_name_and_root_utils_1.ensureProjectName)(host, options, 'application');
|
|
8
9
|
const { projectName: appProjectName, names: projectNames, projectRoot: appProjectRoot, } = await (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(host, {
|
|
@@ -35,5 +36,6 @@ async function normalizeOptions(host, options) {
|
|
|
35
36
|
rootProject,
|
|
36
37
|
e2eProjectName,
|
|
37
38
|
e2eProjectRoot,
|
|
39
|
+
isTsSolutionSetup: (0, ts_solution_setup_1.isUsingTsSolutionSetup)(host),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "<%= rootTsConfigPath %>",
|
|
3
|
+
<%_ if (!isUsingTsSolutionConfig) { _%>
|
|
3
4
|
"compilerOptions": {
|
|
4
5
|
"jsx": "react-jsx",
|
|
5
6
|
"allowJs": true,
|
|
6
7
|
"esModuleInterop": true,
|
|
7
8
|
"allowSyntheticDefaultImports": true
|
|
8
9
|
},
|
|
10
|
+
<%_ } _%>
|
|
9
11
|
"files": [],
|
|
10
12
|
"include": [],
|
|
11
13
|
"references": [
|
|
@@ -56,7 +56,7 @@ async function expoLibraryGeneratorInternal(host, schema) {
|
|
|
56
56
|
if (options.publishable || options.buildable) {
|
|
57
57
|
updateLibPackageNpmScope(host, options);
|
|
58
58
|
}
|
|
59
|
-
if (!options.skipTsConfig) {
|
|
59
|
+
if (!options.skipTsConfig && !options.isUsingTsSolutionConfig) {
|
|
60
60
|
(0, js_1.addTsConfigPath)(host, options.importPath, [
|
|
61
61
|
(0, devkit_1.joinPathFragments)(options.projectRoot, './src', 'index.' + (options.js ? 'js' : 'ts')),
|
|
62
62
|
]);
|
|
@@ -73,7 +73,7 @@ async function expoLibraryGeneratorInternal(host, schema) {
|
|
|
73
73
|
}
|
|
74
74
|
// Always run install to link packages.
|
|
75
75
|
if (options.isUsingTsSolutionConfig) {
|
|
76
|
-
tasks.push(() => (0, devkit_1.installPackagesTask)(host));
|
|
76
|
+
tasks.push(() => (0, devkit_1.installPackagesTask)(host, true));
|
|
77
77
|
}
|
|
78
78
|
tasks.push(() => {
|
|
79
79
|
(0, log_show_project_command_1.logShowProjectCommand)(options.name);
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const nxVersion: any;
|
|
2
|
-
export declare const expoVersion = "~
|
|
3
|
-
export declare const expoSplashScreenVersion = "~0.
|
|
4
|
-
export declare const expoStatusBarVersion = "~
|
|
5
|
-
export declare const expoCliVersion = "~0.
|
|
6
|
-
export declare const babelPresetExpoVersion = "~
|
|
7
|
-
export declare const reactVersion = "18.
|
|
8
|
-
export declare const reactDomVersion = "18.
|
|
9
|
-
export declare const reactTestRendererVersion = "18.
|
|
10
|
-
export declare const typesReactVersion = "~18.
|
|
11
|
-
export declare const reactNativeVersion = "0.
|
|
12
|
-
export declare const reactNativeWebVersion = "~0.19.
|
|
13
|
-
export declare const expoMetroConfigVersion = "~0.
|
|
14
|
-
export declare const expoMetroRuntimeVersion = "~
|
|
15
|
-
export declare const reactNativeSvgTransformerVersion = "1.
|
|
16
|
-
export declare const reactNativeSvgVersion = "15.
|
|
17
|
-
export declare const testingLibraryReactNativeVersion = "~12.
|
|
2
|
+
export declare const expoVersion = "~52.0.11";
|
|
3
|
+
export declare const expoSplashScreenVersion = "~0.29.13";
|
|
4
|
+
export declare const expoStatusBarVersion = "~2.0.0";
|
|
5
|
+
export declare const expoCliVersion = "~0.21.8";
|
|
6
|
+
export declare const babelPresetExpoVersion = "~12.0.1";
|
|
7
|
+
export declare const reactVersion = "~18.3.1";
|
|
8
|
+
export declare const reactDomVersion = "~18.3.1";
|
|
9
|
+
export declare const reactTestRendererVersion = "~18.3.1";
|
|
10
|
+
export declare const typesReactVersion = "~18.3.12";
|
|
11
|
+
export declare const reactNativeVersion = "0.76.3";
|
|
12
|
+
export declare const reactNativeWebVersion = "~0.19.13";
|
|
13
|
+
export declare const expoMetroConfigVersion = "~0.19.4";
|
|
14
|
+
export declare const expoMetroRuntimeVersion = "~4.0.0";
|
|
15
|
+
export declare const reactNativeSvgTransformerVersion = "~1.5.0";
|
|
16
|
+
export declare const reactNativeSvgVersion = "~15.8.0";
|
|
17
|
+
export declare const testingLibraryReactNativeVersion = "~12.9.0";
|
|
18
18
|
export declare const testingLibraryJestNativeVersion = "~5.4.3";
|
|
19
|
-
export declare const jestExpoVersion = "~
|
|
20
|
-
export declare const babelRuntimeVersion = "7.
|
|
19
|
+
export declare const jestExpoVersion = "~52.0.2";
|
|
20
|
+
export declare const babelRuntimeVersion = "~7.26.0";
|
package/src/utils/versions.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.babelRuntimeVersion = exports.jestExpoVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.expoMetroRuntimeVersion = exports.expoMetroConfigVersion = exports.reactNativeWebVersion = exports.reactNativeVersion = exports.typesReactVersion = exports.reactTestRendererVersion = exports.reactDomVersion = exports.reactVersion = exports.babelPresetExpoVersion = exports.expoCliVersion = exports.expoStatusBarVersion = exports.expoSplashScreenVersion = exports.expoVersion = exports.nxVersion = void 0;
|
|
4
4
|
exports.nxVersion = require('../../package.json').version;
|
|
5
|
-
exports.expoVersion = '~
|
|
6
|
-
exports.expoSplashScreenVersion = '~0.
|
|
7
|
-
exports.expoStatusBarVersion = '~
|
|
8
|
-
exports.expoCliVersion = '~0.
|
|
9
|
-
exports.babelPresetExpoVersion = '~
|
|
10
|
-
exports.reactVersion = '18.
|
|
11
|
-
exports.reactDomVersion = '18.
|
|
12
|
-
exports.reactTestRendererVersion = '18.
|
|
13
|
-
exports.typesReactVersion = '~18.
|
|
14
|
-
exports.reactNativeVersion = '0.
|
|
15
|
-
exports.reactNativeWebVersion = '~0.19.
|
|
16
|
-
exports.expoMetroConfigVersion = '~0.
|
|
17
|
-
exports.expoMetroRuntimeVersion = '~
|
|
18
|
-
exports.reactNativeSvgTransformerVersion = '1.
|
|
19
|
-
exports.reactNativeSvgVersion = '15.
|
|
20
|
-
exports.testingLibraryReactNativeVersion = '~12.
|
|
5
|
+
exports.expoVersion = '~52.0.11';
|
|
6
|
+
exports.expoSplashScreenVersion = '~0.29.13';
|
|
7
|
+
exports.expoStatusBarVersion = '~2.0.0';
|
|
8
|
+
exports.expoCliVersion = '~0.21.8'; // @expo/cli
|
|
9
|
+
exports.babelPresetExpoVersion = '~12.0.1';
|
|
10
|
+
exports.reactVersion = '~18.3.1';
|
|
11
|
+
exports.reactDomVersion = '~18.3.1';
|
|
12
|
+
exports.reactTestRendererVersion = '~18.3.1';
|
|
13
|
+
exports.typesReactVersion = '~18.3.12';
|
|
14
|
+
exports.reactNativeVersion = '0.76.3';
|
|
15
|
+
exports.reactNativeWebVersion = '~0.19.13';
|
|
16
|
+
exports.expoMetroConfigVersion = '~0.19.4';
|
|
17
|
+
exports.expoMetroRuntimeVersion = '~4.0.0';
|
|
18
|
+
exports.reactNativeSvgTransformerVersion = '~1.5.0';
|
|
19
|
+
exports.reactNativeSvgVersion = '~15.8.0';
|
|
20
|
+
exports.testingLibraryReactNativeVersion = '~12.9.0';
|
|
21
21
|
exports.testingLibraryJestNativeVersion = '~5.4.3';
|
|
22
|
-
exports.jestExpoVersion = '~
|
|
23
|
-
exports.babelRuntimeVersion = '7.
|
|
22
|
+
exports.jestExpoVersion = '~52.0.2';
|
|
23
|
+
exports.babelRuntimeVersion = '~7.26.0';
|