@ts-bridge/cli
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -10,2 +10,8 @@ # Changelog | ||
## [0.1.3] | ||
### Fixed | ||
- Fix "ENOENT: no such file or directory, mkdir '...'" error when using nested folders ([#14](https://github.com/ts-bridge/ts-bridge/pull/14)) | ||
## [0.1.2] | ||
@@ -42,5 +48,6 @@ | ||
[Unreleased]: https://github.com/ts-bridge/ts-bridge/compare/@ts-bridge/cli@0.1.2...HEAD | ||
[Unreleased]: https://github.com/ts-bridge/ts-bridge/compare/@ts-bridge/cli@0.1.3...HEAD | ||
[0.1.3]: https://github.com/ts-bridge/ts-bridge/compare/@ts-bridge/cli@0.1.2...@ts-bridge/cli@0.1.3 | ||
[0.1.2]: https://github.com/ts-bridge/ts-bridge/compare/@ts-bridge/cli@0.1.1...@ts-bridge/cli@0.1.2 | ||
[0.1.1]: https://github.com/ts-bridge/ts-bridge/compare/@ts-bridge/cli@0.1.0...@ts-bridge/cli@0.1.1 | ||
[0.1.0]: https://github.com/ts-bridge/ts-bridge/releases/tag/@ts-bridge/cli@0.1.0 |
import { rmSync } from 'fs'; | ||
import { dirname, sep, resolve, normalize } from 'path'; | ||
import { sep, resolve, normalize } from 'path'; | ||
import typescript from 'typescript'; | ||
@@ -59,7 +59,3 @@ import { getBuildTypeOptions } from './build-type.js'; | ||
const fileNameWithExtension = getNewFileName(fileName, extension, declarationExtension); | ||
const directoryName = dirname(fileNameWithExtension); | ||
const updatedContent = transformFile(fileName, content, extension, declarationExtension); | ||
if (!system.directoryExists(directoryName)) { | ||
system.createDirectory(directoryName); | ||
} | ||
system.writeFile(fileNameWithExtension, updatedContent, writeByteOrderMark); | ||
@@ -66,0 +62,0 @@ }; |
{ | ||
"name": "@ts-bridge/cli", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Bridge the gap between ES modules and CommonJS modules with an easy-to-use alternative to `tsc`.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228088
5580