LiveAtlas/scripts/fix-leaflet.mjs
2021-01-06 15:14:27 +00:00

11 lines
256 B
JavaScript

// @ts-check
import pkgJson from '../node_modules/leaflet/package.json';
import { writeFileSync } from 'fs';
writeFileSync(
'./node_modules/leaflet/package.json',
JSON.stringify({
...pkgJson,
module: 'dist/leaflet-src.esm.js',
}, null, 2));