Skip to content

Commit

Permalink
fix(build): add typings to dist (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlmoravek authored Sep 12, 2024
1 parent 0c1d071 commit 4ec816f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "dist/bulma.js",
"module": "dist/bulma.mjs",
"unpkg": "dist/bulma.min.js",
"typings": "types/index.d.ts",
"types": "dist/types/bulma.d.ts",
"sideEffects": [
"*.css",
"*.scss"
Expand Down
10 changes: 9 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ const commonSassPluginOptions = {
};

const typescriptPluginOptions = {
sourceMap: false
sourceMap: false,
// skip type checking of declaration files
skipLibCheck:true,
// enabling declaration (.d.ts) emit
declaration: true,
// decouple declaration files from actual transpiled JavaScript files
declarationDir: "dist/types",
// define included files
include: "src/plugins/**",
};

function createDirectoryIfDoesNotExist(filePath) {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/bulma.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { OrugaOptions, ComponentProps } from "@oruga-ui/oruga-next";
import { isTrueish } from "@oruga-ui/oruga-next";

// import theme style
import "../assets/scss/bulma-build.scss";

export const bulmaConfig: OrugaOptions = {
const bulmaConfig: OrugaOptions = {
field: {
override: true,
rootClass: "field",
Expand Down Expand Up @@ -430,3 +431,5 @@ export const bulmaConfig: OrugaOptions = {
hoveredClass: "is-hovered",
},
};

export { bulmaConfig, bulmaConfig as config };
6 changes: 0 additions & 6 deletions src/shims-vue.d.ts

This file was deleted.

0 comments on commit 4ec816f

Please sign in to comment.