@gmetrixr/rjson
Version:
(R)ecursive Json
11 lines (10 loc) • 490 B
JavaScript
import d000_001 from "./deployment-migration-commands/d000_001_initial_deployment_migrations";
import d001_002 from "./deployment-migration-commands/d001_002_multiplayer_collab_properties_false_when_undefined";
export const deploymentMigrationTree = {
[0]: d000_001,
[1]: d001_002,
};
export const getHighestDeploymentVersion = () => {
const unorderedKeys = Object.keys(deploymentMigrationTree).map(n => parseInt(n)).sort((a, b) => (b - a));
return unorderedKeys[0] + 1;
};