Repository navigation
@knitkode/node@3.0.1
·
1 commit
to main
since this release
Patch Changes
-
1ad3640Thanks @kuus! -getDependencyVersionaccepts a{ from }option with the directory to resolve the dependency from, e.g.getDependencyVersion("next", { from: "./apps/web" })orgetDependencyVersion("next", "major", { from }). By default it now resolves from the current working directory instead of from where@knitkode/nodeis installed, so it finds the project's own dependencies with strictnode_moduleslayouts such as pnpm's. -
113cd75Thanks @kuus! - Fix several helpers:fsMoveAndRestoreTemporaryPathsandfsMoveAndRestoreTemporaryPathsSyncmove the paths out of the destination while the callback runs (they used to copy them), always restore them, even when the callback throws or a path is missing, and run the callback once when there are no paths (it used to run twice).fsFindUpSyncalso searches thestopAtdirectory and the file system root.fsWriteandfsWriteSynconly drop the leading blank lines, keeping the indentation of the first line.swcCreateTransformmaps root imports of nested libraries without a double slash (@org/ui/Button, it used to give@org/ui//Button), andswcTransformsKitonly rewrites root imports, the sub paths of the@knitkode/*packages being entry points already.
-
Updated dependencies [
113cd75,89e3ba6,b131ad6]:- @knitkode/utils@3.0.1