From 8147aad3ec6d43de24760af605874b8f0f64d271 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 23 Sep 2023 19:03:54 +0100 Subject: [PATCH] imports with file extension --- package.json | 2 +- src/getRedirects.ts | 2 +- src/index.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 16f74d3..30699f9 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "prepublishOnly": "npm run build" }, "files": [ - "dist" + "./dist" ], "devDependencies": { "@types/node": "^20.6.3", diff --git a/src/getRedirects.ts b/src/getRedirects.ts index c2d5358..258a072 100644 --- a/src/getRedirects.ts +++ b/src/getRedirects.ts @@ -1,6 +1,6 @@ import path from 'node:path' import type { Redirects } from '.' -import { getMarkdownFrontmatter } from './utils' +import { getMarkdownFrontmatter } from './utils.js' export async function getRedirects( files: string[], diff --git a/src/index.ts b/src/index.ts index 38dcc89..21d4511 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import path from 'node:path' import type { AstroIntegration } from 'astro' -import { getMarkdownFiles, getSlugFromFilePath, writeJson } from './utils' -import { getRedirects } from './getRedirects' +import { getMarkdownFiles, getSlugFromFilePath, writeJson } from './utils.js' +import { getRedirects } from './getRedirects.js' export type GetSlug = (filePath: string) => string