noxium 1.0.9 โ†’ 1.0.11

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.
package/dist/schema.cjs CHANGED
@@ -1,4 +1,4 @@
1
- var y=Object.create;var{getPrototypeOf:M,defineProperty:r,getOwnPropertyNames:u,getOwnPropertyDescriptor:x}=Object,s=Object.prototype.hasOwnProperty;function p(e){return this[e]}var c,K,C=(e,n,t)=>{var i=e!=null&&typeof e==="object";if(i){var l=n?c??=new WeakMap:K??=new WeakMap,f=l.get(e);if(f)return f}t=e!=null?y(M(e)):{};let o=n||!e||!e.__esModule||!s.call(e,"default")?r(t,"default",{value:e,enumerable:!0}):t;if(e&&typeof e==="object"||typeof e==="function"){for(let d of u(e))if(!s.call(o,d))r(o,d,{get:p.bind(e,d),enumerable:!0})}if(i)l.set(e,o);return o},m=(e)=>{var n=(a??=new WeakMap).get(e),t;if(n)return n;if(n=r({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var i of u(e))if(!s.call(n,i))r(n,i,{get:p.bind(e,i),enumerable:!(t=x(e,i))||t.enumerable})}return a.set(e,n),n},a,q=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var g=(e)=>e;function F(e,n){this[e]=g.bind(null,n)}var I=(e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0,configurable:!0,set:F.bind(n,t)})};var T={};module.exports=m(T);
1
+ var y=Object.create;var{getPrototypeOf:M,defineProperty:r,getOwnPropertyNames:u,getOwnPropertyDescriptor:x}=Object,s=Object.prototype.hasOwnProperty;function p(e){return this[e]}var c,K,C=(e,n,t)=>{var i=e!=null&&typeof e==="object";if(i){var l=n?c??=new WeakMap:K??=new WeakMap,f=l.get(e);if(f)return f}t=e!=null?y(M(e)):{};let o=n||!e||!e.__esModule||!s.call(e,"default")?r(t,"default",{value:e,enumerable:!0}):t;if(e&&typeof e==="object"||typeof e==="function"){for(let d of u(e))if(!s.call(o,d))r(o,d,{get:p.bind(e,d),enumerable:!0})}if(i)l.set(e,o);return o},m=(e)=>{var n=(a??=new WeakMap).get(e),t;if(n)return n;if(n=r({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var i of u(e))if(!s.call(n,i))r(n,i,{get:p.bind(e,i),enumerable:!(t=x(e,i))||t.enumerable})}return a.set(e,n),n},a;var g=(e)=>e;function F(e,n){this[e]=g.bind(null,n)}var q=(e,n)=>{for(var t in n)r(e,t,{get:n[t],enumerable:!0,configurable:!0,set:F.bind(n,t)})};var T={};module.exports=m(T);
2
2
 
3
- //# debugId=2415BFDCE9414E9664756E2164756E21
3
+ //# debugId=22CE99F78FA1921364756E2164756E21
4
4
  //# sourceMappingURL=schema.cjs.map
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "2415BFDCE9414E9664756E2164756E21",
7
+ "debugId": "22CE99F78FA1921364756E2164756E21",
8
8
  "names": []
9
9
  }
package/dist/schema.mjs CHANGED
@@ -1,4 +1,3 @@
1
- // @bun
2
1
 
3
- //# debugId=A0E4D24D4940809F64756E2164756E21
2
+ //# debugId=E57C714E0B1254C764756E2164756E21
4
3
  //# sourceMappingURL=schema.mjs.map
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "A0E4D24D4940809F64756E2164756E21",
7
+ "debugId": "E57C714E0B1254C764756E2164756E21",
8
8
  "names": []
9
9
  }
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "noxium",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Unified ORM for SQLite and MongoDB with TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/noxium.cjs",
7
7
  "module": "./dist/noxium.mjs",
8
8
  "types": "./dist/noxium.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
