From 5cefe60a96bf49b843017212e13879aa8a28ee15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20P=C3=B6mp?= Date: Fri, 24 Nov 2023 11:21:57 +0100 Subject: [PATCH] fix(utilities): missing typings --- libs/utilities/vite.config.ts | 12 +++++++++++- package.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/libs/utilities/vite.config.ts b/libs/utilities/vite.config.ts index ddfb5827b..1e03436a8 100644 --- a/libs/utilities/vite.config.ts +++ b/libs/utilities/vite.config.ts @@ -1,10 +1,20 @@ /// import { defineConfig } from 'vite'; +import dts from 'vite-plugin-dts'; +import * as path from 'path'; +import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin'; export default defineConfig({ cacheDir: '../node_modules/.vite/utilities', - plugins: [], + plugins: [ + dts({ + entryRoot: 'src', + tsConfigFilePath: path.join(__dirname, 'tsconfig.lib.json'), + skipDiagnostics: true, + }), + nxViteTsPaths(), + ], // Uncomment this if you are using workers. // worker: { diff --git a/package.json b/package.json index 866fc51bc..aa5bf7cad 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "release:lib:ngx-utilities": "nx build ngx-utilities && nx run ngx-utilities:version --push", "publish:lib:ngx-utilities": "nx build ngx-utilities && nx npm ngx-utilities", "release:lib:utilities": "node runner.js build:lib utilities && nx run utilities:version --push", - "publish:lib:utilities": "node runner.js build:lib && nx npm utilities", + "publish:lib:utilities": "node runner.js build:lib utilities && nx npm utilities", "release:lib:web-media": "nx bundle web-media && nx run web-media:version --push", "publish:lib:web-media": "nx bundle web-media && nx npm web-media", "analyze:octra": "nx build --configuration production --stats-json && webpack-bundle-analyzer dist/apps/octra/stats.json",