@ruvyxa/adapter-bun 1.0.5 → 1.0.7

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/README.md CHANGED
@@ -11,8 +11,8 @@ npm install @ruvyxa/adapter-bun
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { defineConfig } from "ruvyxa/config"
15
- import { bunAdapter } from "@ruvyxa/adapter-bun"
14
+ import { defineConfig } from 'ruvyxa/config'
15
+ import { bunAdapter } from '@ruvyxa/adapter-bun'
16
16
 
17
17
  export default defineConfig({
18
18
  adapter: bunAdapter(),
@@ -27,7 +27,9 @@ export default defineConfig({
27
27
  "target": "node",
28
28
  "platform": "bun",
29
29
  "entry": ".ruvyxa/server/app",
30
- "assetsDir": ".ruvyxa/assets"
30
+ "assetsDir": ".ruvyxa/assets",
31
+ "clientDir": ".ruvyxa/client",
32
+ "chunkManifest": ".ruvyxa/client/chunk-manifest.json"
31
33
  }
32
34
  ```
33
35
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Adapter } from "@ruvyxa/core";
1
+ import type { Adapter } from '@ruvyxa/core';
2
2
  /**
3
3
  * Options for the Bun adapter.
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;AAGxE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CA2BnE;AAED,eAAe,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,cAAc,CAAA;AAGxE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mEAAmE;IACnE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAwBnE;AAED,eAAe,UAAU,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { validateBuildContext } from "@ruvyxa/core";
1
+ import { clientBuildOutput, validateBuildContext } from '@ruvyxa/core';
2
2
  /**
3
3
  * Create a Bun runtime deployment adapter for Ruvyxa.
4
4
  *
@@ -16,23 +16,24 @@ import { validateBuildContext } from "@ruvyxa/core";
16
16
  * ```
17
17
  */
18
18
  export function bunAdapter(options = {}) {
19
- if (options.entry !== undefined && typeof options.entry !== "string") {
19
+ if (options.entry !== undefined && typeof options.entry !== 'string') {
20
20
  throw new Error(`[RUV2001] bunAdapter: "entry" must be a string, got ${typeof options.entry}`);
21
21
  }
22
- if (options.entry !== undefined && options.entry.trim() === "") {
22
+ if (options.entry !== undefined && options.entry.trim() === '') {
23
23
  throw new Error(`[RUV2001] bunAdapter: "entry" must not be an empty string`);
24
24
  }
25
25
  return {
26
- name: "bun",
27
- target: "node",
26
+ name: 'bun',
27
+ target: 'node',
28
28
  build(ctx) {
29
- validateBuildContext(ctx, "bunAdapter");
29
+ validateBuildContext(ctx, 'bunAdapter');
30
30
  return {
31
- name: "bun",
32
- target: "node",
33
- platform: "bun",
31
+ name: 'bun',
32
+ target: 'node',
33
+ platform: 'bun',
34
34
  entry: options.entry ?? `${ctx.outDir}/server/app`,
35
35
  assetsDir: `${ctx.outDir}/assets`,
36
+ ...clientBuildOutput(ctx),
36
37
  };
37
38
  },
38
39
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAUnD;;;;;;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AC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/D,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAA;IAC9E,CAAC;IAED,OAAO;QACL,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,MAAM;QACd,KAAK,CAAC,GAAiB;YACrB,oBAAoB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAA;YACvC,OAAO;gBACL,IAAI,EAAE,KAAK;gBACX,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,KAAK;gBACf,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,GAAG,GAAG,CAAC,MAAM,aAAa;gBAClD,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,SAAS;gBACjC,GAAG,iBAAiB,CAAC,GAAG,CAAC;aAC1B,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,eAAe,UAAU,CAAA"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ruvyxa/adapter-bun",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Run Ruvyxa on Bun-flavored hosts with typed adapter metadata for entrypoints and assets.",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
@@ -38,12 +38,12 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@ruvyxa/core": "^1.0.5"
41
+ "@ruvyxa/core": "^1.0.7"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc -p tsconfig.json",
45
- "check": "tsc -p tsconfig.json --noEmit",
45
+ "check": "tsc -p tsconfig.check.json",
46
46
  "test": "node --test \"../../../tests/packages/adapter-bun/**/*.test.ts\"",
47
- "format": "tsc -p tsconfig.json --noEmit"
47
+ "format": "tsc -p tsconfig.check.json"
48
48
  }
49
49
  }