mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-20 13:51:31 +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('-');
|
|
}
|