@tailorkit/vite 0.1.0-beta.44 → 0.1.0-beta.45

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.
@@ -9,11 +9,12 @@ const tailorkitConfigSchema = v.strictObject({
9
9
  description: v.optional(v.nullable(v.pipe(v.string(), v.trim(), v.maxLength(255)))),
10
10
  host: v.pipe(v.string(), v.url()),
11
11
  logos: v.optional(logosConfigSchema),
12
- name: v.optional(v.pipe(v.string(), v.trim(), v.minLength(1))),
12
+ name: v.pipe(v.string(), v.trim(), v.minLength(1)),
13
13
  server: v.optional(v.strictObject({
14
14
  entry: v.optional(v.pipe(v.string(), v.minLength(1)), "src/server.ts"),
15
15
  migrations: v.optional(v.pipe(v.string(), v.minLength(1)))
16
- }))
16
+ })),
17
+ slug: v.pipe(v.string(), v.minLength(3), v.maxLength(32), v.regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/u))
17
18
  });
18
19
  const defineConfig = (config) => config;
19
20
  const defineTailorKitConfig = defineConfig;
@@ -8,11 +8,12 @@ declare const tailorkitConfigSchema: v.StrictObjectSchema<{
8
8
  readonly dark: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
9
9
  readonly light: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
10
10
  }, undefined>, undefined>;
11
- readonly name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
11
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
12
12
  readonly server: v.OptionalSchema<v.StrictObjectSchema<{
13
13
  readonly entry: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, "src/server.ts">;
14
14
  readonly migrations: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
15
15
  }, undefined>, undefined>;
16
+ readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 32, undefined>, v.RegexAction<string, undefined>]>;
16
17
  }, undefined>;
17
18
  /**
18
19
  * App configuration exported from `tailorkit.config.ts`.
@@ -57,11 +58,10 @@ interface TailorKitConfig extends v.InferInput<typeof tailorkitConfigSchema> {
57
58
  };
58
59
  /**
59
60
  * App name applied during deployment, including updates to an existing app.
60
- * When omitted, new apps use the package.json name or app directory name,
61
- * and existing apps keep their current name.
62
- * @default undefined
61
+ * Trimmed to remove surrounding whitespace; must not be blank.
62
+ * Required; has no default.
63
63
  */
64
- name?: string;
64
+ name: string;
65
65
  /**
66
66
  * Enables the private app backend and its database migrations when present.
67
67
  * Set to `{}` to use the default paths; omit for a client-only app.
@@ -81,6 +81,12 @@ interface TailorKitConfig extends v.InferInput<typeof tailorkitConfigSchema> {
81
81
  */
82
82
  migrations?: string;
83
83
  };
84
+ /**
85
+ * Permanent app slug used when creating an app during deployment.
86
+ * Use 3–32 lowercase letters or digits, separated by single hyphens.
87
+ * Existing linked apps keep their slug. Required; has no default.
88
+ */
89
+ slug: string;
84
90
  }
85
91
  type ResolvedTailorKitConfig = v.InferOutput<typeof tailorkitConfigSchema>;
86
92
  declare const defineConfig: (config: TailorKitConfig) => TailorKitConfig;
@@ -1,4 +1,4 @@
1
- import { t as ResolvedTailorKitConfig } from "./config-BQiPSa0K.mjs";
1
+ import { t as ResolvedTailorKitConfig } from "./config-DeQBAkM1.mjs";
2
2
  //#region src/config/loader.d.ts
3
3
  export interface LoadedTailorKitConfig {
4
4
  config: ResolvedTailorKitConfig;
@@ -1,4 +1,4 @@
1
- import { r as tailorkitConfigSchema } from "./config-DZuCdN7v.mjs";
1
+ import { r as tailorkitConfigSchema } from "./config-Cw3z9NGB.mjs";
2
2
  import * as v from "valibot";
3
3
  import path from "node:path";
4
4
  import { cosmiconfig } from "cosmiconfig";
package/dist/config.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as defineTailorKitConfig, n as TailorKitConfig, r as defineConfig } from "./config-BQiPSa0K.mjs";
1
+ import { i as defineTailorKitConfig, n as TailorKitConfig, r as defineConfig } from "./config-DeQBAkM1.mjs";
2
2
  export { type TailorKitConfig, defineConfig, defineTailorKitConfig };
package/dist/config.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as defineTailorKitConfig, t as defineConfig } from "./config-DZuCdN7v.mjs";
1
+ import { n as defineTailorKitConfig, t as defineConfig } from "./config-Cw3z9NGB.mjs";
2
2
  export { defineConfig, defineTailorKitConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailorkit/vite",
3
- "version": "0.1.0-beta.44",
3
+ "version": "0.1.0-beta.45",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@tailorkit/app": "0.1.0-beta.44",
50
+ "@tailorkit/app": "0.1.0-beta.45",
51
51
  "cosmiconfig": "^10.0.1",
52
52
  "valibot": "^1.5.0"
53
53
  },