Skip to content

Commit

Permalink
fix: update files localization for building
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyw4 committed Aug 17, 2020
1 parent 620f4d0 commit bc2f2f6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Color/Color.component.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { ColorFormats } from 'types';
import { ColorFormats } from '../types';
import useColor, { UseColorState } from './useColor';

function Color({
Expand Down
2 changes: 1 addition & 1 deletion src/Color/useColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
reducer,
initialReducerState
} from '../utils';
import { ColorFormats, ReducerState } from 'types';
import { ColorFormats, ReducerState } from '../types';

export type UseColorState = ReducerState<
ReturnType<typeof getPredominantColorFromImgURL>
Expand Down
2 changes: 1 addition & 1 deletion src/Palette/Pallete.component.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { ColorFormats } from 'types';
import { ColorFormats } from '../types';
import usePalette, { UsePaletteState } from './usePalette';

function Palette({
Expand Down
2 changes: 1 addition & 1 deletion src/Palette/usePalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
reducer,
initialReducerState
} from '../utils';
import { ColorFormats, ReducerState } from 'types';
import { ColorFormats, ReducerState } from '../types';

export type UsePaletteState = ReducerState<
ReturnType<typeof getColorsPaletteFromImgUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/initialReducerState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReducerState } from 'types';
import { ReducerState } from '../types';

const initialReducerState: ReducerState<any> = {
loading: true,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/reducer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ReducerState, ReducerAction } from 'types';
import { ReducerState, ReducerAction } from '../types';
import initialReducerState from './initialReducerState';

export default function reducer<State extends ReducerState<any>>(
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./tsconfig.json",
"exclude": [
"**/*.test.ts"
"**/*.test.ts",
"**/*.test.tsx"
],
"compilerOptions": {
"outDir": "./lib"
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"allowJs": false,
"jsx": "react",
"moduleResolution": "node",
"baseUrl": "src",
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"suppressImplicitAnyIndexErrors": true,
Expand All @@ -31,7 +30,7 @@
],
"exclude": [
"node_modules",
"build",
"lib",
"scripts"
]
}

0 comments on commit bc2f2f6

Please sign in to comment.