diff --git a/CHANGELOG.md b/CHANGELOG.md index 10a1937..bde3b91 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.4.5](https://github.com/nonara/ts-patch/compare/v1.4.4...v1.4.5) (2021-10-25) + + +### Bug Fixes + +* compilation fails if basedir resolves to cwd ([#65](https://github.com/nonara/ts-patch/issues/65)) ([9bac698](https://github.com/nonara/ts-patch/commit/9bac698993cd287de6d62caba48205bf53b4e52e)) + ### [1.4.4](https://github.com/nonara/ts-patch/compare/v1.4.3...v1.4.4) (2021-08-27) diff --git a/package.json b/package.json index d7e8a83..0606deb 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-patch", - "version": "1.4.4", + "version": "1.4.5", "description": "Patch typescript to support custom transformers in tsconfig.json", "main": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/patch/lib/createProgram.ts b/src/patch/lib/createProgram.ts index 6da6581..b7d10a3 100755 --- a/src/patch/lib/createProgram.ts +++ b/src/patch/lib/createProgram.ts @@ -37,7 +37,7 @@ function getProjectConfig(compilerOptions: TS.CompilerOptions, rootFileNames: Re let projectDir = getProjectDir(compilerOptions); if (configFilePath === undefined) { - const baseDir = (rootFileNames.length > 0) ? dirname(rootFileNames[0]) : projectDir ?? process.cwd; + const baseDir = (rootFileNames.length > 0) ? dirname(rootFileNames[0]) : projectDir ?? process.cwd(); configFilePath = ts.findConfigFile(baseDir, ts.sys.fileExists); if (configFilePath) { diff --git a/yarn.lock b/yarn.lock index ec40f5c..ccfc56f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -841,9 +841,9 @@ ansi-escapes@^4.2.1: type-fest "^0.21.3" ansi-regex@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" - integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^3.2.1: version "3.2.1" @@ -4780,9 +4780,9 @@ through@2, "through@>=2.2.7 <3": integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= tmpl@1.0.x: - version "1.0.4" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" - integrity sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE= + version "1.0.5" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" + integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== to-fast-properties@^2.0.0: version "2.0.0"