refactor: commonjs require

This commit is contained in:
Xmader 2020-11-24 17:43:07 -05:00
parent 50ab62fff7
commit 64a4ebeb16
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 6 additions and 3 deletions

View File

@ -1,8 +1,7 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-void */
import inquirer from 'inquirer'
import ora from 'ora'
import chalk from 'chalk'
import fs from 'fs'
import { fetchMscz } from './mscz'
import { loadMscore, INDV_DOWNLOADS, WebMscore } from './mscore'
@ -10,6 +9,10 @@ import { ScoreInfoHtml } from './scoreinfo'
import { escapeFilename } from './utils'
import i18n from './i18n'
const inquirer: typeof import('inquirer') = require('inquirer')
const ora: typeof import('ora') = require('ora')
const chalk: typeof import('chalk') = require('chalk')
const SCORE_URL_PREFIX = 'https://musescore.com/'
void (async () => {