diff --git a/.husky/commit-msg b/.husky/commit-msg index 0bd658f4..70bd3dd2 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install commitlint --edit "$1" diff --git a/.husky/post-commit b/.husky/post-commit index fd4c0ef6..9177a8f3 100755 --- a/.husky/post-commit +++ b/.husky/post-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - git status diff --git a/.husky/pre-commit b/.husky/pre-commit index 025779ed..c4778ab5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - yarn pre-commit diff --git a/.husky/pre-push b/.husky/pre-push index 92e93b47..a6a0450a 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,5 +1,2 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - yarn lint yarn build diff --git a/src/item/baseItem.ts b/src/item/baseItem.ts index b867ec96..fcd3c291 100644 --- a/src/item/baseItem.ts +++ b/src/item/baseItem.ts @@ -8,7 +8,6 @@ import { Member } from '@/member/member.js'; export type Item = { id: string; name: string; - displayName: string; description: string | null; path: string; settings: S; diff --git a/src/item/factory.test.ts b/src/item/factory.test.ts index b3605d81..455ecbfd 100644 --- a/src/item/factory.test.ts +++ b/src/item/factory.test.ts @@ -54,12 +54,6 @@ describe('Base Item Factory', () => { const item1 = PartialItemFactory({}); expect(item1.settings.hasThumbnail).toBeFalsy(); }); - - it('Returns correct default displayName', () => { - const item = PartialItemFactory({}); - expect(item.displayName).toBeDefined(); - expect(typeof item.displayName).toBe('string'); - }); }); describe('Packed Item Factory', () => { diff --git a/src/item/factory.ts b/src/item/factory.ts index 24b364bb..bf3a04e3 100644 --- a/src/item/factory.ts +++ b/src/item/factory.ts @@ -15,7 +15,6 @@ export type ItemFactoryOutputType = Pick< IT, | 'id' | 'name' - | 'displayName' | 'description' | 'path' | 'settings' @@ -54,7 +53,6 @@ export const PartialItemFactory = ( updatedAt, path, name, - displayName: item.displayName ?? name, description: item.description ?? faker.lorem.text(), settings: item.settings ??