Skip to content

Commit

Permalink
fix: correct type build
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 5, 2024
1 parent 72017f5 commit 9dbc553
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
38 changes: 37 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"module": "build/vega-tooltip.module.js",
"unpkg": "build/vega-tooltip.min.js",
"jsdelivr": "build/vega-tooltip.min.js",
"types": "build/vega-tooltip.module.d.ts",
"types": "build/src/index.d.ts",
"files": [
"src",
"build",
Expand Down Expand Up @@ -73,6 +73,7 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.1",
"@types/jest": "^29.5.14",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
Expand All @@ -90,7 +91,6 @@
"release-it": "^17.10.0",
"rollup": "^4.24.4",
"rollup-plugin-bundle-size": "^1.0.3",
"@rollup/plugin-typescript": "^12.1.1",
"sass": "^1.80.6",
"typescript": "~5.6.3",
"vega-datasets": "^2.9.0",
Expand Down
5 changes: 3 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import bundleSize from 'rollup-plugin-bundle-size';
import typescript from '@rollup/plugin-typescript';
import bundleSize from 'rollup-plugin-bundle-size';

import pkg from './package.json' assert { type: 'json' };

const plugins = (browserslist, declaration) => [
const plugins = (declaration) => [
resolve(),
json(),
typescript({
compilerOptions: {
outDir: 'build',
declaration,
declarationMap: declaration,
},
Expand Down

0 comments on commit 9dbc553

Please sign in to comment.