Skip to content

Commit

Permalink
fix: use dist dir instead of out dir
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Mar 10, 2024
1 parent e553ffd commit 41d0166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dts-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand All @@ -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,
},
Expand Down

0 comments on commit 41d0166

Please sign in to comment.