UNPKG

rdme

Version:

ReadMe's official CLI and GitHub Action.

12 lines (11 loc) 472 B
import Configstore from 'configstore'; import { pkg } from './getPkg.js'; const configstore = new Configstore( /** * The `VITEST_POOL_ID` and `VITEST_WORKER_ID` are used here to ensure that our `configstore` * tests don't clash with one another. * * @see {@link https://vitest.dev/guide/migration.html#envs} */ `${pkg.name}-${process.env.NODE_ENV || 'production'}${process.env.VITEST_POOL_ID || ''}${process.env.VITEST_WORKER_ID || ''}`); export default configstore;