@storm-software/config 1.116.2 → 1.117.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/src/types.ts DELETED
@@ -1,96 +0,0 @@
1
- import type z from "zod";
2
- import type {
3
- ColorConfigMapSchema,
4
- ColorConfigSchema,
5
- DarkThemeColorConfigSchema,
6
- LightThemeColorConfigSchema,
7
- MultiThemeColorConfigSchema,
8
- SingleThemeColorConfigSchema,
9
- stormWorkspaceConfigSchema
10
- } from "./schema";
11
-
12
- export type DarkThemeColorConfig = z.infer<typeof DarkThemeColorConfigSchema>;
13
- export type DarkThemeColorConfigInput = z.input<
14
- typeof DarkThemeColorConfigSchema
15
- >;
16
-
17
- export type LightThemeColorConfig = z.infer<typeof LightThemeColorConfigSchema>;
18
- export type LightThemeColorConfigInput = z.input<
19
- typeof LightThemeColorConfigSchema
20
- >;
21
-
22
- export type MultiThemeColorConfig = z.infer<typeof MultiThemeColorConfigSchema>;
23
- export type MultiThemeColorConfigInput = z.input<
24
- typeof MultiThemeColorConfigSchema
25
- >;
26
-
27
- export type SingleThemeColorConfig = z.infer<
28
- typeof SingleThemeColorConfigSchema
29
- >;
30
- export type SingleThemeColorConfigInput = z.input<
31
- typeof SingleThemeColorConfigSchema
32
- >;
33
-
34
- export type ColorConfig = z.infer<typeof ColorConfigSchema>;
35
- export type ColorConfigInput = z.input<typeof ColorConfigSchema>;
36
-
37
- export type ColorConfigMap = z.infer<typeof ColorConfigMapSchema>;
38
- export type ColorConfigMapInput = z.input<typeof ColorConfigMapSchema>;
39
-
40
- type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
41
- export type StormWorkspaceConfigInput = z.input<
42
- typeof stormWorkspaceConfigSchema
43
- >;
44
-
45
- /**
46
- * The Storm workspace's configuration object
47
- *
48
- * @remarks
49
- * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
50
- *
51
- * @deprecated
52
- * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
53
- */
54
- export type StormConfig<
55
- TExtensionName extends
56
- keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"],
57
- TExtensionConfig extends
58
- TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]
59
- > = TStormWorkspaceConfig & {
60
- extensions:
61
- | (TStormWorkspaceConfig["extensions"] & {
62
- [extensionName in TExtensionName]: TExtensionConfig;
63
- })
64
- | NonNullable<Record<string, any>>;
65
- };
66
-
67
- /**
68
- * The Storm workspace's configuration object
69
- *
70
- * @remarks
71
- * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
72
- */
73
- export type StormWorkspaceConfig<
74
- TExtensionName extends
75
- keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"],
76
- TExtensionConfig extends
77
- TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]
78
- > = StormConfig<TExtensionName, TExtensionConfig>;
79
-
80
- export const COLOR_KEYS = [
81
- "dark",
82
- "light",
83
- "base",
84
- "brand",
85
- "alternate",
86
- "accent",
87
- "link",
88
- "success",
89
- "help",
90
- "info",
91
- "warning",
92
- "danger",
93
- "fatal",
94
- "positive",
95
- "negative"
96
- ];
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "rootDir": "../..",
6
- "target": "ESNext",
7
- "module": "ESNext",
8
- "lib": ["ESNext"],
9
- "skipLibCheck": true,
10
- "skipDefaultLibCheck": true,
11
- "moduleResolution": "Bundler",
12
- "moduleDetection": "force",
13
- "types": ["node"]
14
- },
15
- "include": ["src/**/*.ts", "bin/**/*.ts", "tsup.config.ts"],
16
- "exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
17
- }
@@ -1,14 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "../../dist/out-tsc",
5
- "module": "commonjs",
6
- "types": ["jest", "node"]
7
- },
8
- "include": [
9
- "jest.config.ts",
10
- "src/**/*.test.ts",
11
- "src/**/*.spec.ts",
12
- "src/**/*.d.ts"
13
- ]
14
- }
package/tsup.config.ts DELETED
@@ -1,18 +0,0 @@
1
- import { defineConfig } from "tsup";
2
-
3
- export default defineConfig([
4
- {
5
- name: "config",
6
- target: "esnext",
7
- entryPoints: ["./src/*.ts"],
8
- format: ["cjs", "esm"],
9
- outDir: "dist",
10
- platform: "neutral",
11
- splitting: true,
12
- clean: false,
13
- dts: true,
14
- sourcemap: false,
15
- tsconfig: "./tsconfig.json",
16
- shims: true,
17
- },
18
- ]);