mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Fix file paths
This commit is contained in:
parent
57893b9244
commit
f2d6d76686
2 changed files with 47 additions and 43 deletions
86
package.json
86
package.json
|
@ -1,44 +1,46 @@
|
||||||
{
|
{
|
||||||
"name": "@rbxts/jecs",
|
"name": "@rbxts/jecs",
|
||||||
"version": "0.2.9",
|
"version": "0.2.9",
|
||||||
"description": "Stupidly fast Entity Component System",
|
"description": "Stupidly fast Entity Component System",
|
||||||
"main": "src",
|
"main": "src/init",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ukendio/jecs.git"
|
"url": "https://github.com/ukendio/jecs.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Ukendio",
|
"author": "Ukendio",
|
||||||
"contributors": [
|
"contributors": [
|
||||||
"Ukendio",
|
"Ukendio",
|
||||||
"EncodedVenom"
|
"EncodedVenom"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/ukendio/jecs",
|
"homepage": "https://github.com/ukendio/jecs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"types": "src/index.d.ts",
|
"types": "src/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"src/"
|
"src",
|
||||||
],
|
"LICENSE.md",
|
||||||
"publishConfig": {
|
"README.md"
|
||||||
"access": "public"
|
],
|
||||||
},
|
"publishConfig": {
|
||||||
"devDependencies": {
|
"access": "public"
|
||||||
"@rbxts/compiler-types": "^2.3.0-types.1",
|
},
|
||||||
"@rbxts/types": "^1.0.781",
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
"@rbxts/compiler-types": "^2.3.0-types.1",
|
||||||
"@typescript-eslint/parser": "^5.8.0",
|
"@rbxts/types": "^1.0.781",
|
||||||
"eslint": "^8.5.0",
|
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"@typescript-eslint/parser": "^5.8.0",
|
||||||
"eslint-plugin-prettier": "^4.0.0",
|
"eslint": "^8.5.0",
|
||||||
"eslint-plugin-roblox-ts": "^0.0.32",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"prettier": "^2.5.1",
|
"eslint-plugin-prettier": "^4.0.0",
|
||||||
"roblox-ts": "^2.3.0",
|
"eslint-plugin-roblox-ts": "^0.0.32",
|
||||||
"typescript": "^5.4.2",
|
"prettier": "^2.5.1",
|
||||||
"vitepress": "^1.3.0"
|
"roblox-ts": "^2.3.0",
|
||||||
},
|
"typescript": "^5.4.2",
|
||||||
"scripts": {
|
"vitepress": "^1.3.0"
|
||||||
"docs:dev": "vitepress dev docs",
|
},
|
||||||
"docs:build": "vitepress build docs",
|
"scripts": {
|
||||||
"docs:preview": "vitepress preview docs"
|
"docs:dev": "vitepress dev docs",
|
||||||
}
|
"docs:build": "vitepress build docs",
|
||||||
|
"docs:preview": "vitepress preview docs"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
4
src/index.d.ts
vendored
4
src/index.d.ts
vendored
|
@ -33,7 +33,7 @@ type Query<T extends unknown[]> = {
|
||||||
} & IterableFunction<LuaTuple<[Entity, ...T]>>;
|
} & IterableFunction<LuaTuple<[Entity, ...T]>>;
|
||||||
|
|
||||||
// Utility Types
|
// Utility Types
|
||||||
export type Entity<T = unknown> = number & { __DO_NOT_USE_OR_YOU_WILL_BE_FIRED: T };
|
export type Entity<T = unknown> = number & { __T: T };
|
||||||
export type EntityType<T> = T extends Entity<infer A> ? A : never;
|
export type EntityType<T> = T extends Entity<infer A> ? A : never;
|
||||||
export type InferComponents<A extends Entity[]> = {
|
export type InferComponents<A extends Entity[]> = {
|
||||||
[K in keyof A]: EntityType<A[K]>;
|
[K in keyof A]: EntityType<A[K]>;
|
||||||
|
@ -162,5 +162,7 @@ export const Component: Entity;
|
||||||
export const OnAdd: Entity;
|
export const OnAdd: Entity;
|
||||||
export const OnRemove: Entity;
|
export const OnRemove: Entity;
|
||||||
export const OnSet: Entity;
|
export const OnSet: Entity;
|
||||||
|
export const OnDeleteTarget: Entity;
|
||||||
|
export const Delete: Entity;
|
||||||
export const Wildcard: Entity;
|
export const Wildcard: Entity;
|
||||||
export const Rest: Entity;
|
export const Rest: Entity;
|
||||||
|
|
Loading…
Reference in a new issue