@nestjs/cli 10.1.16 → 10.1.17

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.
@@ -6,8 +6,6 @@ export declare const swcDefaultsFactory: (tsOptions?: ts.CompilerOptions, config
6
6
  type: string;
7
7
  };
8
8
  jsc: {
9
- baseUrl?: undefined;
10
- paths?: undefined;
11
9
  target: string;
12
10
  parser: {
13
11
  syntax: string;
@@ -20,21 +18,8 @@ export declare const swcDefaultsFactory: (tsOptions?: ts.CompilerOptions, config
20
18
  useDefineForClassFields: boolean;
21
19
  };
22
20
  keepClassNames: boolean;
23
- } | {
24
21
  baseUrl: string | undefined;
25
22
  paths: ts.MapLike<string[]> | undefined;
26
- target: string;
27
- parser: {
28
- syntax: string;
29
- decorators: boolean;
30
- dynamicImport: boolean;
31
- };
32
- transform: {
33
- legacyDecorator: boolean;
34
- decoratorMetadata: boolean;
35
- useDefineForClassFields: boolean;
36
- };
37
- keepClassNames: boolean;
38
23
  };
39
24
  minify: boolean;
40
25
  swcrc: boolean;
@@ -1,19 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.swcDefaultsFactory = void 0;
4
- const process_1 = require("process");
5
4
  const swcDefaultsFactory = (tsOptions, configuration) => {
6
5
  const builderOptions = typeof configuration?.compilerOptions?.builder !== 'string'
7
6
  ? configuration?.compilerOptions?.builder?.options
8
7
  : {};
9
- // swc does not currently support paths mapping on Windows
10
- // see https://github.com/nestjs/nest-cli/issues/2211
11
- const pathsMappingOptions = process_1.platform?.startsWith('win')
12
- ? {}
13
- : {
14
- baseUrl: tsOptions?.baseUrl,
15
- paths: tsOptions?.paths,
16
- };
17
8
  return {
18
9
  swcOptions: {
19
10
  module: {
@@ -32,7 +23,8 @@ const swcDefaultsFactory = (tsOptions, configuration) => {
32
23
  useDefineForClassFields: false,
33
24
  },
34
25
  keepClassNames: true,
35
- ...pathsMappingOptions,
26
+ baseUrl: tsOptions?.baseUrl,
27
+ paths: tsOptions?.paths,
36
28
  },
37
29
  minify: false,
38
30
  swcrc: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/cli",
3
- "version": "10.1.16",
3
+ "version": "10.1.17",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@cli)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -65,24 +65,24 @@
65
65
  "@commitlint/cli": "17.7.1",
66
66
  "@commitlint/config-angular": "17.7.0",
67
67
  "@swc/cli": "0.1.62",
68
- "@swc/core": "1.3.78",
68
+ "@swc/core": "1.3.81",
69
69
  "@types/inquirer": "9.0.3",
70
70
  "@types/jest": "29.5.4",
71
- "@types/node": "18.17.11",
71
+ "@types/node": "18.17.12",
72
72
  "@types/node-emoji": "1.8.2",
73
73
  "@types/shelljs": "0.8.12",
74
74
  "@types/webpack-node-externals": "3.0.0",
75
- "@typescript-eslint/eslint-plugin": "6.4.1",
76
- "@typescript-eslint/parser": "6.4.1",
75
+ "@typescript-eslint/eslint-plugin": "6.5.0",
76
+ "@typescript-eslint/parser": "6.5.0",
77
77
  "delete-empty": "3.0.0",
78
- "eslint": "8.47.0",
78
+ "eslint": "8.48.0",
79
79
  "eslint-config-prettier": "9.0.0",
80
80
  "gulp": "4.0.2",
81
81
  "gulp-clean": "0.4.0",
82
82
  "husky": "8.0.3",
83
83
  "jest": "29.6.4",
84
84
  "lint-staged": "14.0.1",
85
- "prettier": "3.0.2",
85
+ "prettier": "3.0.3",
86
86
  "release-it": "16.1.5",
87
87
  "ts-jest": "29.1.1",
88
88
  "ts-loader": "9.4.4"