Summary
Following the Cucumber-js v12 upgrade in #7221, there are still 6 script files using .cjs extension
that can be converted to native ESM .js files.
Files to Convert
scripts/md5sum.cjs → scripts/md5sum.js
scripts/osm2cucumber.cjs → scripts/osm2cucumber.js
scripts/osrm-runner.cjs → scripts/osrm-runner.js
scripts/poly2req.cjs → scripts/poly2req.js
scripts/timer.cjs → scripts/timer.js
scripts/validate_changelog.cjs → scripts/validate_changelog.js
Conversion Requirements
- Change file extensions from
.cjs to .js
- Update imports:
var fs = require('fs') → import fs from 'fs'
const crypto = require('crypto') → import crypto from 'crypto'
var parseString = require('xml2js').parseString → import { parseString } from 'xml2js'
- etc.
- Update any references in other files (Makefiles, documentation, shell scripts, etc.)
Summary
Following the Cucumber-js v12 upgrade in #7221, there are still 6 script files using
.cjsextensionthat can be converted to native ESM
.jsfiles.Files to Convert
scripts/md5sum.cjs→scripts/md5sum.jsscripts/osm2cucumber.cjs→scripts/osm2cucumber.jsscripts/osrm-runner.cjs→scripts/osrm-runner.jsscripts/poly2req.cjs→scripts/poly2req.jsscripts/timer.cjs→scripts/timer.jsscripts/validate_changelog.cjs→scripts/validate_changelog.jsConversion Requirements
.cjsto.jsvar fs = require('fs')→import fs from 'fs'const crypto = require('crypto')→import crypto from 'crypto'var parseString = require('xml2js').parseString→import { parseString } from 'xml2js'