Update package version to 7.7.2 and rename package from semver to node-semver
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
name: semver
|
name: node-semver
|
||||||
description: The semver parser for node
|
description: The semver parser for node
|
||||||
version: 7.6.3
|
version: 7.7.2
|
||||||
url: https://github.com/npm/node-semver
|
url: https://github.com/npm/node-semver
|
||||||
license: ISC
|
license: ISC
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://registry.npmjs.org/semver/-/semver-${BPM_PKG_VERSION}.tgz"
|
DOWNLOAD="https://github.com/npm/node-semver/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -16,6 +16,7 @@ prepare() {
|
|||||||
package() {
|
package() {
|
||||||
npm install -g --prefix "$BPM_OUTPUT"/usr "$BPM_WORKDIR"/"$FILENAME"
|
npm install -g --prefix "$BPM_OUTPUT"/usr "$BPM_WORKDIR"/"$FILENAME"
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -d "$BPM_OUTPUT"/usr/share/licenses/semver
|
install -d "$BPM_OUTPUT"/usr/share/licenses/semver
|
||||||
ln -s ../../../lib/node_modules/semver/LICENSE "$BPM_OUTPUT"/usr/share/licenses/semver/LICENSE
|
ln -s ../../../lib/node_modules/semver/LICENSE "$BPM_OUTPUT"/usr/share/licenses/semver/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user