MCPcopy Create free account
hub / github.com/rolldown/rolldown / assertRunningScriptFromRepoRoot

Function assertRunningScriptFromRepoRoot

scripts/meta/utils.js:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { REPO_ROOT } from './constants.js';
4
5export function assertRunningScriptFromRepoRoot() {
6 nodeAssert.equal(
7 nodePath.normalize(process.cwd()),
8 nodePath.normalize(REPO_ROOT),
9 'The script must be run from the root of the repo',
10 );
11}

Callers 1

index.jsFile · 0.90

Calls 2

normalizeMethod · 0.80
cwdMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…