From cd4d87de915d8172799e53f533917b635f2c4734 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Tue, 10 Jan 2023 20:15:42 +0300 Subject: [PATCH] fix build --- apps/web/Components/Calculation/config/elements-props.ts | 2 +- package.json | 2 +- packages/tools/tsconfig.json | 2 +- packages/tsconfig/nextjs.json | 2 +- packages/ui/elements/icons/index.ts | 2 ++ packages/ui/elements/index.ts | 1 + packages/ui/elements/layout/index.ts | 2 ++ packages/ui/tsconfig.json | 5 +++-- turbo.json | 3 ++- 9 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 packages/ui/elements/icons/index.ts create mode 100644 packages/ui/elements/layout/index.ts diff --git a/apps/web/Components/Calculation/config/elements-props.ts b/apps/web/Components/Calculation/config/elements-props.ts index 23d4125..cae54fa 100644 --- a/apps/web/Components/Calculation/config/elements-props.ts +++ b/apps/web/Components/Calculation/config/elements-props.ts @@ -1,7 +1,7 @@ import { MAX_FRANCHISE, MAX_LEASING_PERIOD } from 'constants/values'; import dayjs from 'dayjs'; import { formatter, formatterExtra, parser } from 'tools/number'; -import DownloadOutlined from 'ui/elements/icons/DownloadOutlined'; +import { DownloadOutlined } from 'ui/elements/icons'; import CurrencyAddon from '../addons/currency-addon'; import type { ElementsProps } from './elements-components'; diff --git a/package.json b/package.json index d63159d..2d8bd0e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "packages/*" ], "scripts": { - "build": "turbo run build", + "build": "dotenv -e .env turbo run build", "clean": "turbo run clean", "dev": "dotenv -e .env.local turbo run dev --parallel", "format": "prettier --write \"**/*.{js,jsx,ts,tsx}\"", diff --git a/packages/tools/tsconfig.json b/packages/tools/tsconfig.json index af2ec7d..df23b4c 100644 --- a/packages/tools/tsconfig.json +++ b/packages/tools/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "tsconfig/common.json", - "include": ["./**/*"], + "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], "exclude": ["dist", "build", "node_modules"], "compilerOptions": { "outDir": "./build" } } diff --git a/packages/tsconfig/nextjs.json b/packages/tsconfig/nextjs.json index 3b7dfa9..cc5c442 100644 --- a/packages/tsconfig/nextjs.json +++ b/packages/tsconfig/nextjs.json @@ -3,7 +3,7 @@ "display": "Next.js", "extends": "./base.json", "compilerOptions": { - "target": "es5", + "target": "ES6", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, diff --git a/packages/ui/elements/icons/index.ts b/packages/ui/elements/icons/index.ts new file mode 100644 index 0000000..9eef34f --- /dev/null +++ b/packages/ui/elements/icons/index.ts @@ -0,0 +1,2 @@ +/* eslint-disable import/prefer-default-export */ +export { default as DownloadOutlined } from './DownloadOutlined'; diff --git a/packages/ui/elements/index.ts b/packages/ui/elements/index.ts index 9fb00bb..ae1c1d3 100644 --- a/packages/ui/elements/index.ts +++ b/packages/ui/elements/index.ts @@ -3,6 +3,7 @@ export { default as Checkbox } from './Checkbox'; export { default as AntdConfig } from './Config'; export { default as Input } from './Input'; export { default as InputNumber } from './InputNumber'; +export * from './layout'; export { default as Link } from './Link'; export { default as message } from './message'; export { default as notification } from './notification'; diff --git a/packages/ui/elements/layout/index.ts b/packages/ui/elements/layout/index.ts new file mode 100644 index 0000000..1c74c46 --- /dev/null +++ b/packages/ui/elements/layout/index.ts @@ -0,0 +1,2 @@ +export { default as Divider } from './Divider'; +export { default as Tabs } from './Tabs'; diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index cd6c94d..7d14d75 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -1,5 +1,6 @@ { "extends": "tsconfig/react-library.json", - "include": ["."], - "exclude": ["dist", "build", "node_modules"] + "include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"], + "exclude": ["dist", "build", "node_modules"], + "compilerOptions": { "outDir": "./build" } } diff --git a/turbo.json b/turbo.json index a10bfd1..d111539 100644 --- a/turbo.json +++ b/turbo.json @@ -3,7 +3,8 @@ "pipeline": { "build": { "outputs": ["dist/**", ".next/**", "public/dist/**"], - "dependsOn": ["^build"] + "dependsOn": ["^build"], + "cache": false }, "test": { "cache": false