Skip to content

Commit 93a812d

Browse files
authored
fix: type VERSION as a string (#153)
1 parent 580c632 commit 93a812d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/itchy-boats-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-cloudinary": patch
3+
---
4+
5+
fix: type VERSION as a string

packages/svelte-cloudinary/scripts/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const pkg = JSON.parse(
66
);
77

88
const tpl = `// THIS FILE IS GENERATED
9-
export const VERSION = '${pkg.version}';
9+
export const VERSION: string = '${pkg.version}';
1010
`;
1111

1212
await writeFile(join(import.meta.url, '../src/version.ts'), tpl, 'utf-8');

0 commit comments

Comments
 (0)