refactor: commonjs require
This commit is contained in:
parent
50ab62fff7
commit
64a4ebeb16
1 changed files with 6 additions and 3 deletions
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in a new issue