refactor: remove next-transpile-modules and update related configurations
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
import withBundleAnalyzer from '@next/bundle-analyzer';
|
import withBundleAnalyzer from '@next/bundle-analyzer';
|
||||||
import transpileModules from 'next-transpile-modules';
|
|
||||||
|
|
||||||
const withTM = transpileModules(['lucide-react']);
|
|
||||||
|
|
||||||
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
|
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
|
||||||
const SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
const SUPABASE_URL = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
||||||
@@ -28,7 +25,7 @@ const INTERNAL_PACKAGES = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const config = withTM({
|
const config = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
/** Enables hot reloading for local packages without a build step */
|
/** Enables hot reloading for local packages without a build step */
|
||||||
transpilePackages: INTERNAL_PACKAGES,
|
transpilePackages: INTERNAL_PACKAGES,
|
||||||
@@ -71,7 +68,7 @@ const config = withTM({
|
|||||||
/** We already do linting and typechecking as separate tasks in CI */
|
/** We already do linting and typechecking as separate tasks in CI */
|
||||||
eslint: { ignoreDuringBuilds: true },
|
eslint: { ignoreDuringBuilds: true },
|
||||||
typescript: { ignoreBuildErrors: true },
|
typescript: { ignoreBuildErrors: true },
|
||||||
});
|
};
|
||||||
|
|
||||||
export default withBundleAnalyzer({
|
export default withBundleAnalyzer({
|
||||||
enabled: process.env.ANALYZE === 'true',
|
enabled: process.env.ANALYZE === 'true',
|
||||||
|
|||||||
@@ -100,7 +100,6 @@
|
|||||||
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
||||||
"cssnano": "^7.0.7",
|
"cssnano": "^7.0.7",
|
||||||
"dotenv": "^16.5.0",
|
"dotenv": "^16.5.0",
|
||||||
"next-transpile-modules": "^10.0.1",
|
|
||||||
"pino-pretty": "^13.0.0",
|
"pino-pretty": "^13.0.0",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"supabase": "^2.30.4",
|
"supabase": "^2.30.4",
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export type Database = {
|
|||||||
}
|
}
|
||||||
Update: {
|
Update: {
|
||||||
account_id?: string
|
account_id?: string
|
||||||
action: string
|
action?: string
|
||||||
changed_by?: string
|
changed_by?: string
|
||||||
created_at?: string
|
created_at?: string
|
||||||
id?: number
|
id?: number
|
||||||
@@ -268,6 +268,7 @@ export type Database = {
|
|||||||
created_at: string | null
|
created_at: string | null
|
||||||
created_by: string | null
|
created_by: string | null
|
||||||
email: string | null
|
email: string | null
|
||||||
|
has_consent_anonymized_company_statistics: boolean | null
|
||||||
has_consent_personal_data: boolean | null
|
has_consent_personal_data: boolean | null
|
||||||
id: string
|
id: string
|
||||||
is_personal_account: boolean
|
is_personal_account: boolean
|
||||||
@@ -287,6 +288,7 @@ export type Database = {
|
|||||||
created_at?: string | null
|
created_at?: string | null
|
||||||
created_by?: string | null
|
created_by?: string | null
|
||||||
email?: string | null
|
email?: string | null
|
||||||
|
has_consent_anonymized_company_statistics?: boolean | null
|
||||||
has_consent_personal_data?: boolean | null
|
has_consent_personal_data?: boolean | null
|
||||||
id?: string
|
id?: string
|
||||||
is_personal_account?: boolean
|
is_personal_account?: boolean
|
||||||
@@ -306,6 +308,7 @@ export type Database = {
|
|||||||
created_at?: string | null
|
created_at?: string | null
|
||||||
created_by?: string | null
|
created_by?: string | null
|
||||||
email?: string | null
|
email?: string | null
|
||||||
|
has_consent_anonymized_company_statistics?: boolean | null
|
||||||
has_consent_personal_data?: boolean | null
|
has_consent_personal_data?: boolean | null
|
||||||
id?: string
|
id?: string
|
||||||
is_personal_account?: boolean
|
is_personal_account?: boolean
|
||||||
@@ -1628,14 +1631,13 @@ export type Database = {
|
|||||||
Returns: Json
|
Returns: Json
|
||||||
}
|
}
|
||||||
create_team_account: {
|
create_team_account: {
|
||||||
Args:
|
Args: { account_name: string; new_personal_code: string }
|
||||||
| { account_name: string }
|
|
||||||
| { account_name: string; new_personal_code: string }
|
|
||||||
Returns: {
|
Returns: {
|
||||||
city: string | null
|
city: string | null
|
||||||
created_at: string | null
|
created_at: string | null
|
||||||
created_by: string | null
|
created_by: string | null
|
||||||
email: string | null
|
email: string | null
|
||||||
|
has_consent_anonymized_company_statistics: boolean | null
|
||||||
has_consent_personal_data: boolean | null
|
has_consent_personal_data: boolean | null
|
||||||
id: string
|
id: string
|
||||||
is_personal_account: boolean
|
is_personal_account: boolean
|
||||||
@@ -1883,12 +1885,12 @@ export type Database = {
|
|||||||
| "QUEUED"
|
| "QUEUED"
|
||||||
| "ON_HOLD"
|
| "ON_HOLD"
|
||||||
| "PROCESSING"
|
| "PROCESSING"
|
||||||
| "PARTIAL_ANALYSIS_RESPONSE"
|
|
||||||
| "FULL_ANALYSIS_RESPONSE"
|
|
||||||
| "WAITING_FOR_DOCTOR_RESPONSE"
|
|
||||||
| "COMPLETED"
|
| "COMPLETED"
|
||||||
| "REJECTED"
|
| "REJECTED"
|
||||||
| "CANCELLED"
|
| "CANCELLED"
|
||||||
|
| "PARTIAL_ANALYSIS_RESPONSE"
|
||||||
|
| "FULL_ANALYSIS_RESPONSE"
|
||||||
|
| "WAITING_FOR_DOCTOR_RESPONSE"
|
||||||
app_permissions:
|
app_permissions:
|
||||||
| "roles.manage"
|
| "roles.manage"
|
||||||
| "billing.manage"
|
| "billing.manage"
|
||||||
@@ -7772,15 +7774,15 @@ export const Constants = {
|
|||||||
medreport: {
|
medreport: {
|
||||||
Enums: {
|
Enums: {
|
||||||
analysis_order_status: [
|
analysis_order_status: [
|
||||||
"QUEUED", // makstud, ootab Synlabi saatmist
|
"QUEUED",
|
||||||
"ON_HOLD", //
|
"ON_HOLD",
|
||||||
"PROCESSING", // ootab proovide tulemusi
|
"PROCESSING",
|
||||||
"PARTIAL_ANALYSIS_RESPONSE", // osalised tulemused
|
"COMPLETED",
|
||||||
"FULL_ANALYSIS_RESPONSE", // kõik tulemused käes
|
"REJECTED",
|
||||||
"WAITING_FOR_DOCTOR_RESPONSE", // ootab arsti kokkuvõtet
|
"CANCELLED",
|
||||||
"COMPLETED", // kinnitatud, lõplik
|
"PARTIAL_ANALYSIS_RESPONSE",
|
||||||
"REJECTED", // tagastatud
|
"FULL_ANALYSIS_RESPONSE",
|
||||||
"CANCELLED", // tühistatud
|
"WAITING_FOR_DOCTOR_RESPONSE",
|
||||||
],
|
],
|
||||||
app_permissions: [
|
app_permissions: [
|
||||||
"roles.manage",
|
"roles.manage",
|
||||||
|
|||||||
33
pnpm-lock.yaml
generated
33
pnpm-lock.yaml
generated
@@ -213,9 +213,6 @@ importers:
|
|||||||
dotenv:
|
dotenv:
|
||||||
specifier: ^16.5.0
|
specifier: ^16.5.0
|
||||||
version: 16.5.0
|
version: 16.5.0
|
||||||
next-transpile-modules:
|
|
||||||
specifier: ^10.0.1
|
|
||||||
version: 10.0.1
|
|
||||||
pino-pretty:
|
pino-pretty:
|
||||||
specifier: ^13.0.0
|
specifier: ^13.0.0
|
||||||
version: 13.0.0
|
version: 13.0.0
|
||||||
@@ -8311,9 +8308,6 @@ packages:
|
|||||||
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
react: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||||
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
react-dom: ^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc
|
||||||
|
|
||||||
next-transpile-modules@10.0.1:
|
|
||||||
resolution: {integrity: sha512-4VX/LCMofxIYAVV58UmD+kr8jQflpLWvas/BQ4Co0qWLWzVh06FoZkECkrX5eEZT6oJFqie6+kfbTA3EZCVtdQ==}
|
|
||||||
|
|
||||||
next@15.3.2:
|
next@15.3.2:
|
||||||
resolution: {integrity: sha512-CA3BatMyHkxZ48sgOCLdVHjFU36N7TF1HhqAHLFOkV6buwZnvMI84Cug8xD56B9mCuKrqXnLn94417GrZ/jjCQ==}
|
resolution: {integrity: sha512-CA3BatMyHkxZ48sgOCLdVHjFU36N7TF1HhqAHLFOkV6buwZnvMI84Cug8xD56B9mCuKrqXnLn94417GrZ/jjCQ==}
|
||||||
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
|
engines: {node: ^18.18.0 || ^19.8.0 || >= 20.0.0}
|
||||||
@@ -18745,6 +18739,16 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
|
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.28.0(jiti@2.4.2)):
|
||||||
|
dependencies:
|
||||||
|
debug: 3.2.7
|
||||||
|
optionalDependencies:
|
||||||
|
'@typescript-eslint/parser': 8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3)
|
||||||
|
eslint: 9.28.0(jiti@2.4.2)
|
||||||
|
eslint-import-resolver-node: 0.3.9
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- supports-color
|
||||||
|
|
||||||
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.33.1(eslint@8.10.0)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@8.10.0):
|
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.33.1(eslint@8.10.0)(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@8.10.0):
|
||||||
dependencies:
|
dependencies:
|
||||||
debug: 3.2.7
|
debug: 3.2.7
|
||||||
@@ -18756,17 +18760,6 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
eslint-module-utils@2.12.0(@typescript-eslint/parser@8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.28.0(jiti@2.4.2)):
|
|
||||||
dependencies:
|
|
||||||
debug: 3.2.7
|
|
||||||
optionalDependencies:
|
|
||||||
'@typescript-eslint/parser': 8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3)
|
|
||||||
eslint: 9.28.0(jiti@2.4.2)
|
|
||||||
eslint-import-resolver-node: 0.3.9
|
|
||||||
eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.31.0)(eslint@9.28.0(jiti@2.4.2))
|
|
||||||
transitivePeerDependencies:
|
|
||||||
- supports-color
|
|
||||||
|
|
||||||
eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.28.0(jiti@2.4.2)):
|
eslint-plugin-import@2.31.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.28.0(jiti@2.4.2)):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rtsao/scc': 1.1.0
|
'@rtsao/scc': 1.1.0
|
||||||
@@ -18778,7 +18771,7 @@ snapshots:
|
|||||||
doctrine: 2.1.0
|
doctrine: 2.1.0
|
||||||
eslint: 9.28.0(jiti@2.4.2)
|
eslint: 9.28.0(jiti@2.4.2)
|
||||||
eslint-import-resolver-node: 0.3.9
|
eslint-import-resolver-node: 0.3.9
|
||||||
eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.33.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.28.0(jiti@2.4.2))
|
eslint-module-utils: 2.12.0(@typescript-eslint/parser@8.32.1(eslint@9.28.0(jiti@2.4.2))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint@9.28.0(jiti@2.4.2))
|
||||||
hasown: 2.0.2
|
hasown: 2.0.2
|
||||||
is-core-module: 2.16.1
|
is-core-module: 2.16.1
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
@@ -20704,10 +20697,6 @@ snapshots:
|
|||||||
react: 19.1.0
|
react: 19.1.0
|
||||||
react-dom: 19.1.0(react@19.1.0)
|
react-dom: 19.1.0(react@19.1.0)
|
||||||
|
|
||||||
next-transpile-modules@10.0.1:
|
|
||||||
dependencies:
|
|
||||||
enhanced-resolve: 5.18.1
|
|
||||||
|
|
||||||
next@15.3.2(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(babel-plugin-react-compiler@19.1.0-rc.2)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106):
|
next@15.3.2(@babel/core@7.27.4)(@opentelemetry/api@1.9.0)(babel-plugin-macros@3.1.0)(babel-plugin-react-compiler@19.1.0-rc.2)(react-dom@19.0.0-rc-66855b96-20241106(react@19.0.0-rc-66855b96-20241106))(react@19.0.0-rc-66855b96-20241106):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@next/env': 15.3.2
|
'@next/env': 15.3.2
|
||||||
|
|||||||
Reference in New Issue
Block a user