2.0.1 • Published 2 years ago

@wuxh/run v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@wuxh/run

nodemon 监听并使用 esbuild 作为 node runtime, 支持 TypeScriptESNext.

使用

# 处理 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

本地安装

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 配置

查看 nodemon 规则

npx -p @wuxh/run enrun index.ts --nodemon='-w ./index.ts'

Warn

  1. v2.0.0 开始:
    1. esnrun 重命名为 enrun
    2. 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