
    l:i                     F    d dl mZmZ d dlmZ eZ ed      d        Zd Zy)    )npm_availableget_scripts)for_appnpmc                     d| j                   v xr8 t        d | j                  D               xr | j                  d   t               v S )NzUsage: npm <command>c              3   >   K   | ]  }|j                  d         yw)ruN)
startswith).0parts     S/var/www/html/bot/venv/lib/python3.12/site-packages/thefuck/rules/npm_run_script.py	<genexpr>zmatch.<locals>.<genexpr>
   s     O$-Os      )outputanyscript_partsr   )commands    r   matchr      sI    "gnn4 9O':N:NOOO9$$Q';=8:    c                 f    | j                   d d  }|j                  dd       dj                  |      S )Nr   z
run-script )r   insertjoin)r   partss     r   get_new_commandr      s.      #E	LLL!88E?r   N)thefuck.specific.npmr   r   thefuck.utilsr   enabled_by_defaultr   r    r   r   <module>r       s.    ; !"  	: :r   