From 6852da09bf4116572a44e4846146604f304c7150 Mon Sep 17 00:00:00 2001 From: Ilya Artamonov Date: Sat, 15 Jul 2023 16:20:07 +0300 Subject: [PATCH] fix: Fixed error with types --- .gitignore | 1 + package.json | 11 ++++++----- tsconfig.json | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 10a258a..642a733 100644 --- a/.gitignore +++ b/.gitignore @@ -84,3 +84,4 @@ jspm_packages/ .pnp.* .idea +.npmrc diff --git a/package.json b/package.json index d7770b7..93e24d0 100644 --- a/package.json +++ b/package.json @@ -5,21 +5,22 @@ "author": "themesberg", "license": "MIT", "files": [ - "dist", - "dist_types" + "dist" ], "main": "./dist/flowbite-vue.umd.js", "module": "./dist/flowbite-vue.mjs", - "typings": "./dist_types/index.d.ts", + "types": "./dist/index.d.ts", "exports": { ".": { + "types": "./dist/index.d.ts", "import": "./dist/flowbite-vue.mjs", "require": "./dist/flowbite-vue.umd.js" }, "./dist/style.css": { "import": "./dist/style.css", "require": "./dist/style.css" - } + }, + "./*": "./dist/*" }, "scripts": { "dev": "vitepress dev docs", @@ -27,7 +28,7 @@ "build": "vitepress build docs && cp -r ./docs/assets/* ./docs/.vitepress/dist/assets/", "build:package": "vite build", "build:types": "vue-tsc --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.json", - "build:production": "npm run build:types && npm run build:package", + "build:production": "npm run build:package && npm run build:types", "lint": "eslint --ext .ts,.vue --ignore-path .gitignore", "lint-fix": "eslint --ext .ts,.vue --ignore-path .gitignore --fix src", "clear": "rm -fr ./dist && rm -fr ./dist_types", diff --git a/tsconfig.json b/tsconfig.json index ee581d6..464b5cd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "extends": "@vue/tsconfig/tsconfig.web.json", "compilerOptions": { "baseUrl": ".", - "outDir": "dist_types", + "outDir": "dist", "paths": { "@/*": [ "./src/*"