Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

445 B
Raw Blame
// SPDX-License-Identifier: MIT
// Copyright contributors to the kepler.gl project

const { smoosh } = require("./smoosh");

// Given an array of `.js` files, smooshes their .d.ts declarations and
// produces a .tsx file.

const without = (ending) => (fileName) =>
  fileName.endsWith(ending)
    ? fileName.substr(0, fileName.length - ending.length)
    : fileName;

const files = process.argv.slice(2);

files.map(without(".js")).map(smoosh);