Skip to content

Commit

Permalink
Merge pull request #189 from clemenscodes/develop
Browse files Browse the repository at this point in the history
chore(create-nx-cmake): default to main
  • Loading branch information
clemenscodes authored Mar 19, 2024
2 parents 6255c01 + d7e84de commit e51e777
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/create-nx-cmake/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
import { createWorkspace } from 'create-nx-workspace';

async function main() {
const name = process.argv[2]; // TODO: use libraries like yargs or enquirer to set your workspace name
const name = process.argv[2];

if (!name) {
throw new Error('Please provide a name for the workspace');
}

console.log(`Creating the workspace: ${name}`);

// TODO: update below to customize the workspace
const { directory } = await createWorkspace(`nx-cmake`, {
name,
nxCloud: 'skip',
defaultBase: 'main',
interactive: false,
packageManager: 'npm',
});
Expand Down

0 comments on commit e51e777

Please sign in to comment.