From f2d6d76686ffd43e8ec9e3ecf5dee75444187de5 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sat, 17 Aug 2024 02:38:00 +0200 Subject: [PATCH] Fix file paths --- package.json | 86 ++++++++++++++++++++++++++------------------------ src/index.d.ts | 4 ++- 2 files changed, 47 insertions(+), 43 deletions(-) diff --git a/package.json b/package.json index a4f5abb..23d2749 100644 --- a/package.json +++ b/package.json @@ -1,44 +1,46 @@ { - "name": "@rbxts/jecs", - "version": "0.2.9", - "description": "Stupidly fast Entity Component System", - "main": "src", - "repository": { - "type": "git", - "url": "https://github.com/ukendio/jecs.git" - }, - "keywords": [], - "author": "Ukendio", - "contributors": [ - "Ukendio", - "EncodedVenom" - ], - "homepage": "https://github.com/ukendio/jecs", - "license": "MIT", - "types": "src/index.d.ts", - "files": [ - "src/" - ], - "publishConfig": { - "access": "public" - }, - "devDependencies": { - "@rbxts/compiler-types": "^2.3.0-types.1", - "@rbxts/types": "^1.0.781", - "@typescript-eslint/eslint-plugin": "^5.8.0", - "@typescript-eslint/parser": "^5.8.0", - "eslint": "^8.5.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-roblox-ts": "^0.0.32", - "prettier": "^2.5.1", - "roblox-ts": "^2.3.0", - "typescript": "^5.4.2", - "vitepress": "^1.3.0" - }, - "scripts": { - "docs:dev": "vitepress dev docs", - "docs:build": "vitepress build docs", - "docs:preview": "vitepress preview docs" - } + "name": "@rbxts/jecs", + "version": "0.2.9", + "description": "Stupidly fast Entity Component System", + "main": "src/init", + "repository": { + "type": "git", + "url": "https://github.com/ukendio/jecs.git" + }, + "keywords": [], + "author": "Ukendio", + "contributors": [ + "Ukendio", + "EncodedVenom" + ], + "homepage": "https://github.com/ukendio/jecs", + "license": "MIT", + "types": "src/index.d.ts", + "files": [ + "src", + "LICENSE.md", + "README.md" + ], + "publishConfig": { + "access": "public" + }, + "devDependencies": { + "@rbxts/compiler-types": "^2.3.0-types.1", + "@rbxts/types": "^1.0.781", + "@typescript-eslint/eslint-plugin": "^5.8.0", + "@typescript-eslint/parser": "^5.8.0", + "eslint": "^8.5.0", + "eslint-config-prettier": "^8.3.0", + "eslint-plugin-prettier": "^4.0.0", + "eslint-plugin-roblox-ts": "^0.0.32", + "prettier": "^2.5.1", + "roblox-ts": "^2.3.0", + "typescript": "^5.4.2", + "vitepress": "^1.3.0" + }, + "scripts": { + "docs:dev": "vitepress dev docs", + "docs:build": "vitepress build docs", + "docs:preview": "vitepress preview docs" + } } diff --git a/src/index.d.ts b/src/index.d.ts index 871c0c2..d78e732 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -33,7 +33,7 @@ type Query = { } & IterableFunction>; // Utility Types -export type Entity = number & { __DO_NOT_USE_OR_YOU_WILL_BE_FIRED: T }; +export type Entity = number & { __T: T }; export type EntityType = T extends Entity ? A : never; export type InferComponents = { [K in keyof A]: EntityType; @@ -162,5 +162,7 @@ export const Component: Entity; export const OnAdd: Entity; export const OnRemove: Entity; export const OnSet: Entity; +export const OnDeleteTarget: Entity; +export const Delete: Entity; export const Wildcard: Entity; export const Rest: Entity;