fix: module import

This commit is contained in:
Basile Bruneau
2020-05-06 21:39:57 +02:00
parent 82bb225c5b
commit 147e0f5242
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ const fs = require('fs');
const proj4 = require('proj4');
const inside = require('point-in-geopolygon');
const geojsonWorld = JSON.parse(fs.readFileSync('./countries.geo.json', { encoding: 'utf8' }));
const geojsonWorld = JSON.parse(fs.readFileSync(__dirname + '/countries.geo.json', { encoding: 'utf8' }));
const geojsonByCountry = geojsonWorld.features.reduce((countries, feature) => {
countries[feature.id] = feature;
return countries;
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "dotted-map-generator",
"name": "dotted-map",
"version": "1.0.0",
"description": "",
"main": "index.js",