@nx/js 22.7.0-beta.3 → 22.7.0-beta.5

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": "22.7.0-beta.3",
3
+ "version": "22.7.0-beta.5",
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": "22.7.0-beta.3",
43
- "@nx/workspace": "22.7.0-beta.3",
42
+ "@nx/devkit": "22.7.0-beta.5",
43
+ "@nx/workspace": "22.7.0-beta.5",
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",
@@ -60,7 +60,7 @@
60
60
  "tslib": "^2.3.0"
61
61
  },
62
62
  "devDependencies": {
63
- "nx": "22.7.0-beta.3"
63
+ "nx": "22.7.0-beta.5"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "verdaccio": "^6.0.5"
@@ -257,7 +257,7 @@ function buildTscTargets(config, options, context, configFiles, cache) {
257
257
  const targetName = options.typecheck.targetName;
258
258
  const compiler = options.compiler;
259
259
  if (!targets[targetName]) {
260
- let command = `${compiler} --build --emitDeclarationOnly${options.verboseOutput ? ' --verbose' : ''}`;
260
+ let command = `${compiler} --build ${options.typecheck.configName} --emitDeclarationOnly${options.verboseOutput ? ' --verbose' : ''}`;
261
261
  if (tsConfig.options.noEmit ||
262
262
  Object.values(internalProjectReferences).some((ref) => ref.options.noEmit) ||
263
263
  Object.values(externalProjectReferences).some((ref) => ref.options.noEmit)) {
@@ -460,11 +460,15 @@ function getInputs(namedInputs, config, tsConfig, internalProjectReferences, wor
460
460
  // the source files of dependencies. This correctly tracks build outputs from
461
461
  // both external project references and same-project task dependencies (e.g.
462
462
  // build-native producing .d.ts files that may be excluded from file watching
463
- // via .nxignore).
463
+ // via .nxignore. "*.d.ts" are also read from the deps projects sources.
464
464
  inputs.push({
465
465
  dependentTasksOutputFiles: '**/*.{d.ts,tsbuildinfo}',
466
466
  transitive: true,
467
467
  });
468
+ inputs.push({
469
+ fileset: '**/*.d.ts',
470
+ dependencies: true,
471
+ });
468
472
  const externalRefPatterns = getExternalProjectReferenceTsconfigPatterns(tsConfig, internalProjectReferences, workspaceRoot, config.project, cache);
469
473
  inputs.push(...externalRefPatterns);
470
474
  // inputs.push({ externalDependencies });