@nx/react-native 22.7.0-beta.1 → 22.7.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/package.json +8 -8
- package/plugins/metro-resolver.js +3 -2
- package/src/executors/storybook/storybook.impl.js +2 -1
- package/src/executors/sync-deps/sync-deps.impl.js +2 -1
- package/src/generators/application/application.js +2 -1
- package/src/generators/init/lib/add-git-ignore-entry.js +2 -1
- package/src/generators/library/library.js +3 -2
- package/src/generators/web-configuration/files/base-vite/vite.config.mts__tmpl__ +8 -5
- package/src/generators/web-configuration/web-configuration.js +34 -1
- package/src/migrations/update-21-4-0/upgrade-react-native-projects.d.ts.map +1 -1
- package/src/migrations/update-21-4-0/upgrade-react-native-projects.js +1 -0
- package/src/utils/add-jest.d.ts.map +1 -1
- package/src/utils/add-jest.js +6 -3
- package/src/utils/add-linting.d.ts.map +1 -1
- package/src/utils/add-linting.js +1 -1
- package/src/utils/pod-install-task.js +4 -3
- package/src/utils/testing-generators.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/react-native",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.2",
|
|
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": [
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"main": "./index.js",
|
|
27
27
|
"types": "index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@nx/devkit": "22.7.0-beta.
|
|
30
|
-
"@nx/js": "22.7.0-beta.
|
|
31
|
-
"@nx/eslint": "22.7.0-beta.
|
|
32
|
-
"@nx/react": "22.7.0-beta.
|
|
29
|
+
"@nx/devkit": "22.7.0-beta.2",
|
|
30
|
+
"@nx/js": "22.7.0-beta.2",
|
|
31
|
+
"@nx/eslint": "22.7.0-beta.2",
|
|
32
|
+
"@nx/react": "22.7.0-beta.2",
|
|
33
33
|
"ajv": "^8.12.0",
|
|
34
34
|
"enhanced-resolve": "^5.8.3",
|
|
35
35
|
"ignore": "^5.0.4",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"metro-resolver": ">= 0.82.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"nx": "22.7.0-beta.
|
|
46
|
+
"nx": "22.7.0-beta.2"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@nx/detox": "22.7.0-beta.
|
|
50
|
-
"@nx/rollup": "22.7.0-beta.
|
|
49
|
+
"@nx/detox": "22.7.0-beta.2",
|
|
50
|
+
"@nx/rollup": "22.7.0-beta.2"
|
|
51
51
|
},
|
|
52
52
|
"executors": "./executors.json",
|
|
53
53
|
"ng-update": {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getResolveRequest = getResolveRequest;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const tsconfig_paths_1 = require("tsconfig-paths");
|
|
5
|
-
const pc = require("picocolors");
|
|
6
|
+
const pc = tslib_1.__importStar(require("picocolors"));
|
|
6
7
|
const enhanced_resolve_1 = require("enhanced-resolve");
|
|
7
8
|
const path_1 = require("path");
|
|
8
|
-
const fs = require("fs");
|
|
9
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
9
10
|
const devkit_1 = require("@nx/devkit");
|
|
10
11
|
// Cache for metro-resolver module
|
|
11
12
|
let metroResolver = null;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = reactNativeStorybookExecutor;
|
|
4
4
|
exports.runCliStorybook = runCliStorybook;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const node_fs_1 = require("node:fs");
|
|
6
7
|
const path_1 = require("path");
|
|
7
8
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const pc = require("picocolors");
|
|
9
|
+
const pc = tslib_1.__importStar(require("picocolors"));
|
|
9
10
|
const tinyglobby_1 = require("tinyglobby");
|
|
10
11
|
const sync_deps_impl_1 = require("../sync-deps/sync-deps.impl");
|
|
11
12
|
/**
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = syncDepsExecutor;
|
|
4
4
|
exports.syncDeps = syncDeps;
|
|
5
5
|
exports.displayNewlyAddedDepsMessage = displayNewlyAddedDepsMessage;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
6
7
|
const path_1 = require("path");
|
|
7
|
-
const pc = require("picocolors");
|
|
8
|
+
const pc = tslib_1.__importStar(require("picocolors"));
|
|
8
9
|
const devkit_1 = require("@nx/devkit");
|
|
9
10
|
const find_all_npm_dependencies_1 = require("../../utils/find-all-npm-dependencies");
|
|
10
11
|
async function* syncDepsExecutor(options, context) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reactNativeApplicationGenerator = reactNativeApplicationGenerator;
|
|
4
4
|
exports.reactNativeApplicationGeneratorInternal = reactNativeApplicationGeneratorInternal;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const js_1 = require("@nx/js");
|
|
7
8
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
@@ -11,7 +12,7 @@ const chmod_android_gradle_files_1 = require("../../utils/chmod-android-gradle-f
|
|
|
11
12
|
const pod_install_task_1 = require("../../utils/pod-install-task");
|
|
12
13
|
const web_configuration_1 = require("../web-configuration/web-configuration");
|
|
13
14
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
14
|
-
const init_1 = require("../init/init");
|
|
15
|
+
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
15
16
|
const add_project_1 = require("./lib/add-project");
|
|
16
17
|
const create_application_files_1 = require("./lib/create-application-files");
|
|
17
18
|
const add_e2e_1 = require("./lib/add-e2e");
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addGitIgnoreEntry = addGitIgnoreEntry;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const ignore_1 = require("ignore");
|
|
6
|
+
const ignore_1 = tslib_1.__importDefault(require("ignore"));
|
|
6
7
|
const gitignore_entries_1 = require("./gitignore-entries");
|
|
7
8
|
function addGitIgnoreEntry(host) {
|
|
8
9
|
if (!host.exists('.gitignore')) {
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reactNativeLibraryGenerator = reactNativeLibraryGenerator;
|
|
4
4
|
exports.reactNativeLibraryGeneratorInternal = reactNativeLibraryGeneratorInternal;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
const js_1 = require("@nx/js");
|
|
7
|
-
const init_1 = require("../init/init");
|
|
8
|
+
const init_1 = tslib_1.__importDefault(require("../init/init"));
|
|
8
9
|
const add_linting_1 = require("../../utils/add-linting");
|
|
9
10
|
const add_jest_1 = require("../../utils/add-jest");
|
|
10
|
-
const component_1 = require("../component/component");
|
|
11
|
+
const component_1 = tslib_1.__importDefault(require("../component/component"));
|
|
11
12
|
const normalize_options_1 = require("./lib/normalize-options");
|
|
12
13
|
const ensure_dependencies_1 = require("../../utils/ensure-dependencies");
|
|
13
14
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineConfig } from 'vite';
|
|
1
|
+
import { defineConfig, transformWithEsbuild } from 'vite';
|
|
2
2
|
import react from '@vitejs/plugin-react';
|
|
3
3
|
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
|
|
4
|
-
import * as esbuild from 'esbuild';
|
|
5
4
|
import { readFileSync } from 'fs';
|
|
6
5
|
|
|
7
6
|
const extensions = [
|
|
@@ -20,10 +19,13 @@ const extensions = [
|
|
|
20
19
|
|
|
21
20
|
const rollupPlugin = (matchers: RegExp[]) => ({
|
|
22
21
|
name: 'js-in-jsx',
|
|
23
|
-
load(id: string) {
|
|
22
|
+
async load(id: string) {
|
|
24
23
|
if (matchers.some((matcher) => matcher.test(id)) && id.endsWith('.js')) {
|
|
25
24
|
const file = readFileSync(id, { encoding: 'utf-8' });
|
|
26
|
-
return
|
|
25
|
+
return transformWithEsbuild(file, id, {
|
|
26
|
+
loader: 'jsx',
|
|
27
|
+
jsx: 'automatic',
|
|
28
|
+
});
|
|
27
29
|
}
|
|
28
30
|
},
|
|
29
31
|
});
|
|
@@ -39,7 +41,8 @@ export default defineConfig({
|
|
|
39
41
|
alias: {
|
|
40
42
|
'react-native': 'react-native-web',
|
|
41
43
|
'react-native-svg': 'react-native-svg-web',
|
|
42
|
-
'@react-native/assets-registry/registry':
|
|
44
|
+
'@react-native/assets-registry/registry':
|
|
45
|
+
'react-native-web/dist/modules/AssetRegistry/index',
|
|
43
46
|
},
|
|
44
47
|
},
|
|
45
48
|
build: {
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.webConfigurationGenerator = webConfigurationGenerator;
|
|
4
37
|
const devkit_1 = require("@nx/devkit");
|
|
@@ -81,7 +114,7 @@ async function addBundlerConfiguration(tree, normalizedSchema) {
|
|
|
81
114
|
});
|
|
82
115
|
tasks.push(webpackInitTask);
|
|
83
116
|
if (!normalizedSchema.skipPackageJson) {
|
|
84
|
-
const { ensureDependencies } = await Promise.resolve().then(() => require('@nx/webpack/src/utils/ensure-dependencies'));
|
|
117
|
+
const { ensureDependencies } = await Promise.resolve().then(() => __importStar(require('@nx/webpack/src/utils/ensure-dependencies')));
|
|
85
118
|
tasks.push(ensureDependencies(tree, { uiFramework: 'react' }));
|
|
86
119
|
}
|
|
87
120
|
if (!(0, has_webpack_plugin_1.hasWebpackPlugin)(tree)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-react-native-projects.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/migrations/update-21-4-0/upgrade-react-native-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAML,MAAM,YAAY,CAAC;AAIpB,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"upgrade-react-native-projects.d.ts","sourceRoot":"","sources":["../../../../../../packages/react-native/src/migrations/update-21-4-0/upgrade-react-native-projects.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAML,MAAM,YAAY,CAAC;AAIpB,wBAA8B,MAAM,CAAC,IAAI,EAAE,IAAI,iBA6B9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-jest.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-jest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiC,MAAM,YAAY,CAAC;AAGjE,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,GAAG,MAAM,EAC/B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,OAAO,EACX,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"add-jest.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-jest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiC,MAAM,YAAY,CAAC;AAGjE,wBAAsB,OAAO,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,GAAG,MAAM,EAC/B,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,EAAE,EAAE,OAAO,EACX,eAAe,EAAE,OAAO,EACxB,SAAS,EAAE,OAAO,EAClB,uBAAuB,EAAE,MAAM,uBA2DhC"}
|
package/src/utils/add-jest.js
CHANGED
|
@@ -32,19 +32,22 @@ module.exports = {
|
|
|
32
32
|
moduleFileExtensions: ['ts', 'js', 'html', 'tsx', 'jsx'],
|
|
33
33
|
setupFilesAfterEnv: ['<rootDir>/src/test-setup.${js ? 'js' : 'ts'}'],
|
|
34
34
|
moduleNameMapper: {
|
|
35
|
-
'
|
|
35
|
+
'[.]svg$': '@nx/react-native/plugins/jest/svg-mock'
|
|
36
36
|
},
|
|
37
37
|
transform: {
|
|
38
|
-
'
|
|
38
|
+
'^.+[.](js|ts|tsx)$': [
|
|
39
39
|
'babel-jest',
|
|
40
40
|
{
|
|
41
41
|
configFile: __dirname + '/.babelrc.js',
|
|
42
42
|
},
|
|
43
43
|
],
|
|
44
|
-
'
|
|
44
|
+
'^.+[.](bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$': require.resolve(
|
|
45
45
|
'react-native/jest/assetFileTransformer.js'
|
|
46
46
|
),
|
|
47
47
|
},
|
|
48
|
+
transformIgnorePatterns: [
|
|
49
|
+
'node_modules/(?!(.pnpm/.+/node_modules/)?(react-native|@react-native(-community)?)/)',
|
|
50
|
+
],
|
|
48
51
|
coverageDirectory: '${(0, devkit_1.offsetFromRoot)(appProjectRoot)}coverage/${appProjectRoot}'
|
|
49
52
|
};`;
|
|
50
53
|
host.write(configPath, content);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AACtE,OAAO,EAEL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;AAYpB,UAAU,gBAAgB;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"add-linting.d.ts","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-linting.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAwB,MAAM,YAAY,CAAC;AACtE,OAAO,EAEL,iBAAiB,EAEjB,IAAI,EACL,MAAM,YAAY,CAAC;AAYpB,UAAU,gBAAgB;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,8BAyFrE"}
|
package/src/utils/add-linting.js
CHANGED
|
@@ -49,7 +49,7 @@ async function addLinting(host, options) {
|
|
|
49
49
|
}
|
|
50
50
|
if ((0, eslint_file_1.isEslintConfigSupported)(host)) {
|
|
51
51
|
if ((0, flat_config_1.useFlatConfig)(host)) {
|
|
52
|
-
(0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react');
|
|
52
|
+
(0, eslint_file_1.addPredefinedConfigToFlatLintConfig)(host, options.projectRoot, 'flat/react', { checkBaseConfig: true });
|
|
53
53
|
// Add an empty rules object to users know how to add/override rules
|
|
54
54
|
(0, eslint_file_1.addOverrideToLintConfig)(host, options.projectRoot, {
|
|
55
55
|
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.runPodInstall = runPodInstall;
|
|
4
4
|
exports.podInstall = podInstall;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const child_process_1 = require("child_process");
|
|
6
7
|
const node_fs_1 = require("node:fs");
|
|
7
8
|
const os_1 = require("os");
|
|
8
9
|
const path_1 = require("path");
|
|
9
|
-
const pc = require("picocolors");
|
|
10
|
+
const pc = tslib_1.__importStar(require("picocolors"));
|
|
10
11
|
const devkit_1 = require("@nx/devkit");
|
|
11
12
|
const podInstallErrorMessage = `
|
|
12
13
|
Running ${pc.bold('pod install')} failed, see above.
|
|
@@ -53,7 +54,7 @@ function podInstall(iosDirectory, options = {
|
|
|
53
54
|
(0, child_process_1.execSync)('touch .xcode.env', {
|
|
54
55
|
cwd: iosDirectory,
|
|
55
56
|
stdio: 'inherit',
|
|
56
|
-
windowsHide:
|
|
57
|
+
windowsHide: true,
|
|
57
58
|
});
|
|
58
59
|
}
|
|
59
60
|
const podCommand = [
|
|
@@ -64,7 +65,7 @@ function podInstall(iosDirectory, options = {
|
|
|
64
65
|
(0, child_process_1.execSync)(podCommand, {
|
|
65
66
|
cwd: iosDirectory,
|
|
66
67
|
stdio: 'inherit',
|
|
67
|
-
windowsHide:
|
|
68
|
+
windowsHide: true,
|
|
68
69
|
});
|
|
69
70
|
}
|
|
70
71
|
catch (e) {
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createApp = createApp;
|
|
4
4
|
exports.createLib = createLib;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const application_1 = require("../generators/application/application");
|
|
7
|
+
const application_1 = tslib_1.__importDefault(require("../generators/application/application"));
|
|
7
8
|
async function createApp(tree, appName) {
|
|
8
9
|
await (0, application_1.default)(tree, {
|
|
9
10
|
linter: 'eslint',
|