Skip to content

Commit 6579cce

Browse files
committed
Allow entry points to be provided in commandline
1 parent e5dadd5 commit 6579cce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/intern-dev-api.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ import { log } from './common';
1515
// Use TypeDoc to generate an API description
1616
log('Generating API data');
1717

18+
const entryPoints = process.argv.slice(2);
19+
1820
const app = new Application();
1921
app.options.addReader(new TSConfigReader());
2022
app.bootstrap({
21-
entryPoints: ['./src/index.ts'],
23+
entryPoints: entryPoints.length > 0 ? entryPoints : ['./src/index.ts'],
2224
logger: 'none',
2325
excludePrivate: true,
2426
});

0 commit comments

Comments
 (0)