bluelovers / tsdx

Zero-config CLI for TypeScript package development
MIT License
0 stars 0 forks source link

Error: Cannot find module 'regenerator-runtime' #1

Open GongJS opened 2 years ago

GongJS commented 2 years ago

After build the code, I created a bin file and executed it with node, but an error was reported: this is my node file


#! /usr/bin/env node

const importLocal = require('import-local')
if (importLocal(__filename)) {
    console.info('js-cli', '正在使用本地版本')
} else {
    require('../dist')(process.argv.slice(2))
}
bluelovers commented 2 years ago

能提供一下 原始檔案 範例 嗎?