convertToEndoPackagePolicyGlobals = (item) => {
  if (!item) {
    return undefined
  }
  return [item]
}
Converts LavaMoat `ResourcePolicy.globals` to Endo's `PackagePolicy.globals`

By returning an array for a truthy value, we force Endo to use the default
attenuator.

@param {GlobalPolicy} [item] - A value in `ResourcePolicy`
@returns {LavaMoatEndoPackagePolicy['globals']}