Skip to content

Commit

Permalink
feat: indicate in metadata that the quickstart option was used in pro…
Browse files Browse the repository at this point in the history
…ject creation
  • Loading branch information
svirs committed Mar 19, 2024
1 parent 7bd281c commit 91ef9ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions packages/@sanity/cli/src/actions/init-project/initProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,7 @@ export default async function initSanity(
}

function selectProjectTemplate() {
// Make sure the --quickstart and --template are not used together
// Force template to clean if --quickstart is used
// --quickstart should override template selection
if (flags.quickstart) {
return 'clean'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const templates: Record<string, ProjectTemplate | undefined> = {
moviedb,
shopify,
'shopify-online-storefront': shopifyOnline,
quickstart: clean, // empty project that dynamically imports its own schema
}

export default templates

0 comments on commit 91ef9ff

Please sign in to comment.