isEsmPackage
Says whether the project at the root is an ES module package.
Import:
import { isEsmPackage } from '@mnaoumov/typescript-dev-toolkit/test-runners/jest-config';Signature:
function isEsmPackage(): booleanReturns: boolean — Whether its package.json declares "type": "module". A project without a package.json is not.