@nestjs/cli 10.1.2 → 10.1.3
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ts from 'typescript';
|
|
2
2
|
import { Configuration } from '../../configuration';
|
|
3
|
-
export declare const swcDefaultsFactory: (tsOptions
|
|
3
|
+
export declare const swcDefaultsFactory: (tsOptions?: ts.CompilerOptions, configuration?: Configuration) => {
|
|
4
4
|
swcOptions: {
|
|
5
5
|
module: {
|
|
6
6
|
type: string;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.swcDefaultsFactory = void 0;
|
|
4
4
|
const swcDefaultsFactory = (tsOptions, configuration) => {
|
|
5
|
-
const builderOptions = typeof configuration
|
|
6
|
-
? configuration
|
|
5
|
+
const builderOptions = typeof configuration?.compilerOptions?.builder !== 'string'
|
|
6
|
+
? configuration?.compilerOptions?.builder?.options
|
|
7
7
|
: {};
|
|
8
8
|
return {
|
|
9
9
|
swcOptions: {
|
|
@@ -22,14 +22,14 @@ const swcDefaultsFactory = (tsOptions, configuration) => {
|
|
|
22
22
|
decoratorMetadata: true,
|
|
23
23
|
},
|
|
24
24
|
keepClassNames: true,
|
|
25
|
-
baseUrl: tsOptions
|
|
26
|
-
paths: tsOptions
|
|
25
|
+
baseUrl: tsOptions?.baseUrl,
|
|
26
|
+
paths: tsOptions?.paths,
|
|
27
27
|
},
|
|
28
28
|
minify: false,
|
|
29
29
|
swcrc: true,
|
|
30
30
|
},
|
|
31
31
|
cliOptions: {
|
|
32
|
-
outDir: tsOptions
|
|
32
|
+
outDir: tsOptions?.outDir ? convertPath(tsOptions.outDir) : 'dist',
|
|
33
33
|
filenames: [configuration?.sourceRoot ?? 'src'],
|
|
34
34
|
sync: false,
|
|
35
35
|
extensions: ['.js', '.ts'],
|