mirror of
https://github.com/kremalicious/astro-redirect-from.git
synced 2024-11-25 20:03:12 +01:00
imports with file extension
This commit is contained in:
parent
5459cf8948
commit
8147aad3ec
@ -20,7 +20,7 @@
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
"./dist"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.6.3",
|
||||
|
@ -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[],
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user