Skip to content

Commit

Permalink
fix: fix the absence of specified exports,
Browse files Browse the repository at this point in the history
how to add static file exports
  • Loading branch information
mineejo committed Dec 14, 2023
1 parent a4ba36f commit 793c738
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions _generator/_/_generate_mod_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ export async function generateModFile(
comments: string,
content: string,
): Promise<void> {
fileExports.push(`export * from ".${sep}wrap_ansi16.ts"`);

try {
await Deno.writeFile(
MOD_FILE,
Expand Down
2 changes: 1 addition & 1 deletion _generator/_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const thisFileCopyright: string = (await Deno.readTextFile(
join(`.${sep}`, thisFileUrl[thisFileUrl.length - 1]),
)).match(/^\/\/.+$/mg)?.[0] ?? "";

export const fileExports: string[] = [];
export const fileExports: string[] = [`export * from ".${sep}wrap_ansi16.ts"`];

await copyConversionFiles(
thisFileCopyright,
Expand Down
1 change: 1 addition & 0 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* @module
*/

export * from "./wrap_ansi16.ts";
export * from "./hex/hex_to_rgb.ts";
export * from "./hsv/hsv_to_rgb.ts";
export * from "./rgb/rgb_to_xyz.ts";
Expand Down

0 comments on commit 793c738

Please sign in to comment.