Skip to content

Commit

Permalink
chore(deps): update dependency prettier to v3.0.3 (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Sep 6, 2023
1 parent ba8db67 commit 093c766
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
16 changes: 9 additions & 7 deletions bin/octokit-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const buildCommonSchemasDefinitionSchema = (): Record<string, JSONSchema7> => {
const definitions: Record<string, JSONSchema7> = {};

commonSchemas.forEach((schema) => {
definitions[
removeExtension(schema, ".schema.json")
] = require(`../${pathToSchemas}/common/${schema}`);
definitions[removeExtension(schema, ".schema.json")] = require(
`../${pathToSchemas}/common/${schema}`,
);
});

return definitions;
Expand Down Expand Up @@ -56,8 +56,9 @@ const combineEventSchemas = () => {

if (schemas.length === 1 && schemas[0] === "event.schema.json") {
// schemas without any actions are just called "event"
const schema =
require(`../${pathToSchemas}/${event}/event.schema.json`) as JSONSchema7;
const schema = require(
`../${pathToSchemas}/${event}/event.schema.json`,
) as JSONSchema7;
const eventName = schema.$id;

assert.ok(eventName, `${event}/event.schema.json does not have an $id`);
Expand All @@ -76,8 +77,9 @@ const combineEventSchemas = () => {
}

const eventActions = schemas.map((schemaName) => {
const schema =
require(`../${pathToSchemas}/${event}/${schemaName}`) as JSONSchema7;
const schema = require(
`../${pathToSchemas}/${event}/${schemaName}`,
) as JSONSchema7;
const actionEventName = schema.$id;

assert.ok(actionEventName, `${event}/${schemaName} does not have an $id`);
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"got": "^11.8.5",
"json-diff": "^1.0.0",
"json-schema-to-typescript": "^13.0.0",
"prettier": "3.0.2",
"prettier": "3.0.3",
"prettier-plugin-packagejson": "^2.2.15",
"semantic-release": "^21.0.0",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
Expand Down

0 comments on commit 093c766

Please sign in to comment.