Skip to content

Commit bb853dc

Browse files
committed
v0.0.6: Export files
1 parent 4b13d00 commit bb853dc

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "bootstrap-vscode-theme",
33
"displayName": "Bootstrap Theme",
44
"description": "Bootstrap theme for Shiki, VS Code, and more",
5-
"version": "0.0.5",
5+
"version": "0.0.6",
66
"publisher": "bootstrap",
77
"icon": "icon.png",
88
"galleryBanner": {
@@ -12,7 +12,7 @@
1212
"license": "MIT",
1313
"repository": {
1414
"type": "git",
15-
"url": "https://github.com/twbs/bootstrap-vscode-theme"
15+
"url": "git+https://github.com/twbs/bootstrap-vscode-theme.git"
1616
},
1717
"bugs": {
1818
"url": "https://github.com/twbs/bootstrap-vscode-theme/issues"
@@ -67,6 +67,9 @@
6767
"README.md",
6868
"LICENSE.md"
6969
],
70+
"exports": {
71+
".": "./src/index.ts"
72+
},
7073
"devDependencies": {
7174
"nodemon": "^3.1.7",
7275
"ts-node": "^10.9.2",

src/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// src/index.ts
2+
export { makeTheme } from "./theme";
3+
export { light, dark } from "./palette";
4+
export { convertRolesToP3 } from "./color-p3";
5+
export type { Roles } from "./palette";
6+
7+
// Re-export the built theme JSONs for convenience
8+
import bootstrapLight from "../themes/bootstrap-light.json";
9+
import bootstrapDark from "../themes/bootstrap-dark.json";
10+
import bootstrapLightVibrant from "../themes/bootstrap-light-vibrant.json";
11+
import bootstrapDarkVibrant from "../themes/bootstrap-dark-vibrant.json";
12+
13+
export const themes = {
14+
light: bootstrapLight,
15+
dark: bootstrapDark,
16+
lightVibrant: bootstrapLightVibrant,
17+
darkVibrant: bootstrapDarkVibrant
18+
};

0 commit comments

Comments
 (0)