1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-10-22 11:22:44 +02:00

imports with file extension

This commit is contained in:
Matthias Kretschmann 2023-09-23 19:03:54 +01:00
parent 5459cf8948
commit 8147aad3ec
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
"prepublishOnly": "npm run build"
},
"files": [
"dist"
"./dist"
],
"devDependencies": {
"@types/node": "^20.6.3",

View File

@ -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[],

View File

@ -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