Fixed types generation

This commit is contained in:
2025-07-15 17:39:24 +02:00
parent 7fdefba622
commit c6e02087c8
4 changed files with 34 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@meteolab/uchart",
"publishConfig": { "access": "public" },
"version": "1.0.3",
"version": "1.0.5",
"description": "Lightweight charting library for the browser and Node.js",
"license": "MIT",
"repository": {
@@ -15,6 +15,7 @@
"module": "./dist/uchart.js",
"types": "./dist/uchart.d.ts",
"sideEffects": false,
"outDir": "./dist",
"exports": {
".": {
"types": "./dist/uchart.d.ts",
@@ -25,7 +26,7 @@
"scripts": {
"clean": "rm -rf dist",
"build:js": "esbuild src/index.ts --bundle --minify --format=esm --outfile=dist/uchart.js",
"build:types": "tsc -p tsconfig.json",
"build:types": "tsc --declaration --emitDeclarationOnly",
"build": "npm run clean && npm run build:js && npm run build:types",
"prepublishOnly": "npm run build",
"serve": "npx http-server . -c-1 --gzip"