@nx/js 16.7.2 → 16.8.0-beta.1

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": "16.7.2",
3
+ "version": "16.8.0-beta.1",
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,9 +39,9 @@
39
39
  "@babel/preset-env": "^7.22.9",
40
40
  "@babel/preset-typescript": "^7.22.5",
41
41
  "@babel/runtime": "^7.22.6",
42
- "@nrwl/js": "16.7.2",
43
- "@nx/devkit": "16.7.2",
44
- "@nx/workspace": "16.7.2",
42
+ "@nrwl/js": "16.8.0-beta.1",
43
+ "@nx/devkit": "16.8.0-beta.1",
44
+ "@nx/workspace": "16.8.0-beta.1",
45
45
  "@phenomnomnominal/tsquery": "~5.0.1",
46
46
  "babel-plugin-const-enum": "^1.0.1",
47
47
  "babel-plugin-macros": "^2.8.0",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "type": "commonjs",
74
- "gitHead": "b024f44a1ad4e1773e80f6dc72f9d22766b950f9"
74
+ "gitHead": "231a998e004c13e559c171ba6c164a9127886153"
75
75
  }
@@ -356,6 +356,7 @@ function normalizeOptions(tree, options) {
356
356
  importPath: options.importPath,
357
357
  projectNameAndRootFormat: options.projectNameAndRootFormat,
358
358
  rootProject: options.rootProject,
359
+ callingGenerator: '@nx/js:library',
359
360
  });
360
361
  options.rootProject = projectRoot === '.';
361
362
  const fileName = getCaseAwareFileName({
@@ -1,4 +1,4 @@
1
- import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-directory-utils';
1
+ import type { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
2
2
  // nx-ignore-next-line
3
3
  const { Linter } = require('@nx/linter'); // use require to import to avoid circular dependency
4
4
  import type { AssetGlob, FileInputOutput } from './assets/assets';
@@ -10,7 +10,7 @@ const print_diagnostics_1 = require("../typescript/print-diagnostics");
10
10
  const run_type_check_1 = require("../typescript/run-type-check");
11
11
  function getSwcCmd({ swcrcPath, srcPath, destPath }, watch = false) {
12
12
  const swcCLI = require.resolve('@swc/cli/bin/swc.js');
13
- let swcCmd = `${swcCLI} ${
13
+ let swcCmd = `node ${swcCLI} ${
14
14
  // TODO(jack): clean this up when we remove inline module support
15
15
  // Handle root project
16
16
  srcPath === '.' ? 'src' : srcPath} -d ${srcPath === '.' ? `${destPath}/src` : destPath} --config-file=${swcrcPath}`;