blockprotocol
Advanced tools
Comparing version 0.2.1 to 0.2.2-canary-20230306142735
# blockprotocol | ||
## 0.2.2-canary-20230306142735 | ||
### Patch Changes | ||
- [#1091](https://github.com/blockprotocol/blockprotocol/pull/1091) [`d09f5291`](https://github.com/blockprotocol/blockprotocol/commit/d09f5291d6f6f2df3690cc7bd75030516ca30abd) Thanks [@CiaranMn](https://github.com/CiaranMn)! - skip user prompts if running in ci | ||
## 0.2.1 | ||
@@ -4,0 +10,0 @@ |
@@ -5,2 +5,3 @@ import path from "node:path"; | ||
import fs from "fs-extra"; | ||
import isCi from "is-ci"; | ||
import slugify from "slugify"; | ||
@@ -155,3 +156,3 @@ import tar from "tar"; | ||
if (!yes) { | ||
if (!yes || !isCi) { | ||
const shouldProceed = await doesUserAgree("Continue with publishing?"); | ||
@@ -158,0 +159,0 @@ |
@@ -6,2 +6,3 @@ import path from "node:path"; | ||
import fs from "fs-extra"; | ||
import isCi from "is-ci"; | ||
@@ -88,3 +89,3 @@ import { printSpacer } from "../../shared/print-spacer.js"; | ||
const projectRootPath = await findProjectRoot(); | ||
if (projectRootPath) { | ||
if (projectRootPath && !isCi) { | ||
const agreement = await doesUserAgree( | ||
@@ -91,0 +92,0 @@ `Would you like a ${configFileName} created at the project root?`, |
{ | ||
"name": "blockprotocol", | ||
"version": "0.2.1", | ||
"version": "0.2.2-canary-20230306142735", | ||
"description": "Command Line Interface (CLI) for the Block Protocol API", | ||
@@ -37,2 +37,3 @@ "keywords": [ | ||
"globby": "^13.1.2", | ||
"is-ci": "3.0.1", | ||
"node-fetch": "^3.3.0", | ||
@@ -49,2 +50,3 @@ "prompt": "^1.3.0", | ||
"@types/command-line-usage": "^5.0.2", | ||
"@types/is-ci": "3.0.0", | ||
"@types/prompt": "^1.1.4", | ||
@@ -51,0 +53,0 @@ "@types/react": "^18.0.25", |
24832
544
13
9
+ Addedis-ci@3.0.1
+ Addedci-info@3.9.0(transitive)
+ Addedis-ci@3.0.1(transitive)