7d1699c nodejs-packaging-bundler: sanitize package name

Authored and Committed by salimma 3 years ago
    nodejs-packaging-bundler: sanitize package name
    
    The NPM package name might contain invalid characters, e.g.
    `@bitwarden/cli`.
    
    Normalize the generated bundles by converting `/` to `-`.
    
    ```
    specs/nodejs on  master
    ❯ ~/src/fedora/pkgs-others/nodejs-packaging/nodejs-packaging-bundler @bitwarden/cli
    ...
        Successful dev dependences download
    '@bitwarden-cli-1.13.3-bundled-licenses.txt' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-bundled-licenses.txt'
    '@bitwarden-cli-1.13.3-nm-dev.tgz' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-nm-dev.tgz'
    '@bitwarden-cli-1.13.3-nm-prod.tgz' -> '/home/michel/rpmbuild/SOURCES/@bitwarden-cli-1.13.3-nm-prod.tgz'
    ```
    
    Signed-off-by: Michel Alexandre Salim <michel@michel-slm.name>
    
        
file modified
+9 -8