@nx/js 17.1.1 → 17.1.2

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": "17.1.1",
3
+ "version": "17.1.2",
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": {
@@ -57,9 +57,9 @@
57
57
  "semver": "7.5.3",
58
58
  "source-map-support": "0.5.19",
59
59
  "tslib": "^2.3.0",
60
- "@nx/devkit": "17.1.1",
61
- "@nx/workspace": "17.1.1",
62
- "@nrwl/js": "17.1.1"
60
+ "@nx/devkit": "17.1.2",
61
+ "@nx/workspace": "17.1.2",
62
+ "@nrwl/js": "17.1.2"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "verdaccio": "^5.0.4"
@@ -70,9 +70,15 @@ async function runExecutor(options, context) {
70
70
  try {
71
71
  const currentVersion = projectPackageJson.version;
72
72
  const stdoutData = JSON.parse(err.stdout?.toString() || '{}');
73
- if (stdoutData.error?.code === 'EPUBLISHCONFLICT' ||
73
+ if (
74
+ // handle npm conflict error
75
+ stdoutData.error?.code === 'EPUBLISHCONFLICT' ||
76
+ // handle npm conflict error when the package has a scope
74
77
  (stdoutData.error?.code === 'E403' &&
75
- stdoutData.error?.body?.error?.includes('You cannot publish over the previously published versions'))) {
78
+ stdoutData.error?.summary?.includes('You cannot publish over the previously published versions')) ||
79
+ // handle verdaccio conflict error
80
+ (stdoutData.error?.code === 'E409' &&
81
+ stdoutData.error?.summary?.includes('this package is already present'))) {
76
82
  console.warn(`Skipping ${packageTxt}, as v${currentVersion} has already been published to ${registry} with tag "${tag}"`);
77
83
  return {
78
84
  success: true,
@@ -85,6 +91,10 @@ async function runExecutor(options, context) {
85
91
  if (stdoutData.error.detail) {
86
92
  console.error(stdoutData.error.detail);
87
93
  }
94
+ if (context.isVerbose) {
95
+ console.error('npm publish stdout:');
96
+ console.error(JSON.stringify(stdoutData, null, 2));
97
+ }
88
98
  return {
89
99
  success: false,
90
100
  };
@@ -75,7 +75,7 @@ async function libraryGeneratorInternal(tree, schema) {
75
75
  const vitestTask = await vitestGenerator(tree, {
76
76
  project: options.name,
77
77
  uiFramework: 'none',
78
- coverageProvider: 'c8',
78
+ coverageProvider: 'v8',
79
79
  skipFormat: true,
80
80
  testEnvironment: options.testEnvironment,
81
81
  });