@nx/angular 18.1.0-beta.0 → 18.1.0-beta.10
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/executors.d.ts +1 -0
- package/executors.js +1 -0
- package/executors.json +5 -0
- package/migrations.json +88 -0
- package/package.json +12 -14
- package/src/builders/dev-server/dev-server.impl.js +2 -38
- package/src/builders/dev-server/lib/validate-options.js +4 -0
- package/src/builders/dev-server/schema.d.ts +1 -0
- package/src/builders/dev-server/schema.json +18 -0
- package/src/executors/application/application.impl.js +3 -3
- package/src/executors/application/schema.json +12 -0
- package/src/executors/application/utils/validate-options.js +31 -23
- package/src/executors/extract-i18n/extract-i18n.impl.d.ts +3 -0
- package/src/executors/extract-i18n/extract-i18n.impl.js +43 -0
- package/src/executors/extract-i18n/schema.d.ts +8 -0
- package/src/executors/extract-i18n/schema.json +45 -0
- package/src/executors/module-federation-dev-server/module-federation-dev-server.impl.js +4 -2
- package/src/executors/module-federation-dev-server/schema.json +1 -1
- package/src/executors/package/ng-packagr-adjustments/ng-packagr.js +2 -2
- package/src/executors/utilities/ng-packagr/stylesheet-processor.js +11 -2
- package/src/executors/utilities/patch-builder-context.d.ts +3 -0
- package/src/executors/utilities/patch-builder-context.js +41 -0
- package/src/generators/add-linting/add-linting.d.ts +1 -1
- package/src/generators/add-linting/add-linting.js +8 -12
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.d.ts +2 -2
- package/src/generators/add-linting/lib/add-angular-eslint-dependencies.js +9 -5
- package/src/generators/add-linting/lib/buildable-project.d.ts +2 -0
- package/src/generators/add-linting/lib/buildable-project.js +9 -0
- package/src/generators/add-linting/schema.d.ts +0 -1
- package/src/generators/application/application.js +0 -1
- package/src/generators/application/files/base/tsconfig.json__tpl__ +3 -0
- package/src/generators/application/files/ng-module/src/app/nx-welcome.component.ts__tpl__ +1 -1
- package/src/generators/application/files/standalone-components/src/app/nx-welcome.component.ts__tpl__ +1 -1
- package/src/generators/application/lib/add-e2e.js +10 -6
- package/src/generators/application/lib/add-linting.js +0 -1
- package/src/generators/application/lib/add-unit-test-runner.js +0 -1
- package/src/generators/application/lib/create-files.js +9 -10
- package/src/generators/application/lib/normalize-options.js +1 -5
- package/src/generators/application/lib/update-editor-tsconfig.d.ts +1 -1
- package/src/generators/application/lib/update-editor-tsconfig.js +11 -14
- package/src/generators/application/schema.d.ts +0 -1
- package/src/generators/application/schema.json +1 -0
- package/src/generators/component/lib/normalize-options.js +2 -2
- package/src/generators/component-test/component-test.js +4 -2
- package/src/generators/cypress-component-configuration/cypress-component-configuration.js +16 -11
- package/src/generators/cypress-component-configuration/schema.d.ts +0 -1
- package/src/generators/directive/lib/normalize-options.js +2 -1
- package/src/generators/library/lib/add-project.js +23 -24
- package/src/generators/library/lib/normalize-options.js +1 -5
- package/src/generators/library/lib/update-tsconfig.js +3 -3
- package/src/generators/library/schema.d.ts +1 -0
- package/src/generators/ng-add/migrators/projects/e2e.migrator.js +30 -23
- package/src/generators/ng-add/utilities/workspace.js +2 -4
- package/src/generators/setup-mf/lib/add-cypress-workaround.js +14 -6
- package/src/generators/setup-mf/lib/normalize-options.js +1 -1
- package/src/generators/storybook-configuration/lib/generate-stories.js +4 -2
- package/src/generators/storybook-configuration/lib/generate-storybook-configuration.js +2 -0
- package/src/generators/storybook-configuration/storybook-configuration.js +5 -0
- package/src/generators/utils/add-jest.d.ts +0 -1
- package/src/generators/utils/add-jest.js +4 -3
- package/src/generators/utils/add-mf-env-to-inputs.js +4 -1
- package/src/generators/utils/project.d.ts +0 -1
- package/src/generators/utils/project.js +2 -29
- package/src/generators/utils/selector.d.ts +2 -2
- package/src/generators/utils/selector.js +11 -4
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.d.ts +2 -0
- package/src/generators/utils/update-app-editor-tsconfig-excluded-files.js +23 -0
- package/src/generators/utils/update-project-root-tsconfig.d.ts +3 -0
- package/src/generators/utils/update-project-root-tsconfig.js +26 -0
- package/src/migrations/update-18-1-0/update-angular-cli.d.ts +3 -0
- package/src/migrations/update-18-1-0/update-angular-cli.js +23 -0
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.d.ts +2 -0
- package/src/migrations/update-18-1-1/fix-target-defaults-inputs.js +53 -0
- package/src/utils/mf/with-module-federation-ssr.js +3 -0
- package/src/utils/mf/with-module-federation.js +3 -0
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +4 -4
- package/src/generators/utils/create-ts-config.d.ts +0 -9
- package/src/generators/utils/create-ts-config.js +0 -34
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTsConfig = exports.extractTsConfigBase = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const js_1 = require("@nx/js");
|
|
6
|
-
var js_2 = require("@nx/js");
|
|
7
|
-
Object.defineProperty(exports, "extractTsConfigBase", { enumerable: true, get: function () { return js_2.extractTsConfigBase; } });
|
|
8
|
-
function createTsConfig(host, projectRoot, type, options, relativePathToRootTsConfig) {
|
|
9
|
-
const json = {
|
|
10
|
-
compilerOptions: {
|
|
11
|
-
target: 'es2022',
|
|
12
|
-
useDefineForClassFields: false,
|
|
13
|
-
esModuleInterop: options.esModuleInterop ? true : undefined,
|
|
14
|
-
},
|
|
15
|
-
files: [],
|
|
16
|
-
include: [],
|
|
17
|
-
references: [
|
|
18
|
-
{
|
|
19
|
-
path: type === 'app' ? './tsconfig.app.json' : './tsconfig.lib.json',
|
|
20
|
-
},
|
|
21
|
-
],
|
|
22
|
-
};
|
|
23
|
-
// inline tsconfig.base.json into the project
|
|
24
|
-
if (options.rootProject) {
|
|
25
|
-
json.compileOnSave = false;
|
|
26
|
-
json.compilerOptions = { ...js_1.tsConfigBaseOptions, ...json.compilerOptions };
|
|
27
|
-
json.exclude = ['node_modules', 'tmp'];
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
json.extends = relativePathToRootTsConfig;
|
|
31
|
-
}
|
|
32
|
-
(0, devkit_1.writeJson)(host, `${projectRoot}/tsconfig.json`, json);
|
|
33
|
-
}
|
|
34
|
-
exports.createTsConfig = createTsConfig;
|