From c52b870a3d6e3e59bb53bbcb41f2c8ca007d005a Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Fri, 8 Apr 2022 19:59:13 +0200 Subject: [PATCH] chore(deps-dev): Move ts-patch and typescript-transform-paths to package dev-deps --- package.json | 5 +---- package/package.json | 2 ++ package/tsconfig.json | 6 +++++- yarn.lock | 8 ++++++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 50d70879..2368d87c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "package" ], "scripts": { - "prepare": "ts-patch install -s", "dev": "yarn --cwd examples dev", "docs": "yarn --cwd docs dev", "docs:build": "yarn --cwd docs build", @@ -29,9 +28,7 @@ "eslint-plugin-prettier": "^3.4.1", "prettier": "^2.4.1", "shx": "^0.3.4", - "ts-patch": "^2.0.1", "typedoc": "^0.22.13", - "typescript": "^4.5.5", - "typescript-transform-paths": "^3.3.1" + "typescript": "^4.5.5" } } diff --git a/package/package.json b/package/package.json index 9e3d502e..6dae1219 100644 --- a/package/package.json +++ b/package/package.json @@ -48,6 +48,8 @@ "postcss": "^8.4.8", "postcss-cli": "^9.1.0", "postcss-nested": "^5.0.6", + "ts-patch": "^2.0.1", + "typescript-transform-paths": "^3.3.1", "unplugin-auto-import": "^0.6.9", "vite": "2.5.x", "vite-plugin-vue-type-imports": "^0.1.3", diff --git a/package/tsconfig.json b/package/tsconfig.json index e8063c44..59d9cc81 100644 --- a/package/tsconfig.json +++ b/package/tsconfig.json @@ -25,7 +25,11 @@ "~/*": [ "src/*" ] - } + }, + "plugins": [ + // Transform paths in output .d.ts files (Include this line if you output declarations files) + { "transform": "typescript-transform-paths", "afterDeclarations": true } + ] }, "include": [ "./src" diff --git a/yarn.lock b/yarn.lock index f8b6c706..db54315d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1456,6 +1456,14 @@ "@vuepress/core" "2.0.0-beta.38" prismjs "^1.27.0" +"@vuepress/plugin-shiki@^2.0.0-beta.38": + version "2.0.0-beta.38" + resolved "https://registry.yarnpkg.com/@vuepress/plugin-shiki/-/plugin-shiki-2.0.0-beta.38.tgz#931e33f2eb0dc0d594d3ddec4830eabc4843f240" + integrity sha512-ws5TpKsNDls2BPDtQLkUfeO1IB06BXzXAADe54u/ELTf7C9bE5teU6f9ETUwi+UhtySUtokm7UoJbx9rmu5o+A== + dependencies: + "@vuepress/core" "2.0.0-beta.38" + shiki "^0.10.1" + "@vuepress/plugin-theme-data@2.0.0-beta.38": version "2.0.0-beta.38" resolved "https://registry.yarnpkg.com/@vuepress/plugin-theme-data/-/plugin-theme-data-2.0.0-beta.38.tgz#6c3358bbc00147fcf1a7199e3da057d9952047c6"