Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add package-manager-detector to d.ts
Co-authored-by: CokaKoala <31664583+AdrianGonz97@users.noreply.github.com>
  • Loading branch information
jycouet and AdrianGonz97 authored Sep 19, 2025
commit d888ae430521f9da963d77cb9b9a0599732482b0
8 changes: 7 additions & 1 deletion tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { defineConfig } from 'tsdown';
const pkgJson = fs.readFileSync(path.resolve('packages', 'cli', 'package.json'), 'utf8');
const pkg = JSON.parse(pkgJson);

export default defineConfig({
cwd: 'packages/cli',
entry: ['lib/index.ts', 'lib/testing.ts', 'bin.ts'],
sourcemap: !process.env.CI,
dts: { oxc: true },
dts: {
oxc: true,
// setting `resolve: true` seems to anger Rolldown due to our `postcss` dep
resolve: Object.keys(pkg.devDependencies)
},
plugins: [
{
name: 'evaluate-community-addon-ids',
Expand Down
Loading