mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 16:52:40 +03:00
13 lines
327 B
TypeScript
13 lines
327 B
TypeScript
import type { BuildFlags } from '@affine/cli/config';
|
|
|
|
export function computeCacheKey(buildFlags: BuildFlags) {
|
|
return [
|
|
'1',
|
|
'node' + process.version,
|
|
buildFlags.mode,
|
|
buildFlags.distribution,
|
|
buildFlags.channel,
|
|
...(buildFlags.localBlockSuite ? [buildFlags.localBlockSuite] : []),
|
|
].join('-');
|
|
}
|