Skip to content

Commit 0677370

Browse files
authored
Merge pull request #17 from jschae23/patch-1
Replace deprecated import assertion
2 parents bcc0805 + d80d22c commit 0677370

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/index.ts

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
#! /usr/bin/env -S node --no-warnings=ExperimentalWarning
2-
3-
import figlet from 'figlet';
4-
import {Command} from '@commander-js/extra-typings';
2+
import * as fs from 'node:fs';
3+
import { Command } from '@commander-js/extra-typings';
54
import chalk from 'chalk';
5+
import figlet from 'figlet';
66
import * as commands from './commands/index.js';
7-
// @ts-ignore
8-
import pkg from '../package.json' assert { type: 'json' };
9-
107
const fusionString = figlet.textSync('Fusion').split('\n');
118
const authString = figlet.textSync('Auth').split('\n');
12-
139
fusionString.forEach((line, i) => {
14-
console.log(chalk.white(line) + chalk.hex('#F58320')(authString[i]));
10+
console.log(chalk.white(line) + chalk.hex('#F58320')(authString[i]));
1511
});
16-
1712
const program = new Command();
18-
program
19-
.name('@fusionauth/cli')
20-
.description('CLI for FusionAuth')
21-
.version(pkg.version);
22-
23-
Object.values(commands).forEach(command => program.addCommand(command));
24-
13+
program.name('@fusionauth/cli').description('CLI for FusionAuth');
14+
Object.values(commands).forEach((command) => program.addCommand(command));
2515
program.parse();

0 commit comments

Comments
 (0)