@ruvyxa/adapter-netlify 1.0.5 → 1.0.6

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-netlify
11
11
  ## Usage
12
12
 
13
13
  ```ts
14
- import { defineConfig } from "ruvyxa/config"
15
- import { netlifyAdapter } from "@ruvyxa/adapter-netlify"
14
+ import { defineConfig } from 'ruvyxa/config'
15
+ import { netlifyAdapter } from '@ruvyxa/adapter-netlify'
16
16
 
17
17
  export default defineConfig({
18
18
  adapter: netlifyAdapter(),
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 Netlify 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,qBAAqB;IACpC,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CA8B3E;AAED,eAAe,cAAc,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,qBAAqB;IACpC,qFAAqF;IACrF,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CA4B3E;AAED,eAAe,cAAc,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { validateBuildContext } from "@ruvyxa/core";
1
+ import { validateBuildContext } from '@ruvyxa/core';
2
2
  /**
3
3
  * Create a Netlify deployment adapter for Ruvyxa.
4
4
  *
@@ -16,26 +16,26 @@ import { validateBuildContext } from "@ruvyxa/core";
16
16
  * ```
17
17
  */
18
18
  export function netlifyAdapter(options = {}) {
19
- if (options.functionsDir !== undefined && typeof options.functionsDir !== "string") {
19
+ if (options.functionsDir !== undefined && typeof options.functionsDir !== 'string') {
20
20
  throw new Error(`[RUV2001] netlifyAdapter: "functionsDir" must be a string, got ${typeof options.functionsDir}`);
21
21
  }
22
- if (options.functionsDir !== undefined && options.functionsDir.trim() === "") {
22
+ if (options.functionsDir !== undefined && options.functionsDir.trim() === '') {
23
23
  throw new Error(`[RUV2001] netlifyAdapter: "functionsDir" must not be an empty string`);
24
24
  }
25
25
  return {
26
- name: "netlify",
27
- target: "serverless",
26
+ name: 'netlify',
27
+ target: 'serverless',
28
28
  build(ctx) {
29
- validateBuildContext(ctx, "netlifyAdapter");
29
+ validateBuildContext(ctx, 'netlifyAdapter');
30
30
  const functionsDir = options.functionsDir ?? `${ctx.outDir}/netlify/functions`;
31
31
  return {
32
- name: "netlify",
33
- target: "serverless",
34
- platform: "netlify",
32
+ name: 'netlify',
33
+ target: 'serverless',
34
+ platform: 'netlify',
35
35
  entry: `${ctx.outDir}/server/app`,
36
36
  assetsDir: `${ctx.outDir}/assets`,
37
37
  functionsDir,
38
- configFiles: ["netlify.toml"],
38
+ configFiles: ['netlify.toml'],
39
39
  };
40
40
  },
41
41
  };
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;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,cAAc,CAAC,UAAiC,EAAE;IAChE,IAAI,OAAO,CAAC,YAAY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,IAAI,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC7E,MAAM,IAAI,KAAK,CAAC,sEAAsE,CAAC,CAAA;IACzF,CAAC;IAED,OAAO;QACL,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,YAAY;QACpB,KAAK,CAAC,GAAiB;YACrB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAA;YAC3C,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,IAAI,GAAG,GAAG,CAAC,MAAM,oBAAoB,CAAA;YAC9E,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,YAAY;gBACpB,QAAQ,EAAE,SAAS;gBACnB,KAAK,EAAE,GAAG,GAAG,CAAC,MAAM,aAAa;gBACjC,SAAS,EAAE,GAAG,GAAG,CAAC,MAAM,SAAS;gBACjC,YAAY;gBACZ,WAAW,EAAE,CAAC,cAAc,CAAC;aAC9B,CAAA;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,eAAe,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@ruvyxa/adapter-netlify",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Shape Ruvyxa builds for Netlify functions and assets with a small typed adapter contract.",
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.6"
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-netlify/**/*.test.ts\"",
47
- "format": "tsc -p tsconfig.json --noEmit"
47
+ "format": "tsc -p tsconfig.check.json"
48
48
  }
49
49
  }