mirror of
https://github.com/kremalicious/astro-redirect-from.git
synced 2024-12-22 09:23:21 +01:00
Dependency updates (#197)
* switch to Node.js v20 * run test on windows too * bump packages * revert windows test runs * readme update * remove astro from dependencies * typing update
This commit is contained in:
parent
574d3ae272
commit
052440f945
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -33,7 +33,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
node: ['18', '20']
|
node: ['20', '22']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@ -43,7 +43,7 @@ jobs:
|
|||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
if: matrix.os == 'ubuntu-latest' && matrix.node == '18'
|
if: matrix.os == 'ubuntu-latest' && matrix.node == '20'
|
||||||
with:
|
with:
|
||||||
name: coverage-${{ matrix.os }}-${{ matrix.node }}
|
name: coverage-${{ matrix.os }}-${{ matrix.node }}
|
||||||
path: coverage/
|
path: coverage/
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
node: ['18', '20']
|
node: ['20', '22']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: coverage-ubuntu-latest-18
|
name: coverage-ubuntu-latest-20
|
||||||
- uses: paambaati/codeclimate-action@v5.0.0
|
- uses: paambaati/codeclimate-action@v5.0.0
|
||||||
env:
|
env:
|
||||||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
The plugin is designed to work without configuration, especially if your project aligns with Astro's default settings.
|
The plugin is designed to work without configuration, especially if your project aligns with Astro's default settings.
|
||||||
|
|
||||||
- Astro v3 (v2 probably works too, but is not tested)
|
- Astro v3+ (v2 probably works too, but is not tested)
|
||||||
- Markdown files should be in a directory (default is `src/pages/`)
|
- Markdown files should be in a directory (default is `src/pages/`)
|
||||||
- Slugs are extracted either from the frontmatter or the file/folder path
|
- Slugs are extracted either from the frontmatter or the file/folder path
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ See [CHANGELOG.md](CHANGELOG.md).
|
|||||||
|
|
||||||
The MIT License
|
The MIT License
|
||||||
|
|
||||||
Copyright (c) 2023 Matthias Kretschmann
|
Copyright (c) 2024 Matthias Kretschmann
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
7908
package-lock.json
generated
7908
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@ -24,26 +24,29 @@
|
|||||||
},
|
},
|
||||||
"files": ["./dist"],
|
"files": ["./dist"],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@biomejs/biome": "^1.8.3",
|
"@biomejs/biome": "^1.9.4",
|
||||||
"@kremalicious/config": "^1.0.2",
|
"@kremalicious/config": "^1.0.2",
|
||||||
"@types/node": "^22.2.0",
|
"@types/node": "^22.10.2",
|
||||||
"@vitest/coverage-v8": "^2.0.5",
|
"@vitest/coverage-v8": "^2.1.8",
|
||||||
"auto-changelog": "^2.4.0",
|
"astro": "^5.1.0",
|
||||||
"husky": "^9.1.4",
|
"auto-changelog": "^2.5.0",
|
||||||
|
"husky": "^9.1.7",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"release-it": "^17.6.0",
|
"release-it": "^17.10.0",
|
||||||
"typescript": "^5.5.4",
|
"typescript": "^5.7.2",
|
||||||
"vite": "^5.4.0",
|
"vite": "^6.0.4",
|
||||||
"vitest": "^2.0.5"
|
"vitest": "^2.1.8"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"astro": ">= 3",
|
|
||||||
"globby": "^14.0.2",
|
"globby": "^14.0.2",
|
||||||
"gray-matter": "^4.0.3"
|
"gray-matter": "^4.0.3"
|
||||||
},
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"astro": ">=3.0.0"
|
||||||
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.18.0",
|
"node": ">=20",
|
||||||
"npm": ">=6.14.0"
|
"astro": ">=3.0.0"
|
||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
@ -11,7 +11,7 @@ export async function getRedirects(
|
|||||||
files: string[],
|
files: string[],
|
||||||
srcDir: string,
|
srcDir: string,
|
||||||
getSlug: (filePath: string) => string,
|
getSlug: (filePath: string) => string,
|
||||||
command: 'dev' | 'build' | 'preview',
|
command: 'dev' | 'build' | 'preview' | 'sync',
|
||||||
logger: { warn: (msg: string) => void }
|
logger: { warn: (msg: string) => void }
|
||||||
) {
|
) {
|
||||||
let redirects: Redirects = {}
|
let redirects: Redirects = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user