chore: 删除 @dp alias

This commit is contained in:
unanmed 2026-10-27 21:09:06 +08:00
parent e2415a7a48
commit f3145d7a7f
2 changed files with 2 additions and 11 deletions

View File

@ -5,8 +5,8 @@ import { Scroll, TextContent } from '@user/client-base';
import { IHeroState } from '@user/data-base';
import { IHeroAttr } from '@user/data-common';
import { IUIPropsBase } from '@user/client-modules';
import { IShopState, IShopSystem } from '@dp/shop';
import { FULL_LOC, MAIN_WIDTH, RENDER_WIDTH } from '@/client';
import { IShopState, IShopSystem } from '@/data/plugin/shop';
import { FULL_LOC, MAIN_HEIGHT, MAIN_WIDTH, RENDER_WIDTH } from '@/client';
export interface IShopProps extends IUIPropsBase {
/** 商店状态对象 */

View File

@ -26,14 +26,6 @@ const aliasesUser = glob.sync('packages-user/*/src').map((srcPath) => {
};
});
const aliasesDP = glob.sync('src/data/plugin/*').map((srcPath) => {
const packageName = path.basename(path.dirname(srcPath));
return {
find: `@dp/${packageName}`,
replacement: path.resolve(__dirname, srcPath),
};
});
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
@ -49,7 +41,6 @@ export default defineConfig({
alias: [
...aliases,
...aliasesUser,
...aliasesDP,
{
find: '@/',
replacement: path.resolve(__dirname, 'src/')