Skip to content

Commit

Permalink
fix: update to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed May 27, 2023
1 parent b6a9d39 commit e4493cf
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 154 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@
},
"devDependencies": {
"@astrojs/tailwind": "^3.1.3",
"@types/eslint": "^8.37.0",
"@types/eslint": "^8.40.0",
"@types/markdown-it": "^12.2.3",
"@types/node": "^20.2.1",
"@types/node": "^20.2.5",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"astro": "2.5.1",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"astro": "2.5.5",
"astro-auto-import": "^0.3.0",
"astro-icon": "0.8.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-astro": "^0.27.0",
"eslint-plugin-astro": "^0.27.1",
"eslint-plugin-prettier": "^4.2.1",
"kleur": "^4.1.5",
"prettier": "^2.8.8",
"prettier-plugin-astro": "^0.9.0",
"prettier-plugin-astro": "^0.9.1",
"quick-score": "^0.2.0",
"quicklink": "^2.3.0",
"typescript": "^5.0.4"
Expand All @@ -49,12 +49,12 @@
}
},
"patchedDependencies": {
"astro@2.5.1": "patches/astro@2.5.1.patch"
"astro@2.5.5": "patches/astro@2.5.5.patch"
}
},
"dependencies": {
"@11ty/eleventy-fetch": "^4.0.0",
"@astrojs/mdx": "^0.19.2",
"@astrojs/mdx": "^0.19.4",
"@types/igdb-api-node": "^5.0.0",
"dotenv": "^16.0.3",
"gray-matter": "^4.0.3",
Expand Down
55 changes: 0 additions & 55 deletions patches/astro@2.5.1.patch

This file was deleted.

32 changes: 32 additions & 0 deletions patches/astro@2.5.5.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
diff --git a/dist/content/vite-plugin-content-imports.js b/dist/content/vite-plugin-content-imports.js
index 89029889cb9a26dd7d6646d9a625beb7c32406e7..136f7480d101c7adb2cfc4acf5166c936e3d0138 100644
--- a/dist/content/vite-plugin-content-imports.js
+++ b/dist/content/vite-plugin-content-imports.js
@@ -18,7 +18,8 @@ import {
globalContentConfigObserver,
hasContentFlag,
parseEntrySlug,
- reloadContentConfigObserver
+ reloadContentConfigObserver,
+ hasUnderscoreBelowContentDirectoryPath,
} from "./utils.js";
function getContentRendererByViteId(viteId, settings) {
let ext = viteId.split(".").pop();
@@ -51,7 +52,16 @@ function astroContentImportPlugin({
{
name: "astro:content-imports",
async transform(_, viteId) {
- if (hasContentFlag(viteId, DATA_FLAG)) {
+ if (hasContentFlag(viteId, DATA_FLAG)) {
+ if (
+ contentPaths.contentDir &&
+ hasUnderscoreBelowContentDirectoryPath(
+ new URL(viteId, "file:"),
+ contentPaths.contentDir
+ )
+ ) {
+ return null;
+ }
const fileId = viteId.split("?")[0] ?? viteId;
const { id, data, collection, _internal } = await getDataEntryModule({
fileId,
Loading

1 comment on commit e4493cf

@vercel
Copy link

@vercel vercel bot commented on e4493cf May 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

erika-florist – ./

erika-florist-princesseuh.vercel.app
erika-florist.vercel.app
erika-florist-git-main-princesseuh.vercel.app

Please sign in to comment.