Мой файл:
import * as fs from 'fs'
async function loadModels() {
console.log('here i am!')
const modelFiles = fs.readFileSync(__dirname + '/models')
console.log(modelFiles)
}
(async () => {
loadModels()
})()
А в package.json
у меня есть:
"fixtures": "tsc fixtures/index"
Поэтому, когда я запускаю yarn fixtures
, я получаю:
yarn fixtures
yarn run v1.22.4
$ tsc fixtures/index
✨ Done in 8.78s.
Почему мой loadModels
не запускается?