diff --git a/dist/index.d.ts b/dist/index.d.ts index 9931e9a..faf54ed 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,4 +1,4 @@ export { highlight, highlightElements, highlightElement } from "./main.mjs"; -export { bash } from "./language/bash"; -export { zig } from "./language/zig"; -export { diff } from "./language/diff"; +export { bash } from "./language/bash.mjs"; +export { zig } from "./language/zig.mjs"; +export { diff } from "./language/diff.mjs"; diff --git a/dist/index.js b/dist/index.js index 9931e9a..faf54ed 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ export { highlight, highlightElements, highlightElement } from "./main.mjs"; -export { bash } from "./language/bash"; -export { zig } from "./language/zig"; -export { diff } from "./language/diff"; +export { bash } from "./language/bash.mjs"; +export { zig } from "./language/zig.mjs"; +export { diff } from "./language/diff.mjs"; diff --git a/dist/language/bash.d.mts b/dist/language/bash.d.mts new file mode 100644 index 0000000..6998dc2 --- /dev/null +++ b/dist/language/bash.d.mts @@ -0,0 +1,2 @@ +import { LanguagePattern } from "../types/types.mjs"; +export declare const bash: LanguagePattern[]; diff --git a/dist/language/bash.d.ts b/dist/language/bash.d.ts deleted file mode 100644 index eedab08..0000000 --- a/dist/language/bash.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LanguagePattern } from "../types/types"; -export declare const bash: LanguagePattern[]; diff --git a/dist/language/bash.js b/dist/language/bash.mjs similarity index 100% rename from dist/language/bash.js rename to dist/language/bash.mjs diff --git a/dist/language/diff.d.mts b/dist/language/diff.d.mts new file mode 100644 index 0000000..3031b93 --- /dev/null +++ b/dist/language/diff.d.mts @@ -0,0 +1,2 @@ +import { LanguagePattern } from "../types/types.mjs"; +export declare const diff: LanguagePattern[]; diff --git a/dist/language/diff.d.ts b/dist/language/diff.d.ts deleted file mode 100644 index 408a01a..0000000 --- a/dist/language/diff.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LanguagePattern } from "../types/types"; -export declare const diff: LanguagePattern[]; diff --git a/dist/language/diff.js b/dist/language/diff.mjs similarity index 100% rename from dist/language/diff.js rename to dist/language/diff.mjs diff --git a/dist/language/zig.d.mts b/dist/language/zig.d.mts new file mode 100644 index 0000000..7d086e1 --- /dev/null +++ b/dist/language/zig.d.mts @@ -0,0 +1,2 @@ +import { LanguagePattern } from "../types/types.mjs"; +export declare const zig: LanguagePattern[]; diff --git a/dist/language/zig.d.ts b/dist/language/zig.d.ts deleted file mode 100644 index df6a223..0000000 --- a/dist/language/zig.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LanguagePattern } from "../types/types"; -export declare const zig: LanguagePattern[]; diff --git a/dist/language/zig.js b/dist/language/zig.mjs similarity index 100% rename from dist/language/zig.js rename to dist/language/zig.mjs diff --git a/dist/main.d.mts b/dist/main.d.mts index 8d3a77c..df756fd 100644 --- a/dist/main.d.mts +++ b/dist/main.d.mts @@ -1,4 +1,4 @@ -import { LanguagePattern } from "./types/types"; +import { LanguagePattern } from "./types/types.mjs"; export declare function highlight(language: LanguagePattern[], content: string): string; export declare function highlightElements(language: LanguagePattern[], className: string): void; export declare function highlightElement(language: LanguagePattern[], id: string): void; diff --git a/dist/types/types.d.ts b/dist/types/types.d.mts similarity index 100% rename from dist/types/types.d.ts rename to dist/types/types.d.mts diff --git a/dist/types/types.js b/dist/types/types.mjs similarity index 100% rename from dist/types/types.js rename to dist/types/types.mjs diff --git a/package.json b/package.json index d9a4da0..57d6ac7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zilite", - "version": "0.0.289", + "version": "0.0.291", "description": "An easy-to-use syntax highlighter for the web.", "author": { "name": "Rohan Vashisht", diff --git a/src/index.ts b/src/index.ts index 4147916..0137559 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ export { highlight, highlightElements, highlightElement } from "./main.mjs" -export { bash } from "./language/bash" -export { zig } from "./language/zig" -export { diff } from "./language/diff" \ No newline at end of file +export { bash } from "./language/bash.mjs" +export { zig } from "./language/zig.mjs" +export { diff } from "./language/diff.mjs" \ No newline at end of file diff --git a/src/language/bash.ts b/src/language/bash.mts similarity index 93% rename from src/language/bash.ts rename to src/language/bash.mts index a96b578..4b33847 100644 --- a/src/language/bash.ts +++ b/src/language/bash.mts @@ -1,4 +1,4 @@ -import { LanguagePattern } from "../types/types"; +import { LanguagePattern } from "../types/types.mjs"; export const bash:LanguagePattern[] = [ { regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' }, diff --git a/src/language/diff.ts b/src/language/diff.mts similarity index 95% rename from src/language/diff.ts rename to src/language/diff.mts index 69fc367..c4a3d2f 100644 --- a/src/language/diff.ts +++ b/src/language/diff.mts @@ -1,4 +1,4 @@ -import { LanguagePattern } from "../types/types"; +import { LanguagePattern } from "../types/types.mjs"; export const diff:LanguagePattern[] = [ { regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' }, diff --git a/src/language/zig.ts b/src/language/zig.mts similarity index 94% rename from src/language/zig.ts rename to src/language/zig.mts index c882c8f..eca149c 100644 --- a/src/language/zig.ts +++ b/src/language/zig.mts @@ -1,4 +1,4 @@ -import { LanguagePattern } from "../types/types"; +import { LanguagePattern } from "../types/types.mjs"; export const zig:LanguagePattern[] = [ { regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' }, diff --git a/src/main.mts b/src/main.mts index be52504..50e7087 100644 --- a/src/main.mts +++ b/src/main.mts @@ -1,4 +1,4 @@ -import { LanguagePattern } from "./types/types"; +import { LanguagePattern } from "./types/types.mjs"; export function highlight(language: LanguagePattern[], content: string) { content = content.replace(/ /g, "±±§§±±§§") diff --git a/src/types/types.ts b/src/types/types.mts similarity index 100% rename from src/types/types.ts rename to src/types/types.mts