From fe5b071c994be8f067a8f5b30ed62d872d870ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Wed, 8 Jan 2020 12:07:44 +0100 Subject: [PATCH] fix(): change to posix slashes in win32 (ts paths) --- lib/compiler/hooks/tsconfig-paths.hook.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler/hooks/tsconfig-paths.hook.ts b/lib/compiler/hooks/tsconfig-paths.hook.ts index 1511c5953..d5080d61a 100644 --- a/lib/compiler/hooks/tsconfig-paths.hook.ts +++ b/lib/compiler/hooks/tsconfig-paths.hook.ts @@ -53,7 +53,7 @@ function getNotAliasedPath( return; } if (os.platform() === 'win32') { - result = result.replace(/\\g/, '/'); + result = result.replace(/\\/g, '/'); } const resolvedPath = posix.relative(dirname(sf.fileName), result) || './'; return resolvedPath[0] === '.' ? resolvedPath : './' + resolvedPath; diff --git a/package.json b/package.json index 92b47c505..e427ceaa3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nestjs/cli", - "version": "6.13.1", + "version": "6.13.2", "description": "Nest - modern, fast, powerful node.js web framework (@cli)", "publishConfig": { "access": "public"