Skip to content

Commit 7b273b0

Browse files
authored
#268 - export types (#269)
* refactor: refactored types and exported public types * refactor: added consistent type imports * chore(deps): updated dependencies * chore: incremented version * fix: ensure consitent type path * refactor: rename folder symbol * refactor: renamed folder symbols * refactor: removed redundant paths to components in tests
1 parent 533ed51 commit 7b273b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+527
-564
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ module.exports = {
8787
'@typescript-eslint/func-call-spacing': ['error', 'never'],
8888
'@typescript-eslint/comma-spacing': 'warn',
8989
'@typescript-eslint/keyword-spacing': 'warn',
90-
// '@typescript-eslint/consistent-indexed-object-style': ['error', 'record'], // waiting on dependency updates
91-
// '@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
90+
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
91+
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'type-imports' }],
9292
'@typescript-eslint/member-delimiter-style': 'warn',
9393
'@typescript-eslint/type-annotation-spacing': 'warn',
9494
'@typescript-eslint/naming-convention': [

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { pathsToModuleNameMapper } from 'ts-jest/utils';
22
import { compilerOptions } from './tsconfig.json';
3-
import { InitialOptionsTsJest } from 'ts-jest/dist/types';
3+
import type { InitialOptionsTsJest } from 'ts-jest/dist/types';
44

55
export default {
66
clearMocks: true,

package-lock.json

Lines changed: 385 additions & 433 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@karnama/vueish",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"files": [
55
"dist",
66
"types"

src/DemoBoard.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@
6565

6666
<script lang="ts">
6767
import { computed, defineComponent, getCurrentInstance, ref, watch } from 'vue';
68-
import UIToggle from '@components/toggle/UIToggle.vue';
69-
import LocalCache from '@helpers/cache/LocalCache';
70-
import { Router, RouteRecord } from 'vue-router';
71-
import UIButton from '@components/button/UIButton.vue';
68+
import UIToggle from 'components/toggle/UIToggle.vue';
69+
import LocalCache from '@/helpers/cache/LocalCache';
70+
import type { Router, RouteRecord } from 'vue-router';
71+
import UIButton from 'components/button/UIButton.vue';
7272
import { getIcon } from '@/helpers';
7373
import { getVersion } from '@/main';
7474

src/components/avatar/Demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
<script lang="ts">
5858
import { defineComponent } from 'vue';
59-
import type { Avatar } from '@/types';
59+
import type { Avatar } from 'types';
6060
6161
export default defineComponent({
6262
name: 'Avatar',

src/components/avatar/UIAvatar.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { mount } from '@vue/test-utils';
2-
import UIAvatar from '@components/avatar/UIAvatar.vue';
2+
import UIAvatar from './UIAvatar.vue';
33

44
describe('UIAvatar', () => {
55
it('should correctly display', () => {

src/components/avatar/UIAvatarGroup.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mount } from '@vue/test-utils';
2-
import UIAvatarGroup from '@components/avatar/UIAvatarGroup.vue';
3-
import { Avatar } from '@/types';
4-
import UIAvatar from '@components/avatar/UIAvatar.vue';
2+
import UIAvatarGroup from './UIAvatarGroup.vue';
3+
import type { Avatar } from 'types';
4+
import UIAvatar from './UIAvatar.vue';
55

66
const avatars: Avatar[] = [
77
{},

src/components/avatar/UIAvatarGroup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<script lang="ts">
3131
import { computed, defineComponent } from 'vue';
3232
import type { PropType, VNode } from 'vue';
33-
import UIAvatar from '@components/avatar/UIAvatar.vue';
34-
import type { Avatar } from '@/types';
33+
import UIAvatar from 'components/avatar/UIAvatar.vue';
34+
import type { Avatar } from 'types';
3535
import { omit } from 'lodash-es';
3636
3737
export default defineComponent({

src/components/badge/Demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<script lang="ts">
1818
import { defineComponent } from 'vue';
19-
import { horizontal, vertical } from '@/types';
19+
import { horizontal, vertical } from 'types';
2020
2121
export default defineComponent({
2222
name: 'Badge',

0 commit comments

Comments
 (0)