9
12
  "exports": {
10
13
  ".": {
11
14
  "import": {
@@ -35,12 +38,12 @@
35
38
  },
36
39
  "repository": {
37
40
  "type": "git",
38
- "url": "git+https://github.com/ayiin-dev/noxium.git"
41
+ "url": "git+https://github.com/AyiinXd/noxium.git"
39
42
  },
40
43
  "bugs": {
41
- "url": "https://github.com/ayiin-dev/noxium/issues"
44
+ "url": "https://github.com/AyiinXd/noxium/issues"
42
45
  },
43
- "homepage": "https://github.com/ayiin-dev/noxium#readme",
46
+ "homepage": "https://github.com/AyiinXd/noxium#readme",
44
47
  "keywords": [
45
48
  "orm",
46
49
  "sqlite",
@@ -54,9 +57,6 @@
54
57
  "@types/bun": "^1.4.0",
55
58
  "@typescript/typescript6": "^6.0.2"
56
59
  },
57
- "peerDependencies": {
58
- "typescript": "^7.0.2"
59
- },
60
60
  "dependencies": {
61
61
  "better-sqlite3": "^13.0.3",
62
62
  "glob": "^13.0.6",
package/build.ts DELETED
@@ -1,65 +0,0 @@
1
- import { rm } from "node:fs/promises";
2
-
3
- // 1. Bersihkan folder dist sebelum build
4
- await rm("./dist", { recursive: true, force: true });
5
- console.log("๐Ÿงน Folder dist dibersihkan.");
6
-
7
- const glob = new Bun.Glob("**/*.{ts,tsx}");
8
- const entrypoints: string[] = [];
9
-
10
- for (const path of glob.scanSync({
11
- cwd: "./src",
12
- onlyFiles: true,
13
- })) {
14
- entrypoints.push(`./src/${path.replaceAll("\\", "/")}`); // ๐Ÿ‘ˆ Path lengkap untuk dibaca oleh Bun.build
15
- }
16
-
17
- console.log("Entrypoints:", entrypoints);
18
-
19
- // 2. Build untuk ESM (.mjs)
20
- const esmResult = await Bun.build({
21
- entrypoints,
22
- root: "./src", // ๐Ÿ‘ˆ Beritahu Bun root-nya adalah src agar struktur dist tetap flat
23
- outdir: "./dist",
24
- target: "bun",
25
- format: "esm",
26
- naming: "[dir]/[name].mjs",
27
- sourcemap: "linked",
28
- minify: true,
29
- });
30
-
31
- if (!esmResult.success) {
32
- console.error("โŒ ESM Build Gagal:", esmResult.logs);
33
- process.exit(1);
34
- }
35
- console.log("โœ… ESM Build Selesai (.mjs)");
36
-
37
- // 3. Build untuk CJS (.cjs)
38
- const cjsResult = await Bun.build({
39
- entrypoints,
40
- root: "./src", // ๐Ÿ‘ˆ Terapkan juga untuk CJS
41
- outdir: "./dist",
42
- target: "node",
43
- format: "cjs",
44
- naming: "[dir]/[name].cjs",
45
- sourcemap: "linked",
46
- minify: true,
47
- });
48
-
49
- if (!cjsResult.success) {
50
- console.error("โŒ CJS Build Gagal:", cjsResult.logs);
51
- process.exit(1);
52
- }
53
- console.log("โœ… CJS Build CJS Selesai (.cjs)");
54
-
55
- // 4. Generate TypeScript Declaration Files (.d.ts)
56
- console.log("โณ Menggenerasi berkas .d.ts...");
57
- const proc = Bun.spawn(["bunx", "tsc", "-p", "tsconfig.build.json"]);
58
- await proc.exited;
59
-
60
- if (proc.exitCode !== 0) {
61
- console.error("โŒ Generasi .d.ts gagal.");
62
- process.exit(1);
63
- }
64
-
65
- console.log("๐ŸŽ‰ Build berhasil! Output tersedia di folder ./dist");