Commit Graph

3 Commits

Author SHA1 Message Date
Michel Alexandre Salim
7d1699cedc
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>
2021-01-18 09:39:00 -08:00
Troy Dawson
05a9e58997 Fix null when there is no .licenses found.
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2021-01-11 13:54:15 -08:00
Troy Dawson
5b7b3fce5d Add nodejs-packaging-bundler file
Add nodejs-packaging-bundler subpackage in spec file
Update README.md with comments about nodejs-packaging-bundler
  and an example spec file that uses bundling

Signed-off-by: Troy Dawson <tdawson@redhat.com>
2021-01-08 09:39:42 -08:00