@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-beta.2",
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-beta.2",
43
- "@nx/workspace": "20.5.0-beta.2",
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",
@@ -63,7 +63,6 @@ async function libraryGeneratorInternal(tree, schema) {
63
63
  project: options.name,
64
64
  compiler: 'swc',
65
65
  format: options.isUsingTsSolutionConfig ? ['esm'] : ['cjs', 'esm'],
66
- skipFormat: true,
67
66
  });
68
67
  }
69
68
  if (options.bundler === 'vite') {
@@ -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" --ws=false`, {
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 --ws=false`, {
45
+ (0, child_process_1.execSync)(`npm config delete //${listenAddress}:${port}/:_authToken`, {
46
46
  windowsHide: false,
47
47
  });
48
48
  });
@@ -9,7 +9,6 @@ export interface TscPluginOptions {
9
9
  buildDepsName?: string;
10
10
  watchDepsName?: string;
11
11
  };
12
- verboseOutput?: boolean;
13
12
  }
14
13
  /**
15
14
  * @deprecated The 'createDependencies' function is now a no-op. This functionality is included in 'createNodesV2'.
@@ -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${options.verboseOutput ? ' --verbose' : ''}`;
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}${options.verboseOutput ? ' --verbose' : ''}`,
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) {