Use latest MapLibre Style Spec (#2756)

This commit is contained in:
Bart Louwers
2024-08-27 00:09:29 +02:00
committed by GitHub
parent 1bdc3425db
commit db95ba147a
23 changed files with 2807 additions and 1207 deletions

View File

@@ -42,15 +42,6 @@ export function unhyphenate (/** @type {string} **/ str) {
return str.replace(/-/g, " ");
};
// Write out a list of files that this script is modifying so that we can check
/** @type {string[]} **/
let files = [];
process.on('exit', function() {
const list = path.join(path.dirname(process.argv[1]), path.basename(process.argv[1], '.js') + '.list');
console.log(`Writing files that this script modifies to: ${list}`);
fs.writeFileSync(list, files.join("\n"));
});
/**
*
* @param {string} filename
@@ -67,7 +58,6 @@ export function writeIfModified(filename, newContent, output) {
fs.mkdirSync(info.dir, {recursive: true});
}
files.push(filename);
try {
const oldContent = fs.readFileSync(filename, 'utf8');
if (oldContent == newContent) {