From 41d01663e44d48e4edbd2a204aabb18b2e701b6d Mon Sep 17 00:00:00 2001 From: David LJ Date: Sun, 10 Mar 2024 02:24:50 +0100 Subject: [PATCH] fix: use dist dir instead of out dir --- dts-config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dts-config.js b/dts-config.js index add8b0ed..39342303 100644 --- a/dts-config.js +++ b/dts-config.js @@ -4,7 +4,6 @@ const fs = require('fs') const NGX_META_DIR = path.join('.', 'projects', 'ngx-meta') const NGX_META_SRC_DIR = path.join(NGX_META_DIR, 'src') -const entrypoints = [] const getDirectories = (source) => fs .readdirSync(source, { withFileTypes: true }) @@ -24,9 +23,10 @@ ngxMetaEntrypoints.forEach((entrypoint) => { console.info('- ', entrypoint) }) +const NGX_META_DIST_DIR = path.join(NGX_META_DIR, 'dist') const entries = ngxMetaEntrypoints.map((entrypoint) => ({ - filePath: path.join(NGX_META_DIR, 'out', entrypoint, 'index.d.ts'), - outFile: path.join(NGX_META_DIR, 'dist', entrypoint, 'bundled.d.ts'), + filePath: path.join(NGX_META_DIST_DIR, entrypoint, 'index.d.ts'), + outFile: path.join(NGX_META_DIST_DIR, entrypoint, 'bundled.d.ts'), output: { exportReferencedTypes: false, },