Skip to content

Commit

Permalink
Added exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugos68 committed Sep 23, 2023
1 parent 1c07a32 commit b2392f6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fair-apricots-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'capkit': patch
---

Added export for programmatically initing project
2 changes: 1 addition & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function promptOptions() {
return options;
}

async function initializeProject({
export async function initializeProject({
name: appName,
id: appId,
selectedPlatforms,
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ const program = new Command();
program.version('0.0.1');
program.command('initialize').alias('init').description('initialize capkit').action(init);
program.parse(process.argv);

export { initializeProject } from './commands/init.js';
export { ProjectOptions } from './types/types.js';

0 comments on commit b2392f6

Please sign in to comment.