Skip to content

Commit 922ab90

Browse files
committed
Updates dependencies and improves TypeScript imports
Switches import paths to use explicit '.ts' extensions for better compatibility with ES module resolution. Makes a transformer option optional for increased flexibility. Bumps package version to reflect changes.
1 parent 9b8aff0 commit 922ab90

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@libsrcdev/gatsby-remark-structured-content",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "This plugin helps building thumbnails, covers, heros, carousel features from remark content.",
55
"keywords": [
66
"gatsby",

src/create-schema-customization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CreateSchemaCustomizationArgs } from "gatsby";
2-
import type { RemarkStructuredContentTransformer } from "./types"; // adjust path as needed
2+
import type { RemarkStructuredContentTransformer } from "./types.ts"; // adjust path as needed
33

44
interface StructuredContentPluginOptions {
55
transformers?: RemarkStructuredContentTransformer[];

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function createImageExtractorTransformer(): RemarkStructuredContentTransf
3131
}
3232

3333
export type CreateThumbnailImageTransformerOptions = {
34-
keepImageInMdAST: boolean;
34+
keepImageInMdAST?: boolean;
3535
};
3636

3737
/**

src/source-nodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { SourceNodesArgs, PluginOptions } from "gatsby";
2-
import { RemarkPluginApi } from "./types";
2+
import { RemarkPluginApi } from "./types.ts";
33

44
export default async function sourceNodes(
55
gatsbyArgs: SourceNodesArgs,

0 commit comments

Comments
 (0)