fix: 恢复 @esengine/ecs-framework 包名
上一个提交错误地将 npm 包名也改了,这里恢复正确的包名。 只更新 GitHub 仓库 URL,不改变 npm 包名。
This commit is contained in:
@@ -39,7 +39,7 @@ import {
|
||||
Database,
|
||||
AlertTriangle
|
||||
} from 'lucide-react';
|
||||
import { Core } from '@esengine/esengine';
|
||||
import { Core } from '@esengine/ecs-framework';
|
||||
import { MessageHub, FileActionRegistry, AssetRegistryService, type FileCreationTemplate } from '@esengine/editor-core';
|
||||
import { TauriAPI, DirectoryEntry } from '../api/tauri';
|
||||
import { SettingsService } from '../services/SettingsService';
|
||||
@@ -351,7 +351,7 @@ export function ContentBrowser({
|
||||
category: 'Script',
|
||||
getContent: (fileName: string) => {
|
||||
const className = fileName.replace(/\.ts$/, '');
|
||||
return `import { Component, ECSComponent, Property, Serialize, Serializable } from '@esengine/esengine';
|
||||
return `import { Component, ECSComponent, Property, Serialize, Serializable } from '@esengine/ecs-framework';
|
||||
|
||||
/**
|
||||
* ${className}
|
||||
@@ -393,7 +393,7 @@ export class ${className} extends Component {
|
||||
category: 'Script',
|
||||
getContent: (fileName: string) => {
|
||||
const className = fileName.replace(/\.ts$/, '');
|
||||
return `import { EntitySystem, Matcher, ECSSystem, type Entity } from '@esengine/esengine';
|
||||
return `import { EntitySystem, Matcher, ECSSystem, type Entity } from '@esengine/ecs-framework';
|
||||
|
||||
/**
|
||||
* ${className}
|
||||
@@ -441,7 +441,7 @@ export function ${name.charAt(0).toLowerCase() + name.slice(1)}(): void {
|
||||
getContent: (fileName: string) => {
|
||||
const className = fileName.replace(/\.ts$/, '');
|
||||
return `import React from 'react';
|
||||
import type { Component } from '@esengine/esengine';
|
||||
import type { Component } from '@esengine/ecs-framework';
|
||||
import type { IComponentInspector, ComponentInspectorContext } from '@esengine/editor-core';
|
||||
|
||||
/**
|
||||
@@ -481,7 +481,7 @@ export class ${className} implements IComponentInspector {
|
||||
category: 'Editor',
|
||||
getContent: (fileName: string) => {
|
||||
const className = fileName.replace(/\.ts$/, '');
|
||||
return `import type { Component, Entity } from '@esengine/esengine';
|
||||
return `import type { Component, Entity } from '@esengine/ecs-framework';
|
||||
import type { IGizmoRenderData } from '@esengine/editor-core';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user