bundler: Handle deprecated license metadata Adds support for archaic forms of the license metadata in package.json where the license field is an object rather than a string. Also removes the need to post-process the 'null' entries. Resolves: rhbz#1920206 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> bundler: Add warning for deps missing license tag Resolves: rhbz#1920223 Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> Spec: fix line-length for rpmlint Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> Update to 2021.06 bundler: Handle archaic license metadata bundler: Warn about bundled dependencies with no license metadata Actually use the value of OUTPUT_DIR when copying bundled sources in nodejs-packaging-bundler In nodejs-packaging-bundler, use %{_sourcedir} for output Fixes RHBZ#1974709 Fix hard-coded output directory in the bundler Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org> fix typos nodejs.prov: find namespaced bundled dependencies The previous behaviour assumed that in a bundled package path, there is always `node_modules` directory on each other spot – i.e.: npm/node_modules/<dep1>/node_modules/<subdep> ^ ^ With namespaced bundled packages, this is no longer necessary the truth: npm/node_modules/@nmcli/<dep1>/node_modules/… ^ ! – expected node_modules NPM bundler: also find namespaced bundled dependencies Signed-off-by: Stephen Gallagher <sgallagh@redhat.com> Related: #1990096 Related RHELPLAN-119396
19 lines
899 B
Bash
Executable File
19 lines
899 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ln -sf nodejs.req nodejs_req.py
|
|
"$(command -v python2 || echo :)" -m doctest nodejs_req.py || exit 1
|
|
"$(command -v python3 || echo :)" -m doctest nodejs_req.py || exit 1
|
|
|
|
for test in unbundled bundled bundled_namespace
|
|
do
|
|
sed -e "s|//.*$||" < test/$test/package.json.in > test/$test/package.json
|
|
|
|
echo test/$test/package.json | ./nodejs.prov test/$test/package.json > test/$test/nodejs.prov.out 2> test/$test/nodejs.prov.err
|
|
diff -uw test/$test/nodejs.prov.err.exp test/$test/nodejs.prov.err || exit 1
|
|
diff -uw test/$test/nodejs.prov.out.exp test/$test/nodejs.prov.out || exit 1
|
|
|
|
echo test/$test/package.json | ./nodejs.req test/$test/package.json > test/$test/nodejs.req.out 2> test/$test/nodejs.req.err
|
|
diff -uw test/$test/nodejs.req.err.exp test/$test/nodejs.req.err || exit 1
|
|
diff -uw test/$test/nodejs.req.out.exp test/$test/nodejs.req.out || exit 1
|
|
done
|