MCPcopy
hub / github.com/streamich/git-cz / removeLastDirectoryPartOf

Function removeLastDirectoryPartOf

lib/util/lerna.js:20–20  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

18};
19
20const removeLastDirectoryPartOf = (url) => url.substring(0, url.lastIndexOf('/'));
21
22const getPackageDirectories = (state) => {
23 const pkgFilename = path.join(state.root, 'package.json');

Callers 1

getPackageDirectoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…