File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,16 @@ craft start # Equivalent to: craft run start
9898craft test # Equivalent to: craft run test
9999```
100100
101+ ### Manage Cache
102+
103+ Clean the global package cache:
104+
105+ ``` bash
106+ craft cache clean --force
107+ ```
108+
109+ > ** Note** : The ` --force ` flag is required for confirmation. Without it, the command will show a warning message.
110+
101111## 🤝 Contributing
102112
103113Contributions are welcome! Please feel free to submit a Pull Request.
Original file line number Diff line number Diff line change @@ -24,13 +24,13 @@ impl Actor<RunScriptActorPayload> for RunScriptActor {
2424
2525 async fn run ( & self ) -> contract:: Result < ( ) > {
2626 debug:: info!( "Running script: {}" , self . payload. script) ;
27-
2827 let mut script = self . payload . script . clone ( ) ;
2928 let package_json = PackageJson :: from_file ( ) . await ?;
30- if let Some ( scripts) = package_json. scripts {
31- if let Some ( package_script) = scripts. get ( & script) {
32- script = package_script. clone ( ) ;
33- }
29+
30+ if let Some ( scripts) = package_json. scripts
31+ && let Some ( package_script) = scripts. get ( & script)
32+ {
33+ script = package_script. clone ( ) ;
3434 }
3535 let cwd = std:: env:: current_dir ( ) ?;
3636
You can’t perform that action at this time.
0 commit comments