rollback: all in relative path now

This commit is contained in:
2026-07-14 10:55:22 +08:00
parent e6d0ccc243
commit 5244dbfcd8
9 changed files with 6 additions and 15 deletions
+1 -5
View File
@@ -2,9 +2,5 @@
"name": "@genarrative/shared",
"private": true,
"version": "0.1.0",
"type": "module",
"exports": {
".": "./src/index.ts"
},
"types": "./src/index.ts"
"type": "module"
}
@@ -4,7 +4,7 @@ import { act, fireEvent, render, screen, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { expect, test, vi } from 'vitest';
import { formatMudPointCount } from '@genarrative/shared';
import { formatMudPointCount } from '../utils/format';
import { PlatformMudPointWalletEntry } from './PlatformMudPointWalletEntry.tsx';
const breakdown = {
@@ -8,7 +8,7 @@ import {
useState,
} from 'react';
import type { ProfileMudPointBalance } from '../index';
import type { ProfileMudPointBalance } from '../contracts/runtime';
import MUD_POINT_ICON_SRC from '../icons/topbar-wallet.png';
import { formatMudPointCount } from '../utils/format';
@@ -8,7 +8,7 @@ import {
} from 'lucide-react';
import type { ProfileMudPointBalance } from '../../../packages/shared/src/contracts/runtime';
import { PlatformMudPointWalletEntry } from '@genarrative/shared';
import { PlatformMudPointWalletEntry } from '../../../packages/shared/src/components/PlatformMudPointWalletEntry';
import { PlatformStatusMessage } from '../common/PlatformStatusMessage';
import { PlatformTextField } from '../common/PlatformTextField';
import { EditorIconButton } from './ImageCanvasEditorPrimitives';
@@ -15,7 +15,7 @@ import { PlatformSubpanel } from '../common/PlatformSubpanel';
import { formatRechargePrice } from '../rpg-entry/rpgEntryProfileFundsViewModel';
import { PlatformProfileModalShell } from './PlatformProfileModalShell';
import type { NativeWechatPaymentState } from './usePlatformProfileCenterController';
import { formatMudPointCount } from '@genarrative/shared';
import { formatMudPointCount } from '../../../packages/shared/src/utils/format';
const WECHAT_NATIVE_PAY_QR_IMAGE_SIZE = 180;
export type PlatformProfileRechargeModalProps = {
@@ -89,7 +89,7 @@ import { PlatformAsyncStatePanel } from '../common/PlatformAsyncStatePanel';
import { PlatformEmptyState } from '../common/PlatformEmptyState';
import { PlatformFilterToolbar } from '../common/PlatformFilterToolbar';
import { PlatformIconButton } from '../common/PlatformIconButton';
import { PlatformMudPointWalletEntry } from '@genarrative/shared';
import { PlatformMudPointWalletEntry } from '../../../packages/shared/src/components/PlatformMudPointWalletEntry';
import { PlatformNavigableListItem } from '../common/PlatformNavigableListItem';
import { PlatformPillBadge } from '../common/PlatformPillBadge';
import {
-3
View File
@@ -19,9 +19,6 @@
"paths": {
"@/*": [
"./*"
],
"@genarrative/shared": [
"./packages/shared/src/index.ts"
]
},
"allowImportingTsExtensions": true,
-1
View File
@@ -53,7 +53,6 @@ export default defineConfig(({mode}) => {
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
'@genarrative/shared': path.resolve(__dirname, 'packages/shared/src/index.ts'),
},
},
optimizeDeps: {
-1
View File
@@ -7,7 +7,6 @@ export default defineConfig({
alias: {
// Keep shared components' application-root imports resolvable in tests.
'@': path.resolve(__dirname, '.'),
'@genarrative/shared': path.resolve(__dirname, 'packages/shared/src/index.ts'),
},
},
test: {