New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@di-fe/di-cli

Package Overview
Dependencies
Maintainers
3
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@di-fe/di-cli

cli工具

latest
npmnpm
Version
1.1.8
Version published
Maintainers
3
Created
Source

@di-fe/di-cli

cli工具

how to use

yarn add @di-fe/di-cli -D

选择性覆盖安装s3中的graceful-fs依赖版本 "resolutions": { "graceful-fs": "4.2.10" }

可以直接在需要执行的目录下执行npx di-cli compile,默认编译src目录下的文件

参数说明

参数备注
basePath当前脚本的执行路径 默认:process.cwd()
sourceFolder打包代码的目录名 默认:src
distFolder打包的目录名 默认:dist
configDirbabel配置文件路径 默认:process.cwd()
treeShaking-
ts-

beta发布

  • 修改版本号(@di-fe/di-cli@x.x.x-beta)
  • yarn build
  • cd dist && npm publish --tag=beta --access=public

全局版本发布

  • 修改package.json中devDependencies全部移至dependencies 修改版本号(@di-fe/di-cli@x.x.x-global)
  • yarn build
  • yarn updateGlobalDep
  • cd dist && npm publish --tag=global --access=public

全局安装版本(用于缓存场景)

  • yarn global add @di-fe/di-cli@global

FAQs

Package last updated on 25 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts