Commit 3875f696 authored by Michael Auer's avatar Michael Auer
Browse files

make ohsome2x-cli.js an npx executable command

parent 1656930d
#!/usr/bin/env node
const path = require('path'); const path = require('path');
const fs = require('fs'); const fs = require('fs');
const Ohsome2X = require('../dist/Ohsome2X.js'); const Ohsome2X = require('../dist/Ohsome2X.js');
......
...@@ -664,9 +664,9 @@ ...@@ -664,9 +664,9 @@
"integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c="
}, },
"typescript": { "typescript": {
"version": "3.5.3", "version": "3.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz",
"integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==",
"dev": true "dev": true
}, },
"util-deprecate": { "util-deprecate": {
......
...@@ -2,7 +2,14 @@ ...@@ -2,7 +2,14 @@
"name": "ohsome2x", "name": "ohsome2x",
"version": "1.1.0", "version": "1.1.0",
"description": "convenience library to query ohsome-api using nodejs", "description": "convenience library to query ohsome-api using nodejs",
"main": "Ohsome2X.js", "main": "dist/Ohsome2X.js",
"bin": {
"ohsome2x-cli": "ohsome2x-cli/ohsome2x-cli.js"
},
"files": [
"dist",
"ohsome2x-cli"
],
"scripts": { "scripts": {
"watch": "watch 'npm run build' src", "watch": "watch 'npm run build' src",
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
...@@ -14,7 +21,7 @@ ...@@ -14,7 +21,7 @@
"url": "ssh://git@gitlab.gistools.geog.uni-heidelberg.de:2022/giscience/big-data/ohsome/libs/ohsome2x.git" "url": "ssh://git@gitlab.gistools.geog.uni-heidelberg.de:2022/giscience/big-data/ohsome/libs/ohsome2x.git"
}, },
"keywords": [ "keywords": [
"ohsome" "ohsome", "OpenStreetMap","OSM History", "OSM Analysis"
], ],
"author": "M. Auer (HeiGIT)", "author": "M. Auer (HeiGIT)",
"license": "MIT", "license": "MIT",
...@@ -39,7 +46,7 @@ ...@@ -39,7 +46,7 @@
"@types/papaparse": "^5.0.0", "@types/papaparse": "^5.0.0",
"@types/pg": "^7.4.14", "@types/pg": "^7.4.14",
"@types/proj4": "^2.5.0", "@types/proj4": "^2.5.0",
"typescript": "^3.5.3", "typescript": "^3.8.3",
"watch": "^1.0.2" "watch": "^1.0.2"
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment