2.0.1 • Published 2 years ago
@wuxh/run v2.0.1
@wuxh/run
nodemon 监听并使用 esbuild 作为 node runtime
, 支持 TypeScript
、ESNext
.
使用
# 处理 CJS 模块 v2.0.0 +
npx @wuxh/run index.ts
# 1.0.1 使用 npx -p @wuxh/run emrun index.ts
# 处理 ESM 模块
npx -p @wuxh/run emrun index.ts
全局安装
npm i @wuxh/run -g
# enrun index.ts # CJS
# emrun index.ts # ESM
- enrun: Node in CJS mode - by esbuild-register
- emrun: Node in ESM mode - by esbuild-node-loader
本地安装
npm i @wuxh/run -D
CJS
{
"scripts": {
"start": "enrun index.ts",
},
"devDependencies": {
"@wuxh/run": "*"
}
}
ESM
{
+ "type": "module",
"scripts": {
- "start": "enrun index.ts",
+ "start": "emrun index.ts",
}
}
npm start
自定义 nodemon 配置
npx -p @wuxh/run enrun index.ts --nodemon='-w ./index.ts'
Warn
- 自
v2.0.0
开始:esnrun
重命名为enrun
esmrun
重命名为emrun
2.0.1
2 years ago
2.0.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.0.1-beta.3
2 years ago
0.0.1-beta.2
2 years ago
0.0.1-beta.1
2 years ago
0.0.1-beta.0
2 years ago
0.0.1
2 years ago