mirror of
https://github.com/kremalicious/astro-redirect-from.git
synced 2024-11-22 09:57:03 +01:00
imports with file extension
This commit is contained in:
parent
5459cf8948
commit
8147aad3ec
@ -20,7 +20,7 @@
|
|||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"./dist"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.6.3",
|
"@types/node": "^20.6.3",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import type { Redirects } from '.'
|
import type { Redirects } from '.'
|
||||||
import { getMarkdownFrontmatter } from './utils'
|
import { getMarkdownFrontmatter } from './utils.js'
|
||||||
|
|
||||||
export async function getRedirects(
|
export async function getRedirects(
|
||||||
files: string[],
|
files: string[],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import path from 'node:path'
|
import path from 'node:path'
|
||||||
import type { AstroIntegration } from 'astro'
|
import type { AstroIntegration } from 'astro'
|
||||||
import { getMarkdownFiles, getSlugFromFilePath, writeJson } from './utils'
|
import { getMarkdownFiles, getSlugFromFilePath, writeJson } from './utils.js'
|
||||||
import { getRedirects } from './getRedirects'
|
import { getRedirects } from './getRedirects.js'
|
||||||
|
|
||||||
export type GetSlug = (filePath: string) => string
|
export type GetSlug = (filePath: string) => string
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user