@relyio/cli 0.2.1 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@relyio/cli",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "RelyIO is coming soon — this package is not ready for general use yet.",
5
5
  "bugs": {
6
6
  "email": "team@relyio.com"
@@ -62,15 +62,17 @@
62
62
  "ink-testing-library": "^4.0.0",
63
63
  "rimraf": "6.1.3",
64
64
  "tsup": "8.5.1",
65
- "typescript": "5.9.3",
65
+ "typescript": "npm:@typescript/typescript6@6.0.2",
66
66
  "typescript-eslint": "8.69.0",
67
67
  "vitest": "4.1.11",
68
- "@relyio/api-contract": "0.1.0",
69
- "@relyio/codegen-core": "1.0.0",
70
68
  "@relyio/codegen-python": "0.1.0",
69
+ "@relyio/codegen-core": "1.0.0",
70
+ "@relyio/api-contract": "0.1.0",
71
+ "@relyio/device-auth": "0.0.0",
71
72
  "@relyio/eslint-config": "0.0.0",
72
- "@relyio/codegen-typescript": "1.0.0",
73
73
  "@relyio/schema": "0.0.1",
74
+ "@relyio/sdk": "0.4.0",
75
+ "@relyio/codegen-typescript": "1.0.0",
74
76
  "@relyio/tenancy": "0.1.0"
75
77
  },
76
78
  "publishConfig": {
@@ -83,8 +85,8 @@
83
85
  "scripts": {
84
86
  "build": "tsup && chmod +x dist/index.js",
85
87
  "dev": "tsup --watch",
86
- "lint:check": "eslint .",
87
- "lint:write": "eslint . --fix",
88
+ "lint:check": "relyio-lint",
89
+ "lint:write": "relyio-lint --fix",
88
90
  "clean": "rimraf dist",
89
91
  "type:check": "tsc --noEmit",
90
92
  "test": "vitest run",
@@ -0,0 +1,4 @@
1
+ // app/api/relyio/draft/route.ts
2
+ import { relyioDraft } from '@relyio/next'
3
+
4
+ export const GET = relyioDraft()
@@ -0,0 +1,4 @@
1
+ // app/api/relyio/revalidate/route.ts
2
+ import { relyioRevalidate } from '@relyio/next'
3
+
4
+ export const POST = relyioRevalidate({ dataset: '{{DATASET}}' }) // the same dataset as createNextClient
@@ -0,0 +1,8 @@
1
+ // lib/relyio.ts
2
+ import { createNextClient } from '@relyio/next'
3
+
4
+ export const relyio = createNextClient({
5
+ apiKey: process.env.RELYIO_API_KEY!,
6
+ previewApiKey: process.env.RELYIO_PREVIEW_API_KEY!,
7
+ dataset: '{{DATASET}}',
8
+ })
@@ -0,0 +1,12 @@
1
+ // next.config.ts
2
+ const config = {
3
+ images: {
4
+ loader: 'custom',
5
+ loaderFile: './relyio-image-loader.ts',
6
+ // The widths the RelyIO edge renders at. Next's defaults snap onto fewer distinct widths, so
7
+ // a srcset would list one URL under several descriptors.
8
+ deviceSizes: [600, 800, 1100, 1200, 1900, 2000, 3800],
9
+ imageSizes: [100, 200, 300, 400],
10
+ },
11
+ }
12
+ export default config
@@ -0,0 +1,2 @@
1
+ // relyio-image-loader.ts
2
+ export { default } from '@relyio/next/image-loader'