version=4
opts=\
dversionmangle=auto,\
repacksuffix=+dfsg1,\
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-webpack-$1/ \
 https://github.com/webpack/webpack/tags .*/archive/.*/v?([\d\.]+).tar.gz group

opts=\
component=terser-webpack-plugin,\
ctype=nodejs,\
dversionmangle=auto,\
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-terser-webpack-plugin-$1/ \
 https://github.com/webpack-contrib/terser-webpack-plugin/tags .*/archive.*/v?([\d\.]+).tar.gz checksum

opts=\
component=webpack-cli,\
ctype=nodejs,\
dversionmangle=auto,\
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-webpack-cli-$1/ \
 https://github.com/webpack/webpack-cli/tags .*/archive.*/webpack-cli\@([\d\.]+).tar.gz checksum

opts=\
component=discoveryjs-json-ext,\
ctype=nodejs,\
dversionmangle=auto,\
filenamemangle=s/.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-json-ext-$1/ \
 https://github.com/discoveryjs/json-ext/tags .*/archive.*/v?([\d\.]+).tar.gz checksum

# It is not recommended use npmregistry. Please investigate more.
# Take a look at https://wiki.debian.org/debian/watch/
opts="searchmode=plain,component=acorn-import-attributes,ctype=nodejs,pgpmode=none,filenamemangle=s/^.*?(\d[\d\.-]*@ARCHIVE_EXT@)/node-acorn-import-attributes-$1/" \
 https://registry.npmjs.org/acorn-import-attributes https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-([\d\.]+)@ARCHIVE_EXT@ checksum
