Files
next.js/turbopack/crates/turbopack-tests/tests/execution/webpack/move-into-input.sh
Niklas MischkulnigandGitHub 129300016e Turbopack: add webpack scope-hoisting tests (#79457)
Add them already, they should pass even without scope hoisting.
2025-05-21 19:55:58 +02:00

13 lines
225 B
Bash

# Goes through all subfolders of $folder and moves all files into a new "input" subdirectory
folder=scope-hoisting
set -e
shopt -s extglob
for f in "$folder"/*; do
mkdir -p "$f/input"
mv "$f"/!(input) "$f"/input
done