Fixed types generation
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user