Use ESM in Node.js code generation scripts (#2739)

This commit is contained in:
Bart Louwers
2024-08-23 14:31:36 +02:00
committed by GitHub
parent 8e2c84243a
commit 8ad4a51f2f
22 changed files with 241 additions and 579 deletions

View File

@@ -1,11 +1,7 @@
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
const execFileSync = require('child_process').execFileSync;
const _ = require('lodash');
import fs from "node:fs";
import path from "node:path";
import { execFileSync } from "node:child_process";
import _ from "lodash";
const keyword = /\bMLN_EXPORT\b/;