Skip to content

Commit

Permalink
fix: fix deprecated commander usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bchew committed Apr 29, 2024
1 parent ec6be54 commit 318a579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-types/generateTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const prettier = require('prettier');
const _ = require('lodash');
const { transformSync } = require('@babel/core');
const commander = require('commander');
const { Command } = require('commander');
const { generateFromSource } = require('react-to-typescript-definitions');
const { glob } = require('glob');
const chalk = require('chalk');
Expand All @@ -22,7 +22,7 @@ process.on('unhandledRejection', (err) => {
throw err;
});

const program = new commander.Command();
const program = new Command();

program
.option('-d, --debug', 'output propType conversion debugging')
Expand Down

0 comments on commit 318a579

Please sign in to comment.