Skip to content

Commit

Permalink
Allow entry points to be provided in commandline
Browse files Browse the repository at this point in the history
  • Loading branch information
jason0x43 committed Jul 12, 2021
1 parent e5dadd5 commit 6579cce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/intern-dev-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ import { log } from './common';
// Use TypeDoc to generate an API description
log('Generating API data');

const entryPoints = process.argv.slice(2);

const app = new Application();
app.options.addReader(new TSConfigReader());
app.bootstrap({
entryPoints: ['./src/index.ts'],
entryPoints: entryPoints.length > 0 ? entryPoints : ['./src/index.ts'],
logger: 'none',
excludePrivate: true,
});
Expand Down

0 comments on commit 6579cce

Please sign in to comment.