[examples] add scripts to show package.json scripts

This commit is contained in:
Chris Wanstrath 2025-12-10 11:26:57 -08:00
parent 4ccf97f667
commit 71c5e31836

9
examples/scripts.sh Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env shrimp
if not (fs.exists? 'package.json'):
echo '🦐 package.json not found'
exit 1
end
package = fs.read 'package.json' | json.decode
package.scripts | dict.keys | list.sort | each do x: echo x end