mirror of
https://github.com/motajs/template.git
synced 2026-10-18 12:40:18 +08:00
refactor(anon-tokyo): import embedded workspace package everywhere
- rename all anon-tokyo imports to @motajs/anon-tokyo in data-common, data-system and data-state - declare @motajs/anon-tokyo workspace dependency in data-common and data-system; refresh pnpm-lock.yaml
This commit is contained in:
parent
5a05eecad1
commit
a701aa6da9
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@user/data-common",
|
"name": "@user/data-common",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@motajs/anon-tokyo": "workspace:*",
|
||||||
"@motajs/common": "workspace:*"
|
"@motajs/common": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import {
|
|||||||
AnonTokyoInterpreter,
|
AnonTokyoInterpreter,
|
||||||
AnonTokyoExecutable,
|
AnonTokyoExecutable,
|
||||||
Statement
|
Statement
|
||||||
} from 'anon-tokyo';
|
} from '@motajs/anon-tokyo';
|
||||||
import { EventTrigger, IGameEvent } from './types';
|
import { EventTrigger, IGameEvent } from './types';
|
||||||
|
|
||||||
export class GameEvent<
|
export class GameEvent<
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import {
|
|||||||
AnonTokyoExecutable,
|
AnonTokyoExecutable,
|
||||||
AnonTokyoInterpreter,
|
AnonTokyoInterpreter,
|
||||||
Statement
|
Statement
|
||||||
} from 'anon-tokyo';
|
} from '@motajs/anon-tokyo';
|
||||||
|
|
||||||
export const enum EventTrigger {
|
export const enum EventTrigger {
|
||||||
/** 无触发器,事件需要手动执行 */
|
/** 无触发器,事件需要手动执行 */
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
// 测试 GameEventStore 的 add/get、未知 ID 和重复 ID 告警覆盖
|
// 测试 GameEventStore 的 add/get、未知 ID 和重复 ID 告警覆盖
|
||||||
import { AnonTokyoInterpreter } from 'anon-tokyo';
|
import { AnonTokyoInterpreter } from '@motajs/anon-tokyo';
|
||||||
import {
|
import {
|
||||||
afterAll,
|
afterAll,
|
||||||
afterEach,
|
afterEach,
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@user/data-system",
|
"name": "@user/data-system",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@motajs/anon-tokyo": "workspace:*",
|
||||||
"@motajs/common": "workspace:*",
|
"@motajs/common": "workspace:*",
|
||||||
"@user/data-base": "workspace:*"
|
"@user/data-base": "workspace:*"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ import {
|
|||||||
type IBlockEventEnv,
|
type IBlockEventEnv,
|
||||||
type IGameEventInvocation
|
type IGameEventInvocation
|
||||||
} from './types';
|
} from './types';
|
||||||
import { AnonTokyoInterpreter } from 'anon-tokyo';
|
import { AnonTokyoInterpreter } from '@motajs/anon-tokyo';
|
||||||
import { IStateBase } from '@user/data-base';
|
import { IStateBase } from '@user/data-base';
|
||||||
|
|
||||||
vi.hoisted(() => {
|
vi.hoisted(() => {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { logger } from '@motajs/common';
|
import { logger } from '@motajs/common';
|
||||||
import { IGameEventStore } from '@user/data-common';
|
import { IGameEventStore } from '@user/data-common';
|
||||||
import { AnonTokyoInterpreter } from 'anon-tokyo';
|
import { AnonTokyoInterpreter } from '@motajs/anon-tokyo';
|
||||||
import {
|
import {
|
||||||
EventExecuteMode,
|
EventExecuteMode,
|
||||||
EventReduceMode,
|
EventReduceMode,
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { IStateBase } from '@user/data-base';
|
import { IStateBase } from '@user/data-base';
|
||||||
import { IGameEventStore } from '@user/data-common';
|
import { IGameEventStore } from '@user/data-common';
|
||||||
import { AnonTokyoInterpreter, BuiltInFunction } from 'anon-tokyo';
|
import { AnonTokyoInterpreter, BuiltInFunction } from '@motajs/anon-tokyo';
|
||||||
import { EventExecutor } from './executor';
|
import { EventExecutor } from './executor';
|
||||||
import { IGameEventExecutor, IGameEventSystem } from './types';
|
import { IGameEventExecutor, IGameEventSystem } from './types';
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ import {
|
|||||||
IGameEventStore,
|
IGameEventStore,
|
||||||
IReadonlyGameEvent
|
IReadonlyGameEvent
|
||||||
} from '@user/data-common';
|
} from '@user/data-common';
|
||||||
import { AnonTokyoInterpreter } from 'anon-tokyo';
|
import { AnonTokyoInterpreter } from '@motajs/anon-tokyo';
|
||||||
|
|
||||||
export const enum BlockEventType {
|
export const enum BlockEventType {
|
||||||
/** 普通事件类型,一般是手动触发的 */
|
/** 普通事件类型,一般是手动触发的 */
|
||||||
|
|||||||
@ -294,6 +294,9 @@ importers:
|
|||||||
|
|
||||||
packages-user/data-common:
|
packages-user/data-common:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@motajs/anon-tokyo':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../packages/anon-tokyo
|
||||||
'@motajs/common':
|
'@motajs/common':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/common
|
version: link:../../packages/common
|
||||||
@ -333,6 +336,9 @@ importers:
|
|||||||
|
|
||||||
packages-user/data-system:
|
packages-user/data-system:
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@motajs/anon-tokyo':
|
||||||
|
specifier: workspace:*
|
||||||
|
version: link:../../packages/anon-tokyo
|
||||||
'@motajs/common':
|
'@motajs/common':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/common
|
version: link:../../packages/common
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user