Fix import of "commander"

The default import was deprecated ages ago, and in v12 it has now
finally been changed in a breaking way.

Change the code to import things the proper way.
This commit is contained in:
Pierre Ossman 2024-02-05 16:43:29 +01:00
parent 60643fe695
commit cd927723bc
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env node #!/usr/bin/env node
const path = require('path'); const path = require('path');
const program = require('commander'); const { program } = require('commander');
const fs = require('fs'); const fs = require('fs');
const fse = require('fs-extra'); const fse = require('fs-extra');
const babel = require('@babel/core'); const babel = require('@babel/core');