Skip to content

Commit 5f978d2

Browse files
committed
v0.0.7: Updated index without TypeScript, fix package.json
1 parent bb853dc commit 5f978d2

File tree

3 files changed

+19
-22
lines changed

3 files changed

+19
-22
lines changed

package.json

Lines changed: 8 additions & 4 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.6",
5+
"version": "0.0.7",
66
"publisher": "bootstrap",
77
"icon": "icon.png",
88
"galleryBanner": {
@@ -61,15 +61,19 @@
6161
"package": "vsce package",
6262
"prepublishOnly": "npm run build"
6363
},
64+
"type": "module",
65+
"main": "./index.js",
66+
"exports": {
67+
".": "./index.js",
68+
"./themes/*.json": "./themes/*.json"
69+
},
6470
"files": [
71+
"index.js",
6572
"themes/",
6673
"icon.png",
6774
"README.md",
6875
"LICENSE.md"
6976
],
70-
"exports": {
71-
".": "./src/index.ts"
72-
},
7377
"devDependencies": {
7478
"nodemon": "^3.1.7",
7579
"ts-node": "^10.9.2",

src/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export { default as bootstrapLight } from './themes/bootstrap-light.json' with { type: 'json' };
2+
export { default as bootstrapDark } from './themes/bootstrap-dark.json' with { type: 'json' };
3+
export { default as bootstrapLightVibrant } from './themes/bootstrap-light-vibrant.json' with { type: 'json' };
4+
export { default as bootstrapDarkVibrant } from './themes/bootstrap-dark-vibrant.json' with { type: 'json' };
5+
6+
export const themes = {
7+
light: bootstrapLight,
8+
dark: bootstrapDark,
9+
lightVibrant: bootstrapLightVibrant,
10+
darkVibrant: bootstrapDarkVibrant
11+
};

src/index.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)