Skip to content

Commit 0a843ec

Browse files
authored
fix: add missing exports (#194)
* build: add types export to root * build: add scss dist export * docs: update README.md
1 parent 6eb6d4d commit 0a843ec

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import Oruga from "@oruga-ui/oruga-next";
4949
import { bootstrapConfig } from "@oruga-ui/theme-bootstrap";
5050

5151
// import Bootstrap and Oruga styling
52-
import "@oruga-ui/theme-bootstrap/dist/bootstrap.css";
52+
import "@oruga-ui/theme-bootstrap/style.css";
5353

5454
createApp(App).use(Oruga, bootstrapConfig).mount("#app");
5555
```
@@ -67,7 +67,7 @@ You have two options for including the theme: include all the styling at once (i
6767
// ...
6868

6969
// Include the Oruga Bootstrap theme with Bootstrap included
70-
@import "/node_modules/@oruga-ui/theme-bootstrap/dist/scss/bootstrap-build";
70+
@import "/node_modules/@oruga-ui/theme-bootstrap/scss/theme-build";
7171

7272
// Then add additional custom code here
7373
// ...
@@ -87,7 +87,7 @@ You have two options for including the theme: include all the styling at once (i
8787
@import "/node_modules/bootstrap/scss/variables-dark";
8888

8989
// 4. Include the Oruga Bootstrap theme variables
90-
@import "/node_modules/@oruga-ui/theme-bootstrap/dist/scss/utils/variables";
90+
@import "/node_modules/@oruga-ui/theme-bootstrap/scss/utils/variables";
9191

9292
// 5. Include any default map overrides here
9393
// ...
@@ -96,7 +96,7 @@ You have two options for including the theme: include all the styling at once (i
9696
@import "/node_modules/bootstrap/scss/bootstrap";
9797

9898
// 7. Include the Oruga Bootstrap theme components styles
99-
@import "/node_modules/@oruga-ui/theme-bootstrap/dist/scss/bootstrap";
99+
@import "/node_modules/@oruga-ui/theme-bootstrap/scss/theme";
100100

101101
// 8. Add additional custom code here
102102
// ...
@@ -112,7 +112,7 @@ import { createApp } from "vue";
112112
import Oruga from "@oruga-ui/oruga-next";
113113
import { bootstrapConfig } from "@oruga-ui/theme-bootstrap";
114114

115-
import "@oruga-ui/theme-bootstrap/dist/bootstrap.css";
115+
import "@oruga-ui/theme-bootstrap/style.css";
116116

117117
const custombootstrapConfig = {
118118
...bootstrapConfig,

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
],
1515
"exports": {
1616
".": {
17-
"import": "./dist/theme.js"
17+
"import": "./dist/theme.js",
18+
"types": "./dist/types/theme.d.ts"
1819
},
1920
"./style.css": "./dist/theme.css",
20-
"./style.scss": "./dist/scss/theme.scss"
21+
"./style.scss": "./dist/scss/theme.scss",
22+
"./scss/*.scss": "./dist/scss/*.scss",
23+
"./dist/scss/*.scss": "./dist/scss/*.scss"
2124
},
2225
"files": [
2326
"dist"

0 commit comments

Comments
 (0)