Skip to content

Commit

Permalink
fix: Remove picocolor usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Sep 5, 2023
1 parent c52ef93 commit a7bd6fe
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 175 deletions.
2 changes: 1 addition & 1 deletion lib/Steps/ChooseIntegration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Answers } from 'inquirer';
import { prompt } from 'inquirer';
import { dim } from 'picocolors';

import {
Args,
Expand All @@ -19,6 +18,7 @@ import { SvelteKitShim } from './Integrations/SvelteKitShim';
import { hasPackageInstalled } from '../../src/utils/package-json';
import { Remix } from './Integrations/Remix';
import { Android } from './Integrations/Android';
import { dim } from '../Helper/Logging';

let projectPackage: any = {};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"definition": "dist/index.d.ts"
},
"dependencies": {
"@clack/core": "0.3.2",
"@clack/prompts": "0.6.3",
"@clack/core": "0.3.3",
"@clack/prompts": "0.7.0",
"@sentry/cli": "^1.72.0",
"@sentry/node": "^7.57.0",
"axios": "1.3.5",
Expand Down
5 changes: 2 additions & 3 deletions src/utils/clack-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import * as path from 'path';
import { setInterval } from 'timers';
import { URL } from 'url';
import * as Sentry from '@sentry/node';
import { windowedSelect } from './vendor/clack-custom-select';
import { hasPackageInstalled, PackageDotJson } from './package-json';
import { SentryProjectData, WizardOptions } from './types';
import { traceStep } from '../telemetry';
Expand Down Expand Up @@ -145,7 +144,7 @@ export async function askForItemSelection(
): Promise<{ value: string; index: number }> {
const selection: { value: string; index: number } | symbol =
await abortIfCancelled(
windowedSelect({
clack.select({
maxItems: 12,
message: message,
options: items.map((item, index) => {
Expand Down Expand Up @@ -743,7 +742,7 @@ async function askForProjectSelection(
projects: SentryProjectData[],
): Promise<SentryProjectData> {
const selection: SentryProjectData | symbol = await abortIfCancelled(
windowedSelect({
clack.select({
maxItems: 12,
message: 'Select your Sentry project.',
options: projects.map((project) => {
Expand Down
160 changes: 0 additions & 160 deletions src/utils/vendor/clack-custom-select.ts

This file was deleted.

23 changes: 14 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -371,20 +371,20 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@clack/[email protected].2", "@clack/core@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@clack/core/-/core-0.3.2.tgz#23c6e440ed263c2f012b1cc0806386481e78420b"
integrity sha512-FZnsNynwGDIDktx6PEZK1EuCkFpY4ldEX6VYvfl0dqeoLPb9Jpw1xoUXaVcGR8ExmYNm1w2vdGdJkEUYD/2pqg==
"@clack/[email protected].3", "@clack/core@^0.3.3":
version "0.3.3"
resolved "https://registry.yarnpkg.com/@clack/core/-/core-0.3.3.tgz#233ccebf779aa5a66fc68ee48df5e58cd226fd94"
integrity sha512-5ZGyb75BUBjlll6eOa1m/IZBxwk91dooBWhPSL67sWcLS0zt9SnswRL0l26TVdBhb0wnWORRxUn//uH6n4z7+A==
dependencies:
picocolors "^1.0.0"
sisteransi "^1.0.5"

"@clack/prompts@0.6.3":
version "0.6.3"
resolved "https://registry.yarnpkg.com/@clack/prompts/-/prompts-0.6.3.tgz#c6184bb3f8685dfc72207d2ff051f7a6a733fcb3"
integrity sha512-AM+kFmAHawpUQv2q9+mcB6jLKxXGjgu/r2EQjEwujgpCdzrST6BJqYw00GRn56/L/Izw5U7ImoLmy00X/r80Pw==
"@clack/prompts@0.7.0":
version "0.7.0"
resolved "https://registry.yarnpkg.com/@clack/prompts/-/prompts-0.7.0.tgz#6aaef48ea803d91cce12bc80811cfcb8de2e75ea"
integrity sha512-0MhX9/B4iL6Re04jPrttDm+BsP8y6mS7byuv0BvXgdXhbV5PdlsHt55dvNsuBCPZ7xq1oTAOOuotR9NFbQyMSA==
dependencies:
"@clack/core" "^0.3.2"
"@clack/core" "^0.3.3"
picocolors "^1.0.0"
sisteransi "^1.0.5"

Expand Down Expand Up @@ -2746,6 +2746,11 @@ is-typedarray@^1.0.0:
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=

is-unicode-supported@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz#d824984b616c292a2e198207d4a609983842f714"
integrity sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==

is-wsl@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
Expand Down

0 comments on commit a7bd6fe

Please sign in to comment.