ro-cli do cli-cache
npm install @ronan-try/cli-cachegetXXFullPath(cacheName): 根据cacheName 获取全路径
getRawCacheData(cacheName): 根据cacheName 获取全文件,使用required
toRewriteCacheData(cacheName, data): 根据cacheName 写入数据
BranchMap.getRaw() 获取源文件
BranchMap.insertOrUpdate() 插入或更新
BranchMap.getTargetBranch() 获取目标分支
BranchMap.getTargetBranchByWorkPath() 获取目标分支,根据workPath
lib文件夹中找到对应的
src文件夹中
js
babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers
[!] Error: 'default' is not exported by ..\..\..\node_modules\.pnpm\chalk@4.1.0\node_modules\chalk\source\index.js, imported by src\chalk.ts
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
src\chalk.ts (1:7)
1: import chalk from 'chalk';
``