You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(license): name the build precondition when package license copies are absent
The release audit inspects build output and deliberately does not regenerate
the package-local LICENSE/NOTICE copies; a clean checkout now fails with a
message that points at `pnpm build` instead of a bare missing-file error.
fail(`${packageDirectory}/${file} is missing; this audit inspects build output, so run \`pnpm build\` (which runs scripts/sync-license-files.mjs) first`);
171
+
}
165
172
if(!packedPaths.has(file))fail(`${packageDirectory} tarball is missing ${file}`);
166
-
const[expected,actual]=awaitPromise.all([
167
-
readFile(join(repositoryRoot,file),'utf8'),
168
-
readFile(join(repositoryRoot,packageDirectory,file),'utf8').catch(()=>fail(`${packageDirectory}/${file} is not readable`)),
169
-
]);
170
-
if(expected!==actual)fail(`${packageDirectory}/${file} differs from the repository root ${file}`);
0 commit comments