-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI
as primitive in @lix-js/fs
#3
Comments
path
as first class primitive into @lix-fs
path
as first class primitive into @lix-js/path
This comment was marked as outdated.
This comment was marked as outdated.
import { URI, fs } from "@lix-js/fs"
URI.join()
|
yes! I see the need for URIs also/instead this "path" proposal should be envolved to what we actually need but the current state of packages/apps have to function joinPath(...parts: string[]): string {
return parts.map((part) => part.replace(/\/$/, "")).join("/")
} & a weird mix of packages using is 🥴 TLDR: @samuelstroschein feel free to rephrase the proposal |
path
as first class primitive into @lix-js/path
URI
as primitive in @lix-js/fs
@felixhaeberle good to have this as a ticket, this will be much less work as in the end there should be not much need for helper funcitons except for something like path.resolve for some cases. |
@felix.haeberle here you go |
Problem
We often have to deal with paths inside multi env code like the new
cross-sell
packages which aim to simpify the cross-sell of our apps with access to thefs
.The operations done on the fs often requires path manipulation and therefore we introduced
normalizePath
&normalPath
– both of them are poorly executed because no higher approach has yet been found to tackle paths multi env (node/web etc.)Proposal
Come up with a solution like
I'm surely only scratching the surface here, but the bugs in opral/monorepo#2184 alike seems that there is an urge to introduce
@lix-js/path
.The text was updated successfully, but these errors were encountered: