Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cnpm/cnpm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v9.2.0
Choose a base ref
...
head repository: cnpm/cnpm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v9.3.0
Choose a head ref
  • 2 commits
  • 3 files changed
  • 2 contributors

Commits on Dec 6, 2023

  1. feat: bundle deps of cnpm (#428)

    > 修改构建配置,将 cnpm 运行依赖进行 bundle 处理,see
    nodejs/corepack#333
    
    1. 期望 cnpm 能直接集成在 corepack 中作为 nodejs 预置的包管理器
    2. 目前其他 pnpm、npm 和 yarn 都会做 bundle 处理,cnpm 由于集成了 npm,只能继续使用 bundleDeps
    的方式打包
    
    corepack 通过 tgz 进行分发, 没有时机执行相关依赖安装。
    
    尝试过两种方式进行 bundle:
    1. ❎ 通过 esbuild,无法处理 require.resolve npm 的场景,考虑到依赖稳定性需要将 npm 一并 bundle
    2. ✅ 通过 bundleDeps 配置
    
    两种方式都需要通过 `npm` mode 进行安装
    
    目前 bundle 后 tgz 体积为 `8.7M`,和 pnpm,yarn 相比差距较大 (~2M)
    elrrrrrrr authored Dec 6, 2023
    Configuration menu
    Copy the full SHA
    8cd53c0 View commit details
    Browse the repository at this point in the history
  2. Release 9.3.0

    [skip ci]
    
    ## [9.3.0](v9.2.0...v9.3.0) (2023-12-06)
    
    ### Features
    
    * bundle deps of cnpm ([#428](#428)) ([8cd53c0](8cd53c0))
    semantic-release-bot committed Dec 6, 2023
    Configuration menu
    Copy the full SHA
    605edab View commit details
    Browse the repository at this point in the history
Loading