summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-05-22 15:10:10 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-05-22 15:10:10 +0200
commitdffbb673eabb134ce05839221d46580c43be0216 (patch)
treedc9ec2586d68a7f36ec179cc2373b187c37c390c /bin
parent04e70b240eca98044921d1fc553a0544bbfcf4d7 (diff)
downloadqtlocation-mapboxgl-dffbb673eabb134ce05839221d46580c43be0216.tar.gz
read style filename from gyp file
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-style.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/build-style.js b/bin/build-style.js
index 380c134349..bd86d5bda5 100755
--- a/bin/build-style.js
+++ b/bin/build-style.js
@@ -1,10 +1,13 @@
#!/usr/bin/env node
'use strict';
+var path = require('path');
+
var lazy_update = require('./lazy-update');
var name = 'style';
-var data = JSON.stringify(require('./style'));
+var data = JSON.stringify(require(path.join(process.cwd(), process.argv[2])));
+
var length = data.length;