@nx/expo 19.4.3 → 19.5.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/package.json +9 -9
- package/plugins/metro-resolver.js +1 -2
- package/plugins/with-nx-metro.js +1 -2
- package/src/executors/build/build.impl.js +1 -1
- package/src/executors/build-list/build-list.impl.js +2 -3
- package/src/executors/ensure-symlink/ensure-symlink.impl.js +1 -1
- package/src/executors/export/export.impl.js +2 -3
- package/src/executors/install/install.impl.js +3 -4
- package/src/executors/prebuild/prebuild.impl.js +2 -3
- package/src/executors/run/run.impl.js +1 -1
- package/src/executors/serve/lib/is-packager-running.js +1 -2
- package/src/executors/serve/serve.impl.d.ts +0 -1
- package/src/executors/serve/serve.impl.js +2 -3
- package/src/executors/start/start.impl.js +1 -1
- package/src/executors/submit/submit.impl.js +1 -1
- package/src/executors/sync-deps/sync-deps.impl.js +3 -4
- package/src/executors/update/update.impl.js +1 -1
- package/src/generators/application/application.js +2 -3
- package/src/generators/application/lib/add-e2e.js +1 -2
- package/src/generators/application/lib/add-eas-scripts.js +1 -2
- package/src/generators/application/lib/add-project.js +1 -2
- package/src/generators/application/lib/create-application-files.js +1 -2
- package/src/generators/application/lib/normalize-options.js +1 -2
- package/src/generators/component/component.js +2 -3
- package/src/generators/component/lib/add-import.js +1 -2
- package/src/generators/component/lib/normalize-options.js +1 -2
- package/src/generators/init/init.js +3 -4
- package/src/generators/init/lib/add-git-ignore-entry.js +1 -2
- package/src/generators/library/lib/normalize-options.js +1 -2
- package/src/generators/library/library.js +2 -3
- package/src/migrations/update-16-0-0/add-jest-expo.js +1 -1
- package/src/migrations/update-16-0-0/remove-deprecated-targets.js +1 -1
- package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +1 -1
- package/src/migrations/update-16-1-4/update-eas-scripts.js +1 -1
- package/src/migrations/update-16-2-2/add-submit-target.js +1 -1
- package/src/migrations/update-16-6-0/add-depends-on.js +1 -1
- package/src/migrations/update-16-6-0/update-metro-config.js +1 -1
- package/src/migrations/update-16-9-0/remove-types-react-native.js +1 -1
- package/src/migrations/update-16-9-0/update-eas-cli-version.js +1 -1
- package/src/migrations/update-18-0-0/change-outputDir-export-target.js +1 -1
- package/src/migrations/update-18-0-0/remove-block-list.js +1 -1
- package/src/migrations/update-18-0-0/remove-eas-cli.js +1 -1
- package/src/migrations/update-18-0-0/remove-symlink-target.js +1 -1
- package/src/migrations/update-19-0-0/change-webpack-to-metro.js +1 -1
- package/src/migrations/update-19-2-0/remove-deprecated-webpack-config.js +1 -1
- package/src/utils/add-jest.js +1 -2
- package/src/utils/add-linting.js +1 -2
- package/src/utils/ensure-dependencies.js +1 -2
- package/src/utils/ensure-node-modules-symlink.js +1 -2
- package/src/utils/find-all-npm-dependencies.js +1 -2
- package/src/utils/has-expo-plugin.js +1 -2
- package/src/utils/init-root-babel-config.js +1 -2
- package/src/utils/pod-install-task.js +2 -3
- package/src/utils/resolve-eas.js +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/expo",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.5.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,7 +28,7 @@
|
|
|
28
28
|
"main": "./index",
|
|
29
29
|
"types": "index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@nx/devkit": "19.
|
|
31
|
+
"@nx/devkit": "19.5.0-beta.1",
|
|
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.
|
|
41
|
-
"@nx/js": "19.
|
|
42
|
-
"@nx/eslint": "19.
|
|
43
|
-
"@nx/react": "19.
|
|
44
|
-
"@nx/web": "19.
|
|
45
|
-
"@nx/webpack": "19.
|
|
46
|
-
"@nrwl/expo": "19.
|
|
40
|
+
"@nx/jest": "19.5.0-beta.1",
|
|
41
|
+
"@nx/js": "19.5.0-beta.1",
|
|
42
|
+
"@nx/eslint": "19.5.0-beta.1",
|
|
43
|
+
"@nx/react": "19.5.0-beta.1",
|
|
44
|
+
"@nx/web": "19.5.0-beta.1",
|
|
45
|
+
"@nx/webpack": "19.5.0-beta.1",
|
|
46
|
+
"@nrwl/expo": "19.5.0-beta.1"
|
|
47
47
|
},
|
|
48
48
|
"executors": "./executors.json",
|
|
49
49
|
"ng-update": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getResolveRequest =
|
|
3
|
+
exports.getResolveRequest = getResolveRequest;
|
|
4
4
|
const metroResolver = require("metro-resolver");
|
|
5
5
|
const tsconfig_paths_1 = require("tsconfig-paths");
|
|
6
6
|
const chalk = require("chalk");
|
|
@@ -33,7 +33,6 @@ function getResolveRequest(extensions) {
|
|
|
33
33
|
throw new Error(`Cannot resolve ${chalk.bold(realModuleName)}`);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
exports.getResolveRequest = getResolveRequest;
|
|
37
36
|
function resolveRequestFromContext(resolveRequest, context, realModuleName, platform, debug) {
|
|
38
37
|
try {
|
|
39
38
|
return resolveRequest(context, realModuleName, platform);
|
package/plugins/with-nx-metro.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withNxMetro =
|
|
3
|
+
exports.withNxMetro = withNxMetro;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const metro_config_1 = require("metro-config");
|
|
6
6
|
const fs_extra_1 = require("fs-extra");
|
|
@@ -29,4 +29,3 @@ async function withNxMetro(userConfig, opts = {}) {
|
|
|
29
29
|
};
|
|
30
30
|
return (0, metro_config_1.mergeConfig)(userConfig, nxConfig);
|
|
31
31
|
}
|
|
32
|
-
exports.withNxMetro = withNxMetro;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = buildExecutor;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
@@ -17,7 +18,6 @@ async function* buildExecutor(options, context) {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
exports.default = buildExecutor;
|
|
21
21
|
function runCliBuild(workspaceRoot, projectRoot, options) {
|
|
22
22
|
return new Promise((resolve, reject) => {
|
|
23
23
|
childProcess = (0, child_process_1.fork)((0, resolve_eas_1.resolveEas)(workspaceRoot), ['build', ...createBuildOptions(options)], {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = buildListExecutor;
|
|
4
|
+
exports.runCliBuildList = runCliBuildList;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
const child_process_1 = require("child_process");
|
|
@@ -22,7 +23,6 @@ async function* buildListExecutor(options, context) {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
exports.default = buildListExecutor;
|
|
26
26
|
function runCliBuildList(workspaceRoot, projectRoot, options) {
|
|
27
27
|
return new Promise((resolve, reject) => {
|
|
28
28
|
childProcess = (0, child_process_1.fork)((0, resolve_eas_1.resolveEas)(workspaceRoot), ['build:list', ...createBuildListOptions(options)], {
|
|
@@ -55,7 +55,6 @@ function runCliBuildList(workspaceRoot, projectRoot, options) {
|
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
exports.runCliBuildList = runCliBuildList;
|
|
59
58
|
const nxOptions = ['output'];
|
|
60
59
|
function createBuildListOptions(options) {
|
|
61
60
|
return Object.keys(options).reduce((acc, optionKey) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = ensureSymlinkExecutor;
|
|
3
4
|
const ensure_node_modules_symlink_1 = require("../../utils/ensure-node-modules-symlink");
|
|
4
5
|
/**
|
|
5
6
|
* TODO (@xiongemi): remove this function in v20.
|
|
@@ -10,4 +11,3 @@ async function* ensureSymlinkExecutor(_, context) {
|
|
|
10
11
|
(0, ensure_node_modules_symlink_1.ensureNodeModulesSymlink)(context.root, projectRoot);
|
|
11
12
|
yield { success: true };
|
|
12
13
|
}
|
|
13
|
-
exports.default = ensureSymlinkExecutor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = exportExecutor;
|
|
4
|
+
exports.createExportOptions = createExportOptions;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
6
7
|
const path_1 = require("path");
|
|
@@ -19,7 +20,6 @@ async function* exportExecutor(options, context) {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
exports.default = exportExecutor;
|
|
23
23
|
function exportAsync(workspaceRoot, projectRoot, options) {
|
|
24
24
|
return new Promise((resolve, reject) => {
|
|
25
25
|
childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), [`export`, ...createExportOptions(options, projectRoot)], { cwd: (0, path_1.resolve)(workspaceRoot, projectRoot), env: process.env });
|
|
@@ -70,4 +70,3 @@ function createExportOptions(options, projectRoot) {
|
|
|
70
70
|
return acc;
|
|
71
71
|
}, []);
|
|
72
72
|
}
|
|
73
|
-
exports.createExportOptions = createExportOptions;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = installExecutor;
|
|
4
|
+
exports.installAndUpdatePackageJson = installAndUpdatePackageJson;
|
|
5
|
+
exports.installAsync = installAsync;
|
|
4
6
|
const devkit_1 = require("@nx/devkit");
|
|
5
7
|
const fileutils_1 = require("nx/src/utils/fileutils");
|
|
6
8
|
const child_process_1 = require("child_process");
|
|
@@ -20,7 +22,6 @@ async function* installExecutor(options, context) {
|
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
|
-
exports.default = installExecutor;
|
|
24
25
|
async function installAndUpdatePackageJson(context, options) {
|
|
25
26
|
await installAsync(context.root, options);
|
|
26
27
|
const projectRoot = context.projectsConfigurations.projects[context.projectName].root;
|
|
@@ -33,7 +34,6 @@ async function installAndUpdatePackageJson(context, options) {
|
|
|
33
34
|
: options.packages;
|
|
34
35
|
(0, sync_deps_impl_1.displayNewlyAddedDepsMessage)(context.projectName, await (0, sync_deps_impl_1.syncDeps)(context.projectName, projectPackageJson, projectPackageJsonPath, workspacePackageJson, context.projectGraph, packages));
|
|
35
36
|
}
|
|
36
|
-
exports.installAndUpdatePackageJson = installAndUpdatePackageJson;
|
|
37
37
|
function installAsync(workspaceRoot, options) {
|
|
38
38
|
return new Promise((resolve, reject) => {
|
|
39
39
|
childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), ['install', ...createInstallOptions(options)], { cwd: workspaceRoot, env: process.env });
|
|
@@ -53,7 +53,6 @@ function installAsync(workspaceRoot, options) {
|
|
|
53
53
|
});
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
exports.installAsync = installAsync;
|
|
57
56
|
// options from https://github.com/expo/expo/blob/main/packages/%40expo/cli/src/install/index.ts
|
|
58
57
|
function createInstallOptions(options) {
|
|
59
58
|
return Object.keys(options).reduce((acc, k) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = prebuildExecutor;
|
|
4
|
+
exports.prebuildAsync = prebuildAsync;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
6
7
|
const path_1 = require("path");
|
|
@@ -27,7 +28,6 @@ async function* prebuildExecutor(options, context) {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
exports.default = prebuildExecutor;
|
|
31
31
|
function prebuildAsync(workspaceRoot, projectRoot, options) {
|
|
32
32
|
return new Promise((resolve, reject) => {
|
|
33
33
|
childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), ['prebuild', ...createPrebuildOptions(options), '--no-install'], { cwd: (0, path_1.join)(workspaceRoot, projectRoot), env: process.env });
|
|
@@ -47,7 +47,6 @@ function prebuildAsync(workspaceRoot, projectRoot, options) {
|
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
exports.prebuildAsync = prebuildAsync;
|
|
51
50
|
const nxOptions = ['install', 'interactive']; // interactive is passed in by e2e tests
|
|
52
51
|
// options from https://github.com/expo/expo/blob/main/packages/%40expo/cli/src/prebuild/index.ts
|
|
53
52
|
function createPrebuildOptions(options) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = runExecutor;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
@@ -37,7 +38,6 @@ async function* runExecutor(options, context) {
|
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
|
-
exports.default = runExecutor;
|
|
41
41
|
function runCliRun(workspaceRoot, projectRoot, options) {
|
|
42
42
|
return new Promise((resolve, reject) => {
|
|
43
43
|
childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), ['run:' + options.platform, ...createRunOptions(options), '--no-install'], // pass in no-install to prevent node_modules install
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isPackagerRunning =
|
|
3
|
+
exports.isPackagerRunning = isPackagerRunning;
|
|
4
4
|
const node_fetch_1 = require("node-fetch");
|
|
5
5
|
async function isPackagerRunning(packagerPort) {
|
|
6
6
|
try {
|
|
@@ -12,4 +12,3 @@ async function isPackagerRunning(packagerPort) {
|
|
|
12
12
|
return 'not_running';
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
exports.isPackagerRunning = isPackagerRunning;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = serveExecutor;
|
|
4
|
+
exports.runCliServe = runCliServe;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
6
7
|
const path_1 = require("path");
|
|
@@ -28,7 +29,6 @@ async function* serveExecutor(options, context) {
|
|
|
28
29
|
process.once('SIGQUIT', processExitListener);
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
exports.default = serveExecutor;
|
|
32
32
|
async function runCliServe(workspaceRoot, projectRoot, options) {
|
|
33
33
|
const result = await (0, is_packager_running_1.isPackagerRunning)(options.port);
|
|
34
34
|
if (result === 'running') {
|
|
@@ -49,7 +49,6 @@ async function runCliServe(workspaceRoot, projectRoot, options) {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.runCliServe = runCliServe;
|
|
53
52
|
function serveAsync(workspaceRoot, projectRoot, options) {
|
|
54
53
|
return new Promise((resolve, reject) => {
|
|
55
54
|
const childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), ['start', '--web', ...createServeOptions(options)], {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = startExecutor;
|
|
3
4
|
const chalk = require("chalk");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
@@ -22,7 +23,6 @@ async function* startExecutor(options, context) {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
exports.default = startExecutor;
|
|
26
26
|
function startAsync(workspaceRoot, projectRoot, options) {
|
|
27
27
|
return new Promise((resolve, reject) => {
|
|
28
28
|
childProcess = (0, child_process_1.fork)(require.resolve('@expo/cli/build/bin/cli'), ['start', ...createStartOptions(options)], {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = submitExecutor;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
@@ -17,7 +18,6 @@ async function* submitExecutor(options, context) {
|
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
exports.default = submitExecutor;
|
|
21
21
|
function runCliSubmit(workspaceRoot, projectRoot, options) {
|
|
22
22
|
return new Promise((resolve, reject) => {
|
|
23
23
|
childProcess = (0, child_process_1.fork)((0, resolve_eas_1.resolveEas)(workspaceRoot), ['submit', ...createSubmitOptions(options)], {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.default = syncDepsExecutor;
|
|
4
|
+
exports.syncDeps = syncDeps;
|
|
5
|
+
exports.displayNewlyAddedDepsMessage = displayNewlyAddedDepsMessage;
|
|
4
6
|
const path_1 = require("path");
|
|
5
7
|
const chalk = require("chalk");
|
|
6
8
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -18,7 +20,6 @@ async function* syncDepsExecutor(options, context) {
|
|
|
18
20
|
: options.exclude, options.all, options.excludeImplicit));
|
|
19
21
|
yield { success: true };
|
|
20
22
|
}
|
|
21
|
-
exports.default = syncDepsExecutor;
|
|
22
23
|
async function syncDeps(projectName, projectPackageJson, projectPackageJsonPath, workspacePackageJson, projectGraph = (0, devkit_1.readCachedProjectGraph)(), include = [], exclude = [], all = false, excludeImplicit = false) {
|
|
23
24
|
let npmDeps = all
|
|
24
25
|
? Object.keys(workspacePackageJson.dependencies || {})
|
|
@@ -65,7 +66,6 @@ async function syncDeps(projectName, projectPackageJson, projectPackageJsonPath,
|
|
|
65
66
|
}
|
|
66
67
|
return newDeps;
|
|
67
68
|
}
|
|
68
|
-
exports.syncDeps = syncDeps;
|
|
69
69
|
function displayNewlyAddedDepsMessage(projectName, deps) {
|
|
70
70
|
if (deps.length > 0) {
|
|
71
71
|
devkit_1.logger.info(`${chalk.bold.cyan('info')} Added entries to 'package.json' for '${projectName}' (for autolink):
|
|
@@ -75,4 +75,3 @@ function displayNewlyAddedDepsMessage(projectName, deps) {
|
|
|
75
75
|
devkit_1.logger.info(`${chalk.bold.cyan('info')} Dependencies for '${projectName}' are up to date! No changes made.`);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
exports.displayNewlyAddedDepsMessage = displayNewlyAddedDepsMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = buildExecutor;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
@@ -21,7 +22,6 @@ async function* buildExecutor(options, context) {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
exports.default = buildExecutor;
|
|
25
25
|
function runCliUpdate(workspaceRoot, projectRoot, options) {
|
|
26
26
|
return new Promise((resolve, reject) => {
|
|
27
27
|
childProcess = (0, child_process_1.fork)((0, resolve_eas_1.resolveEas)(workspaceRoot), ['update', ...createUpdateOptions(options)], { cwd: (0, path_1.resolve)(workspaceRoot, projectRoot), env: process.env });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.expoApplicationGenerator = expoApplicationGenerator;
|
|
4
|
+
exports.expoApplicationGeneratorInternal = expoApplicationGeneratorInternal;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const js_1 = require("@nx/js");
|
|
6
7
|
const add_linting_1 = require("../../utils/add-linting");
|
|
@@ -21,7 +22,6 @@ async function expoApplicationGenerator(host, schema) {
|
|
|
21
22
|
...schema,
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
|
-
exports.expoApplicationGenerator = expoApplicationGenerator;
|
|
25
25
|
async function expoApplicationGeneratorInternal(host, schema) {
|
|
26
26
|
const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
27
27
|
const tasks = [];
|
|
@@ -59,5 +59,4 @@ async function expoApplicationGeneratorInternal(host, schema) {
|
|
|
59
59
|
});
|
|
60
60
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
61
61
|
}
|
|
62
|
-
exports.expoApplicationGeneratorInternal = expoApplicationGeneratorInternal;
|
|
63
62
|
exports.default = expoApplicationGenerator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addE2e =
|
|
3
|
+
exports.addE2e = addE2e;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const web_1 = require("@nx/web");
|
|
6
6
|
const versions_1 = require("../../../utils/versions");
|
|
@@ -83,4 +83,3 @@ async function addE2e(tree, options) {
|
|
|
83
83
|
return () => { };
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
exports.addE2e = addE2e;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addEasScripts =
|
|
3
|
+
exports.addEasScripts = addEasScripts;
|
|
4
4
|
const preInstallScript = `
|
|
5
5
|
/*
|
|
6
6
|
* This script is used to patch the '@nx/expo' package to work with EAS Build.
|
|
@@ -71,4 +71,3 @@ function addEasScripts(tree) {
|
|
|
71
71
|
tree.write(postInstallScriptPath, postInstallScript);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
exports.addEasScripts = addEasScripts;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addProject =
|
|
3
|
+
exports.addProject = addProject;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const has_expo_plugin_1 = require("../../../utils/has-expo-plugin");
|
|
6
6
|
const add_build_target_defaults_1 = require("@nx/devkit/src/generators/add-build-target-defaults");
|
|
@@ -19,7 +19,6 @@ function addProject(host, options) {
|
|
|
19
19
|
};
|
|
20
20
|
(0, devkit_1.addProjectConfiguration)(host, options.projectName, projectConfiguration, options.standaloneConfig);
|
|
21
21
|
}
|
|
22
|
-
exports.addProject = addProject;
|
|
23
22
|
function getTargets(options) {
|
|
24
23
|
const architect = {};
|
|
25
24
|
architect.start = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createApplicationFiles =
|
|
3
|
+
exports.createApplicationFiles = createApplicationFiles;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
function createApplicationFiles(host, options) {
|
|
@@ -25,4 +25,3 @@ function createApplicationFiles(host, options) {
|
|
|
25
25
|
(0, devkit_1.toJS)(host);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
exports.createApplicationFiles = createApplicationFiles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeOptions =
|
|
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
6
|
async function normalizeOptions(host, options) {
|
|
@@ -61,4 +61,3 @@ async function normalizeOptions(host, options) {
|
|
|
61
61
|
e2ePort,
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
exports.normalizeOptions = normalizeOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.expoComponentGenerator = expoComponentGenerator;
|
|
4
|
+
exports.expoComponentGeneratorInternal = expoComponentGeneratorInternal;
|
|
4
5
|
const ts = require("typescript");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
@@ -12,7 +13,6 @@ async function expoComponentGenerator(host, schema) {
|
|
|
12
13
|
...schema,
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
exports.expoComponentGenerator = expoComponentGenerator;
|
|
16
16
|
async function expoComponentGeneratorInternal(host, schema) {
|
|
17
17
|
const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
18
18
|
createComponentFiles(host, options);
|
|
@@ -21,7 +21,6 @@ async function expoComponentGeneratorInternal(host, schema) {
|
|
|
21
21
|
await (0, devkit_1.formatFiles)(host);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.expoComponentGeneratorInternal = expoComponentGeneratorInternal;
|
|
25
24
|
function createComponentFiles(host, options) {
|
|
26
25
|
(0, devkit_1.generateFiles)(host, (0, path_1.join)(__dirname, './files'), options.directory, {
|
|
27
26
|
...options,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addImport =
|
|
3
|
+
exports.addImport = addImport;
|
|
4
4
|
const js_1 = require("@nx/js");
|
|
5
5
|
const ts = require("typescript");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -26,4 +26,3 @@ function addImport(source, statement) {
|
|
|
26
26
|
];
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
exports.addImport = addImport;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeOptions =
|
|
3
|
+
exports.normalizeOptions = normalizeOptions;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const artifact_name_and_directory_utils_1 = require("@nx/devkit/src/generators/artifact-name-and-directory-utils");
|
|
6
6
|
async function normalizeOptions(host, options) {
|
|
@@ -34,7 +34,6 @@ async function normalizeOptions(host, options) {
|
|
|
34
34
|
projectName,
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
exports.normalizeOptions = normalizeOptions;
|
|
38
37
|
function assertValidOptions(options) {
|
|
39
38
|
const slashes = ['/', '\\'];
|
|
40
39
|
slashes.forEach((s) => {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.expoInitGenerator = expoInitGenerator;
|
|
4
|
+
exports.expoInitGeneratorInternal = expoInitGeneratorInternal;
|
|
5
|
+
exports.updateDependencies = updateDependencies;
|
|
4
6
|
const devkit_1 = require("@nx/devkit");
|
|
5
7
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
|
6
8
|
const plugin_1 = require("../../../plugins/plugin");
|
|
@@ -9,7 +11,6 @@ const add_git_ignore_entry_1 = require("./lib/add-git-ignore-entry");
|
|
|
9
11
|
function expoInitGenerator(tree, schema) {
|
|
10
12
|
return expoInitGeneratorInternal(tree, { addPlugin: false, ...schema });
|
|
11
13
|
}
|
|
12
|
-
exports.expoInitGenerator = expoInitGenerator;
|
|
13
14
|
async function expoInitGeneratorInternal(host, schema) {
|
|
14
15
|
const nxJson = (0, devkit_1.readNxJson)(host);
|
|
15
16
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|
|
@@ -43,7 +44,6 @@ async function expoInitGeneratorInternal(host, schema) {
|
|
|
43
44
|
}
|
|
44
45
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
45
46
|
}
|
|
46
|
-
exports.expoInitGeneratorInternal = expoInitGeneratorInternal;
|
|
47
47
|
function updateDependencies(host, schema) {
|
|
48
48
|
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
49
49
|
react: versions_1.reactVersion,
|
|
@@ -55,7 +55,6 @@ function updateDependencies(host, schema) {
|
|
|
55
55
|
'@expo/cli': versions_1.expoCliVersion,
|
|
56
56
|
}, undefined, schema.keepExistingVersions);
|
|
57
57
|
}
|
|
58
|
-
exports.updateDependencies = updateDependencies;
|
|
59
58
|
function moveDependency(host) {
|
|
60
59
|
return (0, devkit_1.removeDependenciesFromPackageJson)(host, ['@nx/react-native'], []);
|
|
61
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addGitIgnoreEntry =
|
|
3
|
+
exports.addGitIgnoreEntry = addGitIgnoreEntry;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const gitignore_entries_1 = require("./gitignore-entries");
|
|
6
6
|
function addGitIgnoreEntry(host) {
|
|
@@ -14,4 +14,3 @@ function addGitIgnoreEntry(host) {
|
|
|
14
14
|
}
|
|
15
15
|
host.write('.gitignore', content);
|
|
16
16
|
}
|
|
17
|
-
exports.addGitIgnoreEntry = addGitIgnoreEntry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeOptions =
|
|
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
6
|
async function normalizeOptions(host, options) {
|
|
@@ -32,4 +32,3 @@ async function normalizeOptions(host, options) {
|
|
|
32
32
|
};
|
|
33
33
|
return normalized;
|
|
34
34
|
}
|
|
35
|
-
exports.normalizeOptions = normalizeOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.expoLibraryGenerator = expoLibraryGenerator;
|
|
4
|
+
exports.expoLibraryGeneratorInternal = expoLibraryGeneratorInternal;
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
6
|
const js_1 = require("@nx/js");
|
|
6
7
|
const init_1 = require("../init/init");
|
|
@@ -19,7 +20,6 @@ async function expoLibraryGenerator(host, schema) {
|
|
|
19
20
|
...schema,
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
|
-
exports.expoLibraryGenerator = expoLibraryGenerator;
|
|
23
23
|
async function expoLibraryGeneratorInternal(host, schema) {
|
|
24
24
|
const options = await (0, normalize_options_1.normalizeOptions)(host, schema);
|
|
25
25
|
if (options.publishable === true && !schema.importPath) {
|
|
@@ -68,7 +68,6 @@ async function expoLibraryGeneratorInternal(host, schema) {
|
|
|
68
68
|
});
|
|
69
69
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
70
70
|
}
|
|
71
|
-
exports.expoLibraryGeneratorInternal = expoLibraryGeneratorInternal;
|
|
72
71
|
async function addProject(host, options) {
|
|
73
72
|
const project = {
|
|
74
73
|
root: options.projectRoot,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const jest_1 = require("@nx/jest");
|
|
5
6
|
/**
|
|
@@ -24,4 +25,3 @@ async function update(tree) {
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Remove deprecated @expo/cli targets
|
|
@@ -29,4 +30,3 @@ async function update(tree) {
|
|
|
29
30
|
}
|
|
30
31
|
await (0, devkit_1.formatFiles)(tree);
|
|
31
32
|
}
|
|
32
|
-
exports.default = update;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = replacePackage;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const replace_package_1 = require("@nx/devkit/src/utils/replace-package");
|
|
5
6
|
async function replacePackage(tree) {
|
|
6
7
|
await (0, replace_package_1.replaceNrwlPackageWithNxPackage)(tree, '@nrwl/expo', '@nx/expo');
|
|
7
8
|
await (0, devkit_1.formatFiles)(tree);
|
|
8
9
|
}
|
|
9
|
-
exports.default = replacePackage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const add_eas_scripts_1 = require("../../generators/application/lib/add-eas-scripts");
|
|
5
6
|
const path_1 = require("path");
|
|
@@ -40,4 +41,3 @@ function update(tree) {
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Add new submit target
|
|
@@ -19,4 +20,3 @@ async function update(tree) {
|
|
|
19
20
|
}
|
|
20
21
|
await (0, devkit_1.formatFiles)(tree);
|
|
21
22
|
}
|
|
22
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* This migration adds dependsOn to project.json.
|
|
@@ -26,4 +27,3 @@ async function update(tree) {
|
|
|
26
27
|
(0, devkit_1.updateProjectConfiguration)(tree, name, config);
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
/**
|
|
@@ -20,7 +21,6 @@ async function update(tree) {
|
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
exports.default = update;
|
|
24
24
|
const oldConfigComment = `/**
|
|
25
25
|
* Old custom configuration for React Native v0.71.
|
|
26
26
|
* From @react-native/metro-config 0.72.1, it is no longer necessary to use a config function to access the complete default config.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Remove @types/react-native package since it is no longer required. It would be a part of react native package.
|
|
@@ -10,4 +11,3 @@ async function update(tree) {
|
|
|
10
11
|
(0, devkit_1.removeDependenciesFromPackageJson)(tree, [], ['@types/react-native']);
|
|
11
12
|
await (0, devkit_1.formatFiles)(tree);
|
|
12
13
|
}
|
|
13
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
async function update(tree) {
|
|
5
6
|
const projects = (0, devkit_1.getProjects)(tree);
|
|
@@ -14,4 +15,3 @@ async function update(tree) {
|
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Remove the offset from the outputDir of the export target
|
|
@@ -22,4 +23,3 @@ async function update(tree) {
|
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* This migration remove blockList in metro.config.js.
|
|
@@ -25,4 +26,3 @@ async function update(tree) {
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Remove eas-cli from dev dependencies.
|
|
@@ -15,4 +16,3 @@ async function update(tree) {
|
|
|
15
16
|
(0, devkit_1.removeDependenciesFromPackageJson)(tree, [], ['eas-cli', 'metro', 'metro-resolver']);
|
|
16
17
|
await (0, devkit_1.formatFiles)(tree);
|
|
17
18
|
}
|
|
18
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const fs_extra_1 = require("fs-extra");
|
|
5
6
|
/**
|
|
@@ -16,7 +17,6 @@ async function update(tree) {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
exports.default = update;
|
|
20
20
|
function removeTargets(targets, targetNameToRemove) {
|
|
21
21
|
for (const targetName in targets) {
|
|
22
22
|
if (targetName === targetNameToRemove) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
/**
|
|
5
6
|
* Migration:
|
|
@@ -29,4 +30,3 @@ async function update(tree) {
|
|
|
29
30
|
}
|
|
30
31
|
await (0, devkit_1.formatFiles)(tree);
|
|
31
32
|
}
|
|
32
|
-
exports.default = update;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = update;
|
|
3
4
|
const devkit_1 = require("@nx/devkit");
|
|
4
5
|
const path_1 = require("path");
|
|
5
6
|
/**
|
|
@@ -16,4 +17,3 @@ async function update(tree) {
|
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
}
|
|
19
|
-
exports.default = update;
|
package/src/utils/add-jest.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addJest =
|
|
3
|
+
exports.addJest = addJest;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const jest_1 = require("@nx/jest");
|
|
6
6
|
async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, skipPackageJson, addPlugin) {
|
|
@@ -46,4 +46,3 @@ async function addJest(host, unitTestRunner, projectName, appProjectRoot, js, sk
|
|
|
46
46
|
host.write(configPath, content);
|
|
47
47
|
return jestTask;
|
|
48
48
|
}
|
|
49
|
-
exports.addJest = addJest;
|
package/src/utils/add-linting.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addLinting =
|
|
3
|
+
exports.addLinting = addLinting;
|
|
4
4
|
const eslint_1 = require("@nx/eslint");
|
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const lint_1 = require("@nx/react/src/utils/lint");
|
|
@@ -34,4 +34,3 @@ async function addLinting(host, options) {
|
|
|
34
34
|
}
|
|
35
35
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
36
36
|
}
|
|
37
|
-
exports.addLinting = addLinting;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureDependencies =
|
|
3
|
+
exports.ensureDependencies = ensureDependencies;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("./versions");
|
|
6
6
|
function ensureDependencies(host) {
|
|
@@ -27,4 +27,3 @@ function ensureDependencies(host) {
|
|
|
27
27
|
: {}),
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
exports.ensureDependencies = ensureDependencies;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ensureNodeModulesSymlink =
|
|
3
|
+
exports.ensureNodeModulesSymlink = ensureNodeModulesSymlink;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const os_1 = require("os");
|
|
6
6
|
const fs_extra_1 = require("fs-extra");
|
|
@@ -25,4 +25,3 @@ function ensureNodeModulesSymlink(workspaceRoot, projectRoot) {
|
|
|
25
25
|
}
|
|
26
26
|
(0, fs_extra_1.symlinkSync)(worksapceNodeModulesPath, appNodeModulesPath, symlinkType);
|
|
27
27
|
}
|
|
28
|
-
exports.ensureNodeModulesSymlink = ensureNodeModulesSymlink;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findAllNpmDependencies =
|
|
3
|
+
exports.findAllNpmDependencies = findAllNpmDependencies;
|
|
4
4
|
// Don't want to include '@nx/react-native' and '@nx/expo' because React Native
|
|
5
5
|
// autolink will warn that the package has no podspec file for iOS.
|
|
6
6
|
const EXCLUDED_EXTERNAL_NODES = new Set([
|
|
@@ -26,7 +26,6 @@ function findAllNpmDependencies(graph, projectName, options = { excludeImplicit:
|
|
|
26
26
|
// this is where the recursion happens
|
|
27
27
|
.flatMap((dep) => findAllNpmDependencies(graph, dep.target, options, seen)));
|
|
28
28
|
}
|
|
29
|
-
exports.findAllNpmDependencies = findAllNpmDependencies;
|
|
30
29
|
// This function is used to filter out dependencies based on the options
|
|
31
30
|
// provided.
|
|
32
31
|
function getFilterPredicate(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.hasExpoPlugin =
|
|
3
|
+
exports.hasExpoPlugin = hasExpoPlugin;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function hasExpoPlugin(tree) {
|
|
6
6
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
|
@@ -8,4 +8,3 @@ function hasExpoPlugin(tree) {
|
|
|
8
8
|
? p === '@nx/expo/plugin'
|
|
9
9
|
: p.plugin === '@nx/expo/plugin');
|
|
10
10
|
}
|
|
11
|
-
exports.hasExpoPlugin = hasExpoPlugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initRootBabelConfig =
|
|
3
|
+
exports.initRootBabelConfig = initRootBabelConfig;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function initRootBabelConfig(tree) {
|
|
6
6
|
if (tree.exists('/babel.config.json') || tree.exists('/babel.config.js')) {
|
|
@@ -10,4 +10,3 @@ function initRootBabelConfig(tree) {
|
|
|
10
10
|
babelrcRoots: ['*'], // Make sure .babelrc files other than root can be loaded in a monorepo
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
|
-
exports.initRootBabelConfig = initRootBabelConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.runPodInstall = runPodInstall;
|
|
4
|
+
exports.podInstall = podInstall;
|
|
4
5
|
const child_process_1 = require("child_process");
|
|
5
6
|
const os_1 = require("os");
|
|
6
7
|
const chalk = require("chalk");
|
|
@@ -40,7 +41,6 @@ function runPodInstall(iosDirectory, install = true, options = {
|
|
|
40
41
|
return podInstall(iosDirectory, options);
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
|
-
exports.runPodInstall = runPodInstall;
|
|
44
44
|
function podInstall(iosDirectory, options = {
|
|
45
45
|
buildFolder: './build',
|
|
46
46
|
repoUpdate: false,
|
|
@@ -63,4 +63,3 @@ function podInstall(iosDirectory, options = {
|
|
|
63
63
|
throw e;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
exports.podInstall = podInstall;
|
package/src/utils/resolve-eas.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveEas =
|
|
3
|
+
exports.resolveEas = resolveEas;
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
function resolveEas(workspaceRoot) {
|
|
6
6
|
try {
|
|
@@ -33,4 +33,3 @@ function resolveEas(workspaceRoot) {
|
|
|
33
33
|
throw new Error('Can not resolve EAS. Please run `npm install --global eas-cli` or `yarn global add eas-cli`.');
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
exports.resolveEas = resolveEas;
|