diff --git a/packages/app/jest.config.ts b/packages/app/jest.config.ts index f51d50dc7..83b3add51 100644 --- a/packages/app/jest.config.ts +++ b/packages/app/jest.config.ts @@ -2,7 +2,7 @@ import baseDefaultConfig from '@fuel-ui/test-utils/config'; import type { JestConfigWithTsJest } from 'ts-jest'; import { defaultsESM as tsjPreset } from 'ts-jest/presets'; -import { getPublicEnvs } from './load.envs'; +import { getPublicEnvs } from './load.envs.cjs'; import pkg from './package.json'; const { globals, preset, ...baseConfig } = baseDefaultConfig; diff --git a/packages/app/load.envs.js b/packages/app/load.envs.cjs similarity index 100% rename from packages/app/load.envs.js rename to packages/app/load.envs.cjs diff --git a/packages/app/manifest.config.ts b/packages/app/manifest.config.ts index 7664ddb15..8bb66ee05 100644 --- a/packages/app/manifest.config.ts +++ b/packages/app/manifest.config.ts @@ -1,6 +1,6 @@ import { defineManifest } from '@crxjs/vite-plugin'; -import './load.envs.js'; +import './load.envs.cjs'; // When releasing a stable version we need to inform for the build // to use the white logo instead of the black one diff --git a/packages/app/tsconfig.node.json b/packages/app/tsconfig.node.json index d1c117107..eefcfd229 100644 --- a/packages/app/tsconfig.node.json +++ b/packages/app/tsconfig.node.json @@ -5,10 +5,11 @@ "module": "ESNext", "moduleResolution": "Node", "allowSyntheticDefaultImports": true, - "resolveJsonModule": true + "resolveJsonModule": true, + "outDir": "dist-crx" }, "include": [ - "load.envs.js", + "load.envs.cjs", "./src/exports.ts", "env.d.ts", "playwright/**/*.ts", diff --git a/packages/app/vite-utils/vite.base.config.ts b/packages/app/vite-utils/vite.base.config.ts index e7c3bb5cf..a9dc0f100 100644 --- a/packages/app/vite-utils/vite.base.config.ts +++ b/packages/app/vite-utils/vite.base.config.ts @@ -5,7 +5,7 @@ import cleanPlugin from 'vite-plugin-clean'; import { Mode, plugin as viteMdPlugin } from 'vite-plugin-markdown'; import tsconfigPaths from 'vite-tsconfig-paths'; -import '../load.envs.js'; +import '../load.envs.cjs'; const linkDeps = process.env.LINK_DEPS?.trim().split(' ').filter(Boolean) || [];