1
0
mirror of https://github.com/kremalicious/astro-redirect-from.git synced 2024-11-22 18:00:19 +01: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" "prepublishOnly": "npm run build"
}, },
"files": [ "files": [
"dist" "./dist"
], ],
"devDependencies": { "devDependencies": {
"@types/node": "^20.6.3", "@types/node": "^20.6.3",

View File

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

View File

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