@nx/js 20.6.3 → 20.6.4

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.6.3",
3
+ "version": "20.6.4",
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.6.3",
43
- "@nx/workspace": "20.6.3",
42
+ "@nx/devkit": "20.6.4",
43
+ "@nx/workspace": "20.6.4",
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,8 +60,6 @@
60
60
  "semver": "^7.5.3",
61
61
  "source-map-support": "0.5.19",
62
62
  "tinyglobby": "^0.2.12",
63
- "ts-node": "10.9.1",
64
- "tsconfig-paths": "^4.1.2",
65
63
  "tslib": "^2.3.0"
66
64
  },
67
65
  "peerDependencies": {
@@ -1 +0,0 @@
1
- export declare function tsNodeRegister(file: string, tsConfig?: string): void;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tsNodeRegister = tsNodeRegister;
4
- function tsNodeRegister(file, tsConfig) {
5
- if (!file?.endsWith('.ts'))
6
- return;
7
- // Register TS compiler lazily
8
- require('ts-node').register({
9
- project: tsConfig,
10
- compilerOptions: {
11
- module: 'CommonJS',
12
- types: ['node'],
13
- },
14
- });
15
- if (!tsConfig)
16
- return;
17
- // Register paths in tsConfig
18
- const tsconfigPaths = require('tsconfig-paths');
19
- const { absoluteBaseUrl: baseUrl, paths } = tsconfigPaths.loadConfig(tsConfig);
20
- if (baseUrl && paths) {
21
- tsconfigPaths.register({ baseUrl, paths });
22
- }
23
- }