@tokamakdev/tok 0.1.1-beta.97 → 0.1.1-beta.99

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +15 -1
  2. package/package.json +13 -13
package/dist/index.d.mts CHANGED
@@ -11,7 +11,19 @@ export interface PlatformConfig {
11
11
  /** A setting the platform pack declares; `tok` validates it. */
12
12
  [key: string]: Value | undefined;
13
13
  }
14
- /** The app's tokamak configuration: the tokamak Vite plugin's options other than `module`. */
14
+ /** One plugin's settings: values for every platform, and each platform's own. */
15
+ export interface PluginConfig {
16
+ android?: Record<string, Value | undefined>;
17
+ ios?: Record<string, Value | undefined>;
18
+ macos?: Record<string, Value | undefined>;
19
+ windows?: Record<string, Value | undefined>;
20
+ /** A setting the plugin declares; `tok` validates it. */
21
+ [key: string]: Value | Record<string, Value | undefined> | undefined;
22
+ }
23
+ /**
24
+ * The app's tokamak configuration: the tokamak Vite plugin's options other than `module`. Other
25
+ * keys are plugins' settings, by plugin ID.
26
+ */
15
27
  export interface Config {
16
28
  /** Display name for every platform. */
17
29
  name?: string;
@@ -25,4 +37,6 @@ export interface Config {
25
37
  ios?: PlatformConfig;
26
38
  macos?: PlatformConfig;
27
39
  windows?: PlatformConfig;
40
+ /** A plugin's settings, by its ID. */
41
+ [plugin: string]: string | PlatformConfig | PluginConfig | undefined;
28
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokamakdev/tok",
3
- "version": "0.1.1-beta.97",
3
+ "version": "0.1.1-beta.99",
4
4
  "description": "The tokamak CLI, Vite plugin and app API: build native apps from a Cloudflare Workers codebase",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "node": ">=18"
40
40
  },
41
41
  "dependencies": {
42
- "@tokamakdev/plugin": "0.1.0-beta.97",
42
+ "@tokamakdev/plugin": "0.1.0-beta.99",
43
43
  "ws": "^8.22.0"
44
44
  },
45
45
  "peerDependencies": {
@@ -64,17 +64,17 @@
64
64
  "wrangler": "4.147.0"
65
65
  },
66
66
  "optionalDependencies": {
67
- "@tokamakdev/platform-android-arm64": "0.1.1-beta.97",
68
- "@tokamakdev/platform-ios-arm64": "0.1.1-beta.97",
69
- "@tokamakdev/platform-ios-simulator-arm64": "0.1.1-beta.97",
70
- "@tokamakdev/platform-ios-simulator-x64": "0.1.1-beta.97",
71
- "@tokamakdev/platform-macos-arm64": "0.1.1-beta.97",
72
- "@tokamakdev/platform-macos-x64": "0.1.1-beta.97",
73
- "@tokamakdev/platform-windows-x64": "0.1.1-beta.97",
74
- "@tokamakdev/tok-darwin-arm64": "0.1.1-beta.97",
75
- "@tokamakdev/tok-darwin-x64": "0.1.1-beta.97",
76
- "@tokamakdev/tok-linux-x64": "0.1.1-beta.97",
77
- "@tokamakdev/tok-win32-x64": "0.1.1-beta.97"
67
+ "@tokamakdev/platform-android-arm64": "0.1.1-beta.99",
68
+ "@tokamakdev/platform-ios-arm64": "0.1.1-beta.99",
69
+ "@tokamakdev/platform-ios-simulator-arm64": "0.1.1-beta.99",
70
+ "@tokamakdev/platform-ios-simulator-x64": "0.1.1-beta.99",
71
+ "@tokamakdev/platform-macos-arm64": "0.1.1-beta.99",
72
+ "@tokamakdev/platform-macos-x64": "0.1.1-beta.99",
73
+ "@tokamakdev/platform-windows-x64": "0.1.1-beta.99",
74
+ "@tokamakdev/tok-darwin-arm64": "0.1.1-beta.99",
75
+ "@tokamakdev/tok-darwin-x64": "0.1.1-beta.99",
76
+ "@tokamakdev/tok-linux-x64": "0.1.1-beta.99",
77
+ "@tokamakdev/tok-win32-x64": "0.1.1-beta.99"
78
78
  },
79
79
  "publishConfig": {
80
80
  "access": "public"