@nx/react-native 20.6.2 → 20.6.3
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/react-native",
|
|
3
|
-
"version": "20.6.
|
|
3
|
+
"version": "20.6.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"picocolors": "^1.1.0",
|
|
36
36
|
"tsconfig-paths": "^4.1.2",
|
|
37
37
|
"tslib": "^2.3.0",
|
|
38
|
-
"@nx/devkit": "20.6.
|
|
39
|
-
"@nx/jest": "20.6.
|
|
40
|
-
"@nx/js": "20.6.
|
|
41
|
-
"@nx/eslint": "20.6.
|
|
42
|
-
"@nx/react": "20.6.
|
|
43
|
-
"@nx/workspace": "20.6.
|
|
38
|
+
"@nx/devkit": "20.6.3",
|
|
39
|
+
"@nx/jest": "20.6.3",
|
|
40
|
+
"@nx/js": "20.6.3",
|
|
41
|
+
"@nx/eslint": "20.6.3",
|
|
42
|
+
"@nx/react": "20.6.3",
|
|
43
|
+
"@nx/workspace": "20.6.3"
|
|
44
44
|
},
|
|
45
45
|
"executors": "./executors.json",
|
|
46
46
|
"ng-update": {
|
|
@@ -41,13 +41,13 @@ async function reactNativeLibraryGeneratorInternal(host, schema) {
|
|
|
41
41
|
tasks.push((0, ensure_dependencies_1.ensureDependencies)(host));
|
|
42
42
|
}
|
|
43
43
|
createFiles(host, options);
|
|
44
|
+
if (options.isUsingTsSolutionConfig) {
|
|
45
|
+
await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
|
|
46
|
+
}
|
|
44
47
|
const addProjectTask = await addProject(host, options);
|
|
45
48
|
if (addProjectTask) {
|
|
46
49
|
tasks.push(addProjectTask);
|
|
47
50
|
}
|
|
48
|
-
if (options.isUsingTsSolutionConfig) {
|
|
49
|
-
await (0, ts_solution_setup_1.addProjectToTsSolutionWorkspace)(host, options.projectRoot);
|
|
50
|
-
}
|
|
51
51
|
const lintTask = await (0, add_linting_1.addLinting)(host, {
|
|
52
52
|
...options,
|
|
53
53
|
projectName: options.name,
|
|
@@ -188,6 +188,12 @@ function createFiles(host, options) {
|
|
|
188
188
|
updateTsConfig(host, options);
|
|
189
189
|
}
|
|
190
190
|
function determineEntryFields(options) {
|
|
191
|
+
if (options.buildable ||
|
|
192
|
+
options.publishable ||
|
|
193
|
+
!options.isUsingTsSolutionConfig) {
|
|
194
|
+
// For buildable libraries, the entries are configured by the bundler (i.e. Rollup).
|
|
195
|
+
return undefined;
|
|
196
|
+
}
|
|
191
197
|
return {
|
|
192
198
|
main: options.js ? './src/index.js' : './src/index.ts',
|
|
193
199
|
types: options.js ? './src/index.js' : './src/index.ts',
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function formatFile(content: any, ...values: any[]): string;
|
package/src/utils/format-file.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatFile = formatFile;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const prettier_1 = require("prettier");
|
|
6
|
-
function formatFile(content, ...values) {
|
|
7
|
-
return (0, prettier_1.format)((0, devkit_1.stripIndents)(content, values)
|
|
8
|
-
.split('\n')
|
|
9
|
-
.map((line) => line.trim())
|
|
10
|
-
.join('')
|
|
11
|
-
.trim(), {
|
|
12
|
-
singleQuote: true,
|
|
13
|
-
parser: 'typescript',
|
|
14
|
-
});
|
|
15
|
-
}
|