validate-mdx-links 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -182,6 +182,7 @@ function buildContentScanResult(contentDir, cwd, verbose, deps) {
182
182
  return { urls, fallbackUrls };
183
183
  }
184
184
  export async function validateMdxLinks({ cwd = process.cwd(), files: filesGlob, verbose = false, contentDir, }) {
185
+ cwd = resolve(cwd);
185
186
  const originalCwd = process.cwd();
186
187
  process.chdir(cwd);
187
188
  const files = globSync(filesGlob);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "validate-mdx-links",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -263,6 +263,7 @@ export async function validateMdxLinks({
263
263
  verbose = false,
264
264
  contentDir,
265
265
  }: ValidateMdxLinksOptions): Promise<ValidationResult[]> {
266
+ cwd = resolve(cwd);
266
267
  const originalCwd = process.cwd();
267
268
  process.chdir(cwd);
268
269