Skip to content

Commit 7e613fe

Browse files
authoredMar 25, 2024··
build: publish to JSR (#78)
* build(deno.json): add jsr info * refactor(mod.ts): add explicit types * ci: add publish step to JSR
1 parent 563cdbc commit 7e613fe

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
 

‎.github/workflows/release-please.yml

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ jobs:
5252
env:
5353
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5454

55+
- name: Publish to JSR
56+
run: deno publish
57+
5558
- name: Upload the palette files
5659
env:
5760
GH_TOKEN: ${{ github.token }}

‎deno.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@catppuccin/palette",
3+
"version": "1.1.0",
4+
"exports": "./mod.ts",
25
"importMap": "./import_map.json",
36
"exclude": [
47
"dist"
@@ -13,6 +16,5 @@
1316
"build:palettes": "deno run -A ./scripts/build_palettes.ts",
1417
"build": "deno task build:npm & deno task build:palettes",
1518
"generate": "deno run -A ./scripts/gen_palette.ts"
16-
},
17-
"version": "1.1.0"
19+
}
1820
}

‎mod.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export type ColorFormat = Readonly<{
185185
/**
186186
* All flavors of Catppuccin
187187
*/
188-
export const flavors = entriesFromObject(definitions)
188+
export const flavors: CatppuccinFlavors = entriesFromObject(definitions)
189189
.reduce((acc, [flavorName, flavor]) => {
190190
acc[flavorName] = {
191191
...flavor,
@@ -197,4 +197,6 @@ export const flavors = entriesFromObject(definitions)
197197
/**
198198
* A typed `Object.entries()` iterable of all Catppuccin flavors
199199
*/
200-
export const flavorEntries = entriesFromObject(flavors);
200+
export const flavorEntries: Entries<CatppuccinFlavors> = entriesFromObject(
201+
flavors,
202+
);

0 commit comments

Comments
 (0)
Please sign in to comment.