From 9ccc01de2b0f3f37ebd5b26e7be9f5ee1b86d1b9 Mon Sep 17 00:00:00 2001 From: Soon Date: Mon, 5 Aug 2024 19:54:16 +0800 Subject: [PATCH] chore(infra/e2e): use package name rather than "../" (#60) --- e2e/cases/dts/bundle/rslib.config.ts | 5 +---- e2e/scripts/shared.ts | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/e2e/cases/dts/bundle/rslib.config.ts b/e2e/cases/dts/bundle/rslib.config.ts index 0b3148148..bed75189e 100644 --- a/e2e/cases/dts/bundle/rslib.config.ts +++ b/e2e/cases/dts/bundle/rslib.config.ts @@ -1,8 +1,5 @@ +import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper'; import { defineConfig } from '@rslib/core'; -import { - generateBundleCjsConfig, - generateBundleEsmConfig, -} from '../../../scripts/shared'; export default defineConfig({ lib: [ diff --git a/e2e/scripts/shared.ts b/e2e/scripts/shared.ts index a67475319..248976be9 100644 --- a/e2e/scripts/shared.ts +++ b/e2e/scripts/shared.ts @@ -4,8 +4,7 @@ import { mergeRsbuildConfig as mergeConfig, } from '@rsbuild/core'; import type { LibConfig, RslibConfig } from '@rslib/core'; -import { build } from '../../packages/core/src/build'; -import { loadConfig } from '../../packages/core/src/config'; +import { build, loadConfig } from '@rslib/core'; import { globContentJSON } from './helper'; export function generateBundleEsmConfig(