Skip to content

Commit

Permalink
Merge pull request #78 from gdscports/master
Browse files Browse the repository at this point in the history
fix broken import
  • Loading branch information
ear1grey authored Jan 19, 2023
2 parents 6d4e0cd + 16bd427 commit 835db1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions preprocessing/cli/csv-to-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* probably for inspection and debugging purposes.
*/

const csvLoader = require('./../lib/load-data');
const { loadData } = require('./../lib/load-data');
const cli = require('./../lib/cli-common');
const colors = require('colors');
const fs = require('fs');
Expand All @@ -29,7 +29,7 @@ function main(cliArgs) {
console.log(cliArgs.paths);
if (!checkArguments(cliArgs)) return;

const inputJson = csvLoader(cliArgs.paths);
const inputJson = loadData(cliArgs.paths);

const outputJson = JSON.stringify(inputJson);
fs.writeFileSync(cliArgs.output, outputJson);
Expand Down

0 comments on commit 835db1c

Please sign in to comment.