LiveAtlas/scripts/fix-leaflet.mjs

11 lines
256 B
JavaScript
Raw Normal View History

2021-01-06 15:14:27 +00:00
// @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));