Skip to content

Commit 2d1f642

Browse files
authored
Add site scope suggestions in gitbook new command of CLI (#805)
* bun lock * add more scopes to gitbook new * changeset
1 parent 53c207d commit 2d1f642

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.changeset/tricky-memes-travel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/cli': minor
3+
---
4+
5+
Add site scope suggestions to gitbook new command

bun.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
},
8989
"integrations/formspree": {
9090
"name": "@gitbook/integration-formspree",
91-
"version": "0.2.8",
91+
"version": "0.2.9",
9292
"dependencies": {
9393
"@gitbook/runtime": "workspace:*",
9494
},
@@ -451,7 +451,7 @@
451451
},
452452
"integrations/slack": {
453453
"name": "@gitbook/integration-slack",
454-
"version": "2.0.1",
454+
"version": "2.0.2",
455455
"dependencies": {
456456
"@gitbook/api": "*",
457457
"@gitbook/runtime": "*",
@@ -532,7 +532,7 @@
532532
},
533533
"packages/api": {
534534
"name": "@gitbook/api",
535-
"version": "0.106.0",
535+
"version": "0.114.0",
536536
"dependencies": {
537537
"event-iterator": "^2.0.0",
538538
"eventsource-parser": "^3.0.0",
@@ -547,9 +547,9 @@
547547
},
548548
"packages/cli": {
549549
"name": "@gitbook/cli",
550-
"version": "0.21.1",
550+
"version": "0.22.0",
551551
"bin": {
552-
"gitbook": "./cli.js"
552+
"gitbook": "./cli.js",
553553
},
554554
"dependencies": {
555555
"@gitbook/api": "*",
@@ -586,7 +586,7 @@
586586
},
587587
"packages/runtime": {
588588
"name": "@gitbook/runtime",
589-
"version": "0.19.2",
589+
"version": "0.20.0",
590590
"dependencies": {
591591
"@gitbook/api": "*",
592592
},

packages/cli/src/init.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSONSchemaForNPMPackageJsonFiles2 as PackageJSON } from '@schemastore/package';
1+
import type { JSONSchemaForNPMPackageJsonFiles2 as PackageJSON } from '@schemastore/package';
22
import { spawn } from 'child_process';
33
import detent from 'dedent-js';
44
import * as fs from 'fs';
@@ -72,6 +72,18 @@ export async function promptNewIntegration(dir?: string): Promise<void> {
7272
title: IntegrationScope.SpaceGitSync,
7373
value: IntegrationScope.SpaceGitSync,
7474
},
75+
{
76+
title: IntegrationScope.SiteMetadataRead,
77+
value: IntegrationScope.SiteMetadataRead,
78+
},
79+
{
80+
title: IntegrationScope.SiteAdaptiveRead,
81+
value: IntegrationScope.SiteAdaptiveRead,
82+
},
83+
{
84+
title: IntegrationScope.SiteAdaptiveWrite,
85+
value: IntegrationScope.SiteAdaptiveWrite,
86+
},
7587
],
7688
},
7789
]);

0 commit comments

Comments
 (0)