Skip to content

Commit

Permalink
chore: do not use path aliases in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrsoares committed Sep 22, 2023
1 parent f22f42e commit 1fadaae
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 44 deletions.
4 changes: 0 additions & 4 deletions packages/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"include": ["src"],
"compilerOptions": {
"declaration": true,
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"types": ["vitest/globals"],
"target": "es2020"
}
Expand Down
6 changes: 1 addition & 5 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"extends": "@axelarjs/config/tsconfig.strictest",
"include": ["src"],
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"paths": {
"~/*": ["./src/*"]
}
"declaration": true
}
}
2 changes: 1 addition & 1 deletion packages/cosmos/src/rpc/rpcImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { Rpc } from "cosmjs-types/helpers";
import Long from "long";

import { STANDARD_FEE } from "~/constants";
import { STANDARD_FEE } from "../constants";
import { BroadcastTxOptions } from "../types";

export class RpcImpl implements Rpc {
Expand Down
4 changes: 0 additions & 4 deletions packages/cosmos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
"include": ["src", "scripts"],
"compilerOptions": {
"module": "ESNext",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"types": ["vitest/globals"]
}
}
4 changes: 0 additions & 4 deletions packages/deposit-address/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"extends": "@axelarjs/config/tsconfig.strictest",
"include": ["src", "scripts"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"types": ["vitest/globals"]
}
}
6 changes: 1 addition & 5 deletions packages/evm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"extends": "@axelarjs/config/tsconfig.strictest",
"include": ["src", "scripts"],
"compilerOptions": {
"module": "ESNext",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
}
"module": "ESNext"
}
}
3 changes: 0 additions & 3 deletions packages/transaction-recovery/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"include": ["src", "scripts"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
},
"types": ["vitest/globals"],
"module": "esnext"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Badge/Badge.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { Badge } from "./Badge";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { AxelarBlueIcon, AxelarIcon } from "../icons";
import { configurePlayground } from "../StoryPlayground";
import { Button } from "./Button";
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Checkbox/Checkbox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import type { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { Checkbox } from "./Checkbox";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import type { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { CopyToClipboardButton } from "./CopyToClipboardButton";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Kbd/Kbd.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import type { Meta, StoryFn } from "@storybook/react";

import { SIZE_VARIANTS } from "~/theme";
import { SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { Kbd } from "./Kbd";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Loading/Loading.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import type { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { Loading } from "./Loading";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/TextInput/TextInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import type { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { TextInput } from "./TextInput";

Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Toggle/Toggle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { pluralizeKeys } from "@axelarjs/utils";

import { Meta, StoryFn } from "@storybook/react";

import { COLOR_VARIANTS, SIZE_VARIANTS } from "~/theme";
import { COLOR_VARIANTS, SIZE_VARIANTS } from "../../theme";
import { configurePlayground } from "../StoryPlayground";
import { Toggle } from "./Toggle";

Expand Down
6 changes: 1 addition & 5 deletions packages/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
}
"jsx": "react-jsx"
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
Expand Down
6 changes: 1 addition & 5 deletions packages/ui/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true,
"ignoreDeprecations": "5.0",
"baseUrl": ".",
"paths": {
"~/*": ["./src/*"]
}
"ignoreDeprecations": "5.0"
},
"include": ["vite.config.ts"]
}

0 comments on commit 1fadaae

Please sign in to comment.