Skip to content

Commit

Permalink
chore(package): bump prettier to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Sep 3, 2023
1 parent 0deabed commit 59d006a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -61,7 +61,7 @@
"husky": "8.0.3",
"jest": "29.6.4",
"lint-staged": "14.0.1",
"prettier": "2.8.8",
"prettier": "3.0.3",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "5.2.2"
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/bin.spec.ts
@@ -1,5 +1,5 @@
import fs from 'fs';
import { jest } from '@jest/globals'
import { jest } from '@jest/globals';
import { exec } from '../bin';

describe('bin', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/bin.ts
Expand Up @@ -7,7 +7,7 @@ import type { Configuration } from './types';
import { scaffold } from './scaffold.js';
import { isAllOK, getMessages } from './results.js';

import { createRequire } from "module";
import { createRequire } from 'module';
const require = createRequire(import.meta.url);

export async function exec(_debug_argv_?) {
Expand Down
6 changes: 3 additions & 3 deletions src/reporter.ts
Expand Up @@ -5,9 +5,9 @@ import type { RawResult, Message } from './types';

export function renderMessages(messages: Message[] = []): string {
const result = messages.map(({ bin, message }) => {
// https://github.com/junegunn/ansi256#reference-chart
const ANSI_ORANGE = 215;
return `${chalk.ansi256(ANSI_ORANGE)(`${bin}`)}:\n${message}\n`;
// https://github.com/junegunn/ansi256#reference-chart
const ANSI_ORANGE = 215;
return `${chalk.ansi256(ANSI_ORANGE)(`${bin}`)}:\n${message}\n`;
});

return result.join('\n');
Expand Down
2 changes: 1 addition & 1 deletion src/results.ts
Expand Up @@ -9,7 +9,7 @@ export function isAllOK(rawResults: RawResult[]) {
export function getMessages(rawResults: RawResult[]): Message[] {
const notInstalledItems = rawResults.filter((item) => !item.installed && item.installMessage);
const unsatisfiedInstalledItems = rawResults.filter(
(item) => !item.satisfies && item.updateMessage
(item) => !item.satisfies && item.updateMessage,
);

const messages = [...notInstalledItems, ...unsatisfiedInstalledItems].map((item) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2230,10 +2230,10 @@ pkg-dir@^4.2.0:
dependencies:
find-up "^4.0.0"

prettier@2.8.8:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
prettier@3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643"
integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==

pretty-format@^29.0.0, pretty-format@^29.6.2:
version "29.6.2"
Expand Down

0 comments on commit 59d006a

Please sign in to comment.