@nx/js 22.7.0-beta.6 → 22.7.0-beta.7

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/migrations.json CHANGED
@@ -107,6 +107,15 @@
107
107
  "alwaysAddToPackageJson": false
108
108
  }
109
109
  }
110
+ },
111
+ "22.6.4": {
112
+ "version": "22.6.4",
113
+ "packages": {
114
+ "verdaccio": {
115
+ "version": "^6.3.2",
116
+ "alwaysAddToPackageJson": false
117
+ }
118
+ }
110
119
  }
111
120
  }
112
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/js",
3
- "version": "22.7.0-beta.6",
3
+ "version": "22.7.0-beta.7",
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": {
@@ -40,8 +40,8 @@
40
40
  "@babel/preset-env": "^7.23.2",
41
41
  "@babel/preset-typescript": "^7.22.5",
42
42
  "@babel/runtime": "^7.22.6",
43
- "@nx/devkit": "22.7.0-beta.6",
44
- "@nx/workspace": "22.7.0-beta.6",
43
+ "@nx/devkit": "22.7.0-beta.7",
44
+ "@nx/workspace": "22.7.0-beta.7",
45
45
  "@zkochan/js-yaml": "0.0.7",
46
46
  "babel-plugin-const-enum": "^1.0.1",
47
47
  "babel-plugin-macros": "^3.1.0",
@@ -61,7 +61,7 @@
61
61
  "tslib": "^2.3.0"
62
62
  },
63
63
  "devDependencies": {
64
- "nx": "22.7.0-beta.6"
64
+ "nx": "22.7.0-beta.7"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "verdaccio": "^6.0.5"
@@ -466,7 +466,7 @@ function getInputs(namedInputs, config, tsConfig, internalProjectReferences, wor
466
466
  transitive: true,
467
467
  });
468
468
  inputs.push({
469
- fileset: '**/*.d.ts',
469
+ fileset: '{projectRoot}/**/*.d.ts',
470
470
  dependencies: true,
471
471
  });
472
472
  const externalRefPatterns = getExternalProjectReferenceTsconfigPatterns(tsConfig, internalProjectReferences, workspaceRoot, config.project, cache);
@@ -509,7 +509,12 @@ function getOutputs(config, rootTsConfig, internalProjectReferences, workspaceRo
509
509
  }
510
510
  }
511
511
  else {
512
- outputs.add(pathToInputOrOutput(tsConfig.options.outDir, workspaceRoot, config.project));
512
+ // List specific tsc output extensions instead of claiming the
513
+ // entire outDir, so other tasks that write into the same
514
+ // directory (e.g. copy-assets for .node/.wasm files) don't
515
+ // have their outputs captured by the tsc build cache.
516
+ const jsonExt = tsConfig.options.resolveJsonModule ? ',json' : '';
517
+ outputs.add(pathToInputOrOutput((0, devkit_1.joinPathFragments)(tsConfig.options.outDir, `**/*.{js,cjs,mjs,jsx${jsonExt},d.ts,d.cts,d.mts}{,.map}`), workspaceRoot, config.project));
513
518
  }
514
519
  if (tsConfig.options.tsBuildInfoFile) {
515
520
  if (emitDeclarationOnly ||
@@ -150,7 +150,7 @@ function collectHelperDependencies(workspaceRoot, sourceProject, projectGraph, b
150
150
  }
151
151
  // For inferred targets or manually added run-commands, check if user is using `tsc` in build target.
152
152
  if (target.executor === 'nx:run-commands' &&
153
- /\btsc\b/.test(target.options.command)) {
153
+ /\b(tsc|tsgo)\b/.test(target.options.command)) {
154
154
  const tsConfigFileName = (0, ts_config_1.getRootTsConfigFileName)();
155
155
  if (tsConfigFileName) {
156
156
  const tsConfig = (0, ts_config_1.readTsConfig)((0, path_1.join)(workspaceRoot, tsConfigFileName));
@@ -7,7 +7,7 @@ export declare const swcHelpersVersion = "~0.5.18";
7
7
  export declare const swcNodeVersion = "~1.11.1";
8
8
  export declare const tsLibVersion = "^2.3.0";
9
9
  export declare const typesNodeVersion = "20.19.9";
10
- export declare const verdaccioVersion = "^6.0.5";
10
+ export declare const verdaccioVersion = "^6.3.2";
11
11
  export declare const typescriptVersion = "~5.9.2";
12
12
  /**
13
13
  * The minimum version is currently determined from the lowest version
@@ -10,7 +10,7 @@ exports.swcHelpersVersion = '~0.5.18';
10
10
  exports.swcNodeVersion = '~1.11.1';
11
11
  exports.tsLibVersion = '^2.3.0';
12
12
  exports.typesNodeVersion = '20.19.9';
13
- exports.verdaccioVersion = '^6.0.5';
13
+ exports.verdaccioVersion = '^6.3.2';
14
14
  // Typescript
15
15
  exports.typescriptVersion = '~5.9.2';
16
16
  /**
package/assets.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "outDir": "dist/packages/js",
3
- "assets": [
4
- {
5
- "glob": "**/files/**"
6
- },
7
- {
8
- "glob": "**/files/**/.gitkeep"
9
- },
10
- {
11
- "glob": "**/*.json",
12
- "ignore": ["tsconfig*.json", "project.json", ".eslintrc.json"]
13
- },
14
- {
15
- "glob": "**/*.js",
16
- "ignore": ["**/jest.config.js", "src/index.js"]
17
- },
18
- {
19
- "glob": "**/*.d.ts"
20
- },
21
- "LICENSE"
22
- ]
23
- }