@turystack/entity 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ type Class = {
2
+ new (...args: any[]): any;
3
+ };
4
+ export declare function Entity(): (Constructor: Class) => void;
5
+ export {};
6
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/entity/entity.ts"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACZ,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;CACzB,CAAA;AAkBD,wBAAgB,MAAM,KACb,aAAa,KAAK,UAG1B"}
@@ -0,0 +1,7 @@
1
+ import superjson from 'superjson';
2
+ export function Entity() {
3
+ return (Constructor) => {
4
+ superjson.registerClass(Constructor);
5
+ };
6
+ }
7
+ //# sourceMappingURL=entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity.js","sourceRoot":"","sources":["../../src/entity/entity.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAA;AAsBjC,MAAM,UAAU,MAAM;IACrB,OAAO,CAAC,WAAkB,EAAE,EAAE;QAC7B,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC,CAAA;IACrC,CAAC,CAAA;AACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Entity } from './entity.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { Entity } from './entity.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './entity/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './entity/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@turystack/entity",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
24
+ "test": "vitest run",
25
+ "test:cov": "vitest run --coverage",
26
+ "lint": "biome lint ./src",
27
+ "format": "biome format --write ./src",
28
+ "check": "biome check --write ./src"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/turystack/entity.git"
33
+ },
34
+ "peerDependencies": {
35
+ "superjson": "^2.0.0"
36
+ },
37
+ "devDependencies": {
38
+ "@biomejs/biome": "2.2.2",
39
+ "@vitest/coverage-v8": "^2.1.0",
40
+ "reflect-metadata": "^0.2.2",
41
+ "superjson": "^2.0.0",
42
+ "tsc-alias": "^1.8.16",
43
+ "typescript": "^5.5.0",
44
+ "vitest": "^2.1.0"
45
+ }
46
+ }