Skip to content

Commit

Permalink
Update structures.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Starman3787 committed Aug 17, 2024
1 parent a436533 commit bbaa75d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/structures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,8 @@ jobs:
for file in $(find ./src/structures/compiled -name '*.json');
do
echo "Adding file to export $file"
output="$output import $(basename $file .js.json) from './structures/compiled/$(basename $file)' assert { type: 'json' };\n"
output="$output export { default as $(basename $file .js.json) } from './structures/compiled/$(basename $file)' with { type: 'json' };\n"
done
output="$output export default {\n"
for file in $(find ./src/structures/compiled -name '*.json');
do
echo "Adding file to export $file"
output="$output $(basename $file .js.json),\n"
done
output="$output };"
echo -e $output > ./src/compiledStructures.js
- name: Export structures
Expand All @@ -55,7 +48,6 @@ jobs:
echo "Adding file to export $file"
output="$output export { default as $(basename $file .js) } from './managers/$(basename $file)';\n"
done
set -f
echo -e $output > ./src/structures.js
- name: Import bot's GPG key for signing commits
Expand Down

0 comments on commit bbaa75d

Please sign in to comment.