diff --git a/bin/update.js b/bin/update.js deleted file mode 100644 index 403eee6..0000000 --- a/bin/update.js +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env node - -import Cli from "#core/cli"; -import externalResources from "#core/external-resources"; - -const CLI = { - "title": "Update resources", - "options": { - "force": { - "description": "Force build", - "default": false, - "schema": { - "type": "boolean", - }, - }, - }, -}; - -await Cli.parse( CLI ); - -externalResources.add( "softvisio-node/geoip-asn/resources/geolite2-asn" ); - -const res = await externalResources.update( { - "remote": true, - "force": process.cli.options.force, - "silent": false, -} ); - -if ( !res.ok ) process.exit( 1 ); diff --git a/package.json b/package.json index 3984963..f56a56c 100644 --- a/package.json +++ b/package.json @@ -28,8 +28,7 @@ }, "scripts": { "build": "node bin/build.js", - "install": "node bin/update.js", - "update": "node bin/update.js" + "install": "node bin/install.js" }, "peerDependencies": { "@softvisio/core": "^7.36.4"