Skip to content

Commit

Permalink
fix: yarnv4 requires shebangs in shell scripts to allow execution
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswk committed Jun 7, 2024
1 parent d69d826 commit e8d9a25
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ frontend/node_modules
!.yarn/**
!.yarnrc.yml
!frontend/.yarn/**
node_modules
1 change: 1 addition & 0 deletions frontend/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
yarnPath: .yarn/releases/yarn-4.2.2.cjs
nodeLinker: node-modules
1 change: 1 addition & 0 deletions frontend/check-imports.rc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env sh
if grep -R --include="*.js" --include="*.jsx" --include="*.ts" --include="*.tsx" "from '@mui/icons-material'" src; then
echo "Prohibited import from '@mui/icons-material' found. Use default imports referencing the file instead of the
global package. Example: import Delete from '@mui/icons-material/Delete';'"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-frontend-if-needed.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
if [ ! -d ./frontend/build ]; then
yarn --cwd ./frontend install --immutable && yarn build:frontend;
yarn --cwd ./frontend install --immutable && echo "Done installing" && yarn build:frontend;
fi

0 comments on commit e8d9a25

Please sign in to comment.