Skip to content
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

Libmmel 2 #119

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft

Conversation

ribose-jeffreylau
Copy link
Contributor

No description provided.

Commands used:

```bash
  cd packages

  while read -r file
  do
    echo file is $file
    path="${file##*/src}"
    path="${path%/*}"
    path="${path#/}"
    path="${path:-.}"
    echo file=$file
    echo path=$path
    sed -i  -r "s|(import .*')(\..*)';|printf  \"\1@/\"\; realpath --relative-to=. -m \"${path}/\2\" \| tr -d \"\n\" \; printf \"'; \"\;|ge" "$file"
  done < <(fd . legacy/src -t f -e ts -e tsx)

  while read -r file
  do
    echo file is $file
    path="${file##*/src}"
    path="${path%/*}"
    path="${path#/}"
    path="${path:-.}"
    echo file=$file
    echo path=$path
    sed -i  -r "s|(import .*')(\..*)';|printf  \"\1@/\"\; realpath --relative-to=. -m \"${path}/\2\" \| tr -d \"\n\" \; printf \"'; \"\;|ge" "$file"
  done < <(fd . libmmel/src -t f -e ts -e tsx)
```
Commands used:

```bash
cd packages

while read -r file
do
	echo file is $file

	path="${file##*/src}"
	path="${path%/*}"
	path="${path#/}"
	path="${path:-.}"
	echo file=$file
	echo path=$path

	sed -i -r \
		"s|(.*)(from ')(\..*)';| printf \"\1\2@/\"\; realpath --relative-to=. -m \"${path}/\3\" \| tr -d \"\n\" \; printf \"';\"\;|ge" \
		"$file"

done < <(fd . legacy/src -t f -e ts -e tsx)

while read -r file
do
	echo file is $file

	path="${file##*/src}"
	path="${path%/*}"
	path="${path#/}"
	path="${path:-.}"
	echo file=$file
	echo path=$path

	sed -i -r \
		"s|(.*)(from ')(\..*)';| printf \"\1\2@/\"\; realpath --relative-to=. -m \"${path}/\3\" \| tr -d \"\n\" \; printf \"';\"\;|ge" \
		"$file"

done < <(fd . libmmel/src -t f -e ts -e tsx)

```
@ribose-jeffreylau ribose-jeffreylau self-assigned this Aug 15, 2023
@ribose-jeffreylau ribose-jeffreylau force-pushed the libmmel-2 branch 5 times, most recently from a269217 to e6e1896 Compare August 15, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant