(current, isSubPackage = false)
| 11 | }; |
| 12 | |
| 13 | const swapPkgName = (current, isSubPackage = false) => { |
| 14 | // info -> .info and vice-versa |
| 15 | const next = current.startsWith(".") ? current.slice(1) : `.${current}`; |
| 16 | |
| 17 | console.log(` swapping ${current} with ${next}`); |
| 18 | |
| 19 | fs.renameSync(getPkgPath(current, isSubPackage), getPkgPath(next, isSubPackage)); |
| 20 | }; |
| 21 | |
| 22 | const CLI_ENTRY_PATH = path.resolve(ROOT_PATH, "./packages/webpack-cli/bin/cli.js"); |
| 23 |
no test coverage detected