Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,30 @@ _clean_dist:
_clean_dist:
Remove-Item -Path 'packages/*/dist' -Recurse -Force -ErrorAction SilentlyContinue

init: _clean_dist
init: _clean_dist _fix_symlinks
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint taplo-cli -y
node packages/tools/src/index.ts sync-remote
pnpm install
pnpm -C docs install

[unix]
_fix_symlinks:
#!/usr/bin/env bash
if [ "$(git config --get core.symlinks)" != "true" ]; then \
echo "Enabling core.symlinks and re-checking out symlinks..."; \
git config core.symlinks true; \
git ls-files -s | grep '^120000' | cut -f2 | while read -r f; do git checkout -- "$f"; done; \
fi

[windows]
_fix_symlinks:
$symlinks = git config --get core.symlinks; \
if ($symlinks -ne 'true') { \
Write-Host 'Enabling core.symlinks and re-checking out symlinks...'; \
git config core.symlinks true; \
git ls-files -s | Where-Object { $_ -match '^120000' } | ForEach-Object { ($_ -split "`t", 2)[1] } | ForEach-Object { git checkout -- $_ }; \
}

build:
pnpm install
pnpm --filter @rolldown/pluginutils build
Expand Down
Loading