Skip to content

Commit

Permalink
fix: remove dependency on node utils
Browse files Browse the repository at this point in the history
  • Loading branch information
julrich committed Sep 19, 2024
1 parent b6da1fc commit 3adbeb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 10 additions & 0 deletions common/changes/@kickstartds/cambria/main_2024-09-19-13-16.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/cambria",
"comment": "remove dependency to node utils",
"type": "patch"
}
],
"packageName": "@kickstartds/cambria"
}
4 changes: 1 addition & 3 deletions tools/cambria/src/json-schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { inspect } from 'node:util';

import { type JSONSchema, TypeName } from 'json-schema-typed/draft-07';

import { defaultValuesByType } from './defaults.js';
Expand All @@ -20,7 +18,7 @@ export const emptySchema: JSONSchema = {
};

function deepInspect(object: JSONSchema): string {
return inspect(object, false, null, true);
return JSON.stringify(object);
}

// add a property to a schema
Expand Down

0 comments on commit 3adbeb1

Please sign in to comment.