@nx/js 20.5.0-beta.2 → 20.5.0-canary.20250128-e0c49d3
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": "20.5.0-
|
|
3
|
+
"version": "20.5.0-canary.20250128-e0c49d3",
|
|
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": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/preset-env": "^7.23.2",
|
|
40
40
|
"@babel/preset-typescript": "^7.22.5",
|
|
41
41
|
"@babel/runtime": "^7.22.6",
|
|
42
|
-
"@nx/devkit": "20.5.0-
|
|
43
|
-
"@nx/workspace": "20.5.0-
|
|
42
|
+
"@nx/devkit": "20.5.0-canary.20250128-e0c49d3",
|
|
43
|
+
"@nx/workspace": "20.5.0-canary.20250128-e0c49d3",
|
|
44
44
|
"@zkochan/js-yaml": "0.0.7",
|
|
45
45
|
"babel-plugin-const-enum": "^1.0.1",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
@@ -31,7 +31,7 @@ function startLocalRegistry({ localRegistryTarget, storage, verbose, clearStorag
|
|
|
31
31
|
const registry = `http://${listenAddress}:${port}`;
|
|
32
32
|
console.log(`Local registry started on ${registry}`);
|
|
33
33
|
process.env.npm_config_registry = registry;
|
|
34
|
-
(0, child_process_1.execSync)(`npm config set //${listenAddress}:${port}/:_authToken "secretVerdaccioToken"
|
|
34
|
+
(0, child_process_1.execSync)(`npm config set //${listenAddress}:${port}/:_authToken "secretVerdaccioToken"`, {
|
|
35
35
|
windowsHide: false,
|
|
36
36
|
});
|
|
37
37
|
// yarnv1
|
|
@@ -42,7 +42,7 @@ function startLocalRegistry({ localRegistryTarget, storage, verbose, clearStorag
|
|
|
42
42
|
console.log('Set npm and yarn config registry to ' + registry);
|
|
43
43
|
resolve(() => {
|
|
44
44
|
childProcess.kill();
|
|
45
|
-
(0, child_process_1.execSync)(`npm config delete //${listenAddress}:${port}/:_authToken
|
|
45
|
+
(0, child_process_1.execSync)(`npm config delete //${listenAddress}:${port}/:_authToken`, {
|
|
46
46
|
windowsHide: false,
|
|
47
47
|
});
|
|
48
48
|
});
|
|
@@ -126,6 +126,11 @@ function buildTscTargets(configFilePath, projectRoot, options, context) {
|
|
|
126
126
|
const targets = {};
|
|
127
127
|
const namedInputs = (0, get_named_inputs_1.getNamedInputs)(projectRoot, context);
|
|
128
128
|
const tsConfig = readCachedTsConfig(configFilePath);
|
|
129
|
+
// TODO: check whether we want to always run with --pretty --verbose, it makes replacing scripts harder
|
|
130
|
+
// `--verbose` conflicts with `tsc -b --clean`, might be another reason for not using it, it would
|
|
131
|
+
// prevent users from running the task with `--clean` flag.
|
|
132
|
+
// Should we consider creating a different optional target for `--clean`?
|
|
133
|
+
// Should we consider having a plugin option to disable `--pretty` and `--verbose`?
|
|
129
134
|
let internalProjectReferences;
|
|
130
135
|
// Typecheck target
|
|
131
136
|
if ((0, node_path_1.basename)(configFilePath) === 'tsconfig.json' && options.typecheck) {
|
|
@@ -133,7 +138,7 @@ function buildTscTargets(configFilePath, projectRoot, options, context) {
|
|
|
133
138
|
const externalProjectReferences = resolveShallowExternalProjectReferences(tsConfig, context.workspaceRoot, projectRoot);
|
|
134
139
|
const targetName = options.typecheck.targetName;
|
|
135
140
|
if (!targets[targetName]) {
|
|
136
|
-
let command = `tsc --build --emitDeclarationOnly
|
|
141
|
+
let command = `tsc --build --emitDeclarationOnly --pretty --verbose`;
|
|
137
142
|
if (tsConfig.options.noEmit ||
|
|
138
143
|
Object.values(internalProjectReferences).some((ref) => ref.options.noEmit) ||
|
|
139
144
|
Object.values(externalProjectReferences).some((ref) => ref.options.noEmit)) {
|
|
@@ -169,7 +174,7 @@ function buildTscTargets(configFilePath, projectRoot, options, context) {
|
|
|
169
174
|
const targetName = options.build.targetName;
|
|
170
175
|
targets[targetName] = {
|
|
171
176
|
dependsOn: [`^${targetName}`],
|
|
172
|
-
command: `tsc --build ${options.build.configName}
|
|
177
|
+
command: `tsc --build ${options.build.configName} --pretty --verbose`,
|
|
173
178
|
options: { cwd: projectRoot },
|
|
174
179
|
cache: true,
|
|
175
180
|
inputs: getInputs(namedInputs, configFilePath, tsConfig, internalProjectReferences, context.workspaceRoot, projectRoot),
|
|
@@ -579,7 +584,6 @@ function normalizePluginOptions(pluginOptions = {}) {
|
|
|
579
584
|
return {
|
|
580
585
|
typecheck,
|
|
581
586
|
build,
|
|
582
|
-
verboseOutput: pluginOptions.verboseOutput ?? false,
|
|
583
587
|
};
|
|
584
588
|
}
|
|
585
589
|
function resolveExtendedTsConfigPath(tsConfigPath, directory) {
|