@nx/js 19.5.5 → 19.6.0-beta.0
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/js",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.6.0-beta.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The JS plugin for Nx contains executors and generators that provide the best experience for developing JavaScript and TypeScript projects. ",
|
|
6
6
|
"repository": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"semver": "^7.5.3",
|
|
59
59
|
"source-map-support": "0.5.19",
|
|
60
60
|
"tslib": "^2.3.0",
|
|
61
|
-
"@nx/devkit": "19.
|
|
62
|
-
"@nx/workspace": "19.
|
|
63
|
-
"@nrwl/js": "19.
|
|
61
|
+
"@nx/devkit": "19.6.0-beta.0",
|
|
62
|
+
"@nx/workspace": "19.6.0-beta.0",
|
|
63
|
+
"@nrwl/js": "19.6.0-beta.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"verdaccio": "^5.0.4"
|
|
@@ -5,7 +5,7 @@ exports.libraryGeneratorInternal = libraryGeneratorInternal;
|
|
|
5
5
|
exports.addLint = addLint;
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
7
|
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
8
|
-
const
|
|
8
|
+
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
9
9
|
const log_show_project_command_1 = require("@nx/devkit/src/utils/log-show-project-command");
|
|
10
10
|
const find_matching_projects_1 = require("nx/src/utils/find-matching-projects");
|
|
11
11
|
const path_1 = require("path");
|
|
@@ -135,7 +135,7 @@ async function addProject(tree, options) {
|
|
|
135
135
|
if (options.bundler !== 'rollup') {
|
|
136
136
|
const outputPath = getOutputPath(options);
|
|
137
137
|
const executor = getBuildExecutor(options.bundler);
|
|
138
|
-
(0,
|
|
138
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, executor);
|
|
139
139
|
projectConfiguration.targets.build = {
|
|
140
140
|
executor,
|
|
141
141
|
outputs: ['{options.outputPath}'],
|
|
@@ -5,7 +5,7 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const add_swc_config_1 = require("../../utils/swc/add-swc-config");
|
|
6
6
|
const add_swc_dependencies_1 = require("../../utils/swc/add-swc-dependencies");
|
|
7
7
|
const versions_1 = require("../../utils/versions");
|
|
8
|
-
const
|
|
8
|
+
const target_defaults_utils_1 = require("@nx/devkit/src/generators/target-defaults-utils");
|
|
9
9
|
async function setupBuildGenerator(tree, options) {
|
|
10
10
|
const tasks = [];
|
|
11
11
|
const project = (0, devkit_1.readProjectConfiguration)(tree, options.project);
|
|
@@ -102,7 +102,7 @@ async function setupBuildGenerator(tree, options) {
|
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
case 'tsc': {
|
|
105
|
-
(0,
|
|
105
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, '@nx/js:tsc');
|
|
106
106
|
const outputPath = (0, devkit_1.joinPathFragments)('dist', project.root);
|
|
107
107
|
project.targets[buildTarget] = {
|
|
108
108
|
executor: `@nx/js:tsc`,
|
|
@@ -118,7 +118,7 @@ async function setupBuildGenerator(tree, options) {
|
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
case 'swc': {
|
|
121
|
-
(0,
|
|
121
|
+
(0, target_defaults_utils_1.addBuildTargetDefaults)(tree, '@nx/js:swc');
|
|
122
122
|
const outputPath = (0, devkit_1.joinPathFragments)('dist', project.root);
|
|
123
123
|
project.targets[buildTarget] = {
|
|
124
124
|
executor: `@nx/js:swc`,
|