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

View file

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