Skip to content

Commit

Permalink
chore(deps): npm up (#958)
Browse files Browse the repository at this point in the history
* chore(deps): npm up

* chore(schemas): update

* fix: run prettier against schemas properly

* chore(deps): bump `open` to latest
  • Loading branch information
kanadgupta authored Jan 2, 2024
1 parent e0a84c0 commit 6cde99e
Show file tree
Hide file tree
Showing 3 changed files with 1,263 additions and 848 deletions.
4 changes: 3 additions & 1 deletion bin/json-schema-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// @ts-check
/* eslint-disable import/no-extraneous-dependencies */
import fs from 'node:fs/promises';
import path from 'node:path';

// eslint-disable-next-line no-restricted-imports
import fetch from 'node-fetch';
Expand All @@ -23,7 +24,8 @@ const files = [
*/
async function refreshSchemas() {
const isUpdate = process.argv.includes('--update');
const prettierConfig = await prettier.resolveConfig(process.cwd());
// grab prettier config from repo root
const prettierConfig = await prettier.resolveConfig(path.join(new URL('.', import.meta.url).pathname, '.'));
try {
await Promise.all(
files.map(async file => {
Expand Down
Loading

0 comments on commit 6cde99e

Please sign in to comment.