{"version":3,"file":"tap-dir-cjs.cjs","sourceRoot":"","sources":["../../src/tap-dir-cjs.cts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,mCAAmC;AACnC,gDAAgD;AAChD,+BAAwC;AACxC,YAAY;AACZ,MAAM,CAAC,GAAG,IAAA,cAAO,EAAC,SAAS,CAAC,CAAA;AAC5B,qBAAqB;AACR,QAAA,MAAM,GAAG,IAAA,eAAQ,EAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAA,cAAO,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAC7D,oBAAoB","sourcesContent":["/**\n * Module that provides the location of the `@tapjs/core` module\n * Abstracted so that it can be built in two different ways depending\n * on whether we're building for CJS or ESM.\n * @module\n */\n// this form only works in the cjs.\n// it'll overwrite tap-dir.js output in cjs mode\nimport { basename, dirname } from 'path'\n//@ts-ignore\nconst u = dirname(__dirname)\n/* c8 ignore start */\nexport const tapDir = basename(u) === 'dist' ? dirname(u) : u\n/* c8 ignore stop */\n"]}