Skip to content

Commit 665c892

Browse files
committed
Update paths
1 parent 6dae5aa commit 665c892

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

topojson/bin/get_geodata.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { exec } from 'child_process';
22
import fs from 'fs';
33
import { Readable } from 'stream';
44
import { pipeline } from 'stream/promises';
5-
import config, { getNEDownloadUrl, getNEFilename } from './config.mjs';
5+
import config, { getNEDownloadUrl, getNEFilename } from '../config.mjs';
66

7-
const { resolutions, unDownloadUrl, unFilename, vectors } = config;
7+
const { inputDir, resolutions, unDownloadUrl, unFilename, vectors } = config;
88

9-
const outputPath = './build/geodata';
9+
const outputPath = inputDir;
1010

1111
// Download Natural Earth vector maps
1212
for (const vector of Object.values(vectors)) {

topojson/bin/process_geodata.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import fs from 'fs';
55
import mapshaper from 'mapshaper';
66
import path from 'path';
77
import { topology } from 'topojson-server';
8-
import config, { getNEFilename } from './config.mjs';
8+
import config, { getNEFilename } from '../config.mjs';
99

1010
const { filters, inputDir, layers, resolutions, scopes, unFilename, vectors } = config;
1111

topojson/config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const config = {
6565
}
6666
}
6767
],
68-
outputDirGeojson: './build/geodata/geojson',
69-
outputDirTopojson: './dist/topojson',
70-
inputDir: './build/geodata',
68+
outputDirGeojson: './build/geojson',
69+
outputDirTopojson: './dist',
70+
inputDir: './build',
7171
vectors: {
7272
// 'coastlines', 'countries', 'land', and 'ocean' are derived from UN geodata
7373
lakes: {

0 commit comments

Comments
 (0)