Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 10.0.3
Choose a base ref
...
head repository: nestjs/nest-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 10.0.4
Choose a head ref
  • 8 commits
  • 5 files changed
  • 2 contributors

Commits on Jun 19, 2023

  1. Copy the full SHA
    1ede520 View commit details
  2. Copy the full SHA
    43b2a7b View commit details
  3. Copy the full SHA
    c2bc3da View commit details

Commits on Jun 24, 2023

  1. Copy the full SHA
    83d6bd7 View commit details
  2. Copy the full SHA
    0df8f8b View commit details

Commits on Jun 26, 2023

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    bf189fc View commit details
  2. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    924c312 View commit details
  3. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    kamilmysliwiec Kamil Mysliwiec
    Copy the full SHA
    6e1b5c3 View commit details
Showing with 304 additions and 351 deletions.
  1. +4 −0 actions/build.action.ts
  2. +5 −2 lib/compiler/defaults/swc-defaults.ts
  3. +3 −1 lib/compiler/swc/swc-compiler.ts
  4. +285 −341 package-lock.json
  5. +7 −7 package.json
4 changes: 4 additions & 0 deletions actions/build.action.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as chalk from 'chalk';
import { join } from 'path';
import * as ts from 'typescript';
import { Input } from '../commands';
import { AssetsManager } from '../lib/compiler/assets-manager';
import { Compiler } from '../lib/compiler/compiler';
@@ -138,6 +139,7 @@ export class BuildAction extends AbstractAction {
pathToTsconfig,
watchMode,
options,
tsOptions,
onSuccess,
);
}
@@ -149,6 +151,7 @@ export class BuildAction extends AbstractAction {
pathToTsconfig: string,
watchMode: boolean,
options: Input[],
tsOptions: ts.CompilerOptions,
onSuccess: (() => void) | undefined,
) {
const swc = new SwcCompiler(this.pluginsLoader);
@@ -165,6 +168,7 @@ export class BuildAction extends AbstractAction {
'typeCheck',
options,
),
tsOptions,
assetsManager: this.assetsManager,
},
onSuccess,
7 changes: 5 additions & 2 deletions lib/compiler/defaults/swc-defaults.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export const swcDefaultsFactory = () => {
import * as ts from 'typescript';

export const swcDefaultsFactory = (tsOptions: ts.CompilerOptions) => {
return {
swcOptions: {
module: {
@@ -16,7 +18,8 @@ export const swcDefaultsFactory = () => {
decoratorMetadata: true,
},
keepClassNames: true,
baseUrl: './',
baseUrl: tsOptions.baseUrl,
paths: tsOptions.paths,
},
minify: false,
swcrc: true,
4 changes: 3 additions & 1 deletion lib/compiler/swc/swc-compiler.ts
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@ import { fork } from 'child_process';
import * as chokidar from 'chokidar';
import { readFileSync } from 'fs';
import { join } from 'path';
import * as ts from 'typescript';
import { Configuration } from '../../configuration';
import { ERROR_PREFIX } from '../../ui';
import { treeKillSync } from '../../utils/tree-kill';
@@ -22,6 +23,7 @@ export type SwcCompilerExtras = {
watch: boolean;
typeCheck: boolean;
assetsManager: AssetsManager;
tsOptions: ts.CompilerOptions;
};

export class SwcCompiler extends BaseCompiler {
@@ -39,7 +41,7 @@ export class SwcCompiler extends BaseCompiler {
extras: SwcCompilerExtras,
onSuccess?: () => void,
) {
const swcOptions = swcDefaultsFactory();
const swcOptions = swcDefaultsFactory(extras.tsOptions);
if (extras.watch) {
if (extras.typeCheck) {
this.runTypeChecker(configuration, tsConfigPath, appName, extras);
626 changes: 285 additions & 341 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestjs/cli",
"version": "10.0.3",
"version": "10.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@cli)",
"publishConfig": {
"access": "public"
@@ -62,20 +62,20 @@
"webpack-node-externals": "3.0.0"
},
"devDependencies": {
"@commitlint/cli": "17.6.5",
"@commitlint/config-angular": "17.6.5",
"@commitlint/cli": "17.6.6",
"@commitlint/config-angular": "17.6.6",
"@swc/cli": "0.1.62",
"@swc/core": "1.3.64",
"@swc/core": "1.3.66",
"@types/inquirer": "8.2.6",
"@types/jest": "29.5.2",
"@types/node": "18.16.18",
"@types/node-emoji": "1.8.2",
"@types/shelljs": "0.8.12",
"@types/webpack-node-externals": "3.0.0",
"@typescript-eslint/eslint-plugin": "5.59.11",
"@typescript-eslint/parser": "5.59.11",
"@typescript-eslint/eslint-plugin": "5.60.0",
"@typescript-eslint/parser": "5.60.0",
"delete-empty": "3.0.0",
"eslint": "8.42.0",
"eslint": "8.43.0",
"eslint-config-prettier": "8.8.0",
"gulp": "4.0.2",
"gulp-clean": "0.4.0",