@powerlines/plugin-style-dictionary 0.1.97 → 0.1.98
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/dist/powerlines/src/types/config.d.cts +1 -1
- package/dist/powerlines/src/types/config.d.mts +1 -1
- package/dist/powerlines/src/types/context.d.cts +13 -10
- package/dist/powerlines/src/types/context.d.mts +13 -10
- package/dist/powerlines/src/types/fs.d.cts +2 -2
- package/dist/powerlines/src/types/fs.d.mts +2 -2
- package/dist/powerlines/src/types/resolved.d.cts +1 -1
- package/dist/powerlines/src/types/resolved.d.mts +1 -1
- package/package.json +5 -5
|
@@ -5,10 +5,10 @@ import { PluginContext } from "./context.cjs";
|
|
|
5
5
|
import { Plugin } from "./plugin.cjs";
|
|
6
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
7
7
|
import { PreviewOptions } from "vite";
|
|
8
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
9
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
10
9
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
11
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
11
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
12
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
13
13
|
|
|
14
14
|
//#region ../powerlines/src/types/config.d.ts
|
|
@@ -7,9 +7,9 @@ import { Plugin } from "./plugin.mjs";
|
|
|
7
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
8
|
import { MaybePromise } from "@stryke/types/base";
|
|
9
9
|
import { PreviewOptions } from "vite";
|
|
10
|
-
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
11
10
|
import { Format } from "@storm-software/build-tools/types";
|
|
12
11
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
|
+
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
13
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
@@ -6,7 +6,6 @@ import { NonUndefined } from "@stryke/types/base";
|
|
|
6
6
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
7
7
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
8
8
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
9
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
10
9
|
import { PackageJson } from "@stryke/types/package-json";
|
|
11
10
|
import { Jiti } from "jiti";
|
|
12
11
|
import { SourceMap } from "magic-string";
|
|
@@ -50,6 +49,9 @@ interface TransformResult$1 {
|
|
|
50
49
|
code: string;
|
|
51
50
|
map: SourceMap | null;
|
|
52
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Options for initializing or updating the context with new configuration values
|
|
54
|
+
*/
|
|
53
55
|
interface InitContextOptions {
|
|
54
56
|
/**
|
|
55
57
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -58,27 +60,28 @@ interface InitContextOptions {
|
|
|
58
60
|
*/
|
|
59
61
|
isHighPriority: boolean;
|
|
60
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
65
|
+
*/
|
|
61
66
|
interface FetchOptions extends FetchRequestOptions {
|
|
62
67
|
/**
|
|
63
68
|
* An indicator specifying that the request should bypass any caching
|
|
64
69
|
*/
|
|
65
70
|
skipCache?: boolean;
|
|
66
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
74
|
+
*/
|
|
67
75
|
interface ParseOptions extends ParserOptions {
|
|
68
76
|
/**
|
|
69
77
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
70
78
|
*/
|
|
71
79
|
allowReturnOutsideFunction?: boolean;
|
|
72
80
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
* @remarks
|
|
78
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
79
|
-
*/
|
|
80
|
-
name?: TypeDefinition["name"];
|
|
81
|
-
}
|
|
81
|
+
/**
|
|
82
|
+
* Options for emitting entry virtual files
|
|
83
|
+
*/
|
|
84
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
82
85
|
/**
|
|
83
86
|
* The unresolved Powerlines context.
|
|
84
87
|
*
|
|
@@ -8,7 +8,6 @@ import { NonUndefined } from "@stryke/types/base";
|
|
|
8
8
|
import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
|
|
9
9
|
import { EnvPaths } from "@stryke/env/get-env-paths";
|
|
10
10
|
import { FetchRequestOptions } from "@stryke/http/fetch";
|
|
11
|
-
import { TypeDefinition } from "@stryke/types/configuration";
|
|
12
11
|
import { PackageJson } from "@stryke/types/package-json";
|
|
13
12
|
import { Jiti } from "jiti";
|
|
14
13
|
import { SourceMap } from "magic-string";
|
|
@@ -52,6 +51,9 @@ interface TransformResult$1 {
|
|
|
52
51
|
code: string;
|
|
53
52
|
map: SourceMap | null;
|
|
54
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Options for initializing or updating the context with new configuration values
|
|
56
|
+
*/
|
|
55
57
|
interface InitContextOptions {
|
|
56
58
|
/**
|
|
57
59
|
* If false, the plugin will be loaded after all other plugins.
|
|
@@ -60,27 +62,28 @@ interface InitContextOptions {
|
|
|
60
62
|
*/
|
|
61
63
|
isHighPriority: boolean;
|
|
62
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Options for fetch requests made via the context's {@link Context.fetch} method
|
|
67
|
+
*/
|
|
63
68
|
interface FetchOptions extends FetchRequestOptions {
|
|
64
69
|
/**
|
|
65
70
|
* An indicator specifying that the request should bypass any caching
|
|
66
71
|
*/
|
|
67
72
|
skipCache?: boolean;
|
|
68
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
|
|
76
|
+
*/
|
|
69
77
|
interface ParseOptions extends ParserOptions {
|
|
70
78
|
/**
|
|
71
79
|
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
72
80
|
*/
|
|
73
81
|
allowReturnOutsideFunction?: boolean;
|
|
74
82
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* @remarks
|
|
80
|
-
* If no value is provided, we will attempt to infer the type definition from the module's `default` export.
|
|
81
|
-
*/
|
|
82
|
-
name?: TypeDefinition["name"];
|
|
83
|
-
}
|
|
83
|
+
/**
|
|
84
|
+
* Options for emitting entry virtual files
|
|
85
|
+
*/
|
|
86
|
+
type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
|
|
84
87
|
/**
|
|
85
88
|
* The unresolved Powerlines context.
|
|
86
89
|
*
|
|
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
|
|
|
164
164
|
/**
|
|
165
165
|
* Additional metadata associated with the file.
|
|
166
166
|
*/
|
|
167
|
-
properties: Record<string, string>;
|
|
167
|
+
properties: Record<string, string | undefined>;
|
|
168
168
|
}
|
|
169
169
|
interface VirtualFileData {
|
|
170
170
|
/**
|
|
@@ -188,7 +188,7 @@ interface VirtualFileData {
|
|
|
188
188
|
/**
|
|
189
189
|
* Additional metadata associated with the file.
|
|
190
190
|
*/
|
|
191
|
-
properties?: Record<string, string>;
|
|
191
|
+
properties?: Record<string, string | undefined>;
|
|
192
192
|
}
|
|
193
193
|
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
194
194
|
/**
|
|
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
|
|
|
164
164
|
/**
|
|
165
165
|
* Additional metadata associated with the file.
|
|
166
166
|
*/
|
|
167
|
-
properties: Record<string, string>;
|
|
167
|
+
properties: Record<string, string | undefined>;
|
|
168
168
|
}
|
|
169
169
|
interface VirtualFileData {
|
|
170
170
|
/**
|
|
@@ -188,7 +188,7 @@ interface VirtualFileData {
|
|
|
188
188
|
/**
|
|
189
189
|
* Additional metadata associated with the file.
|
|
190
190
|
*/
|
|
191
|
-
properties?: Record<string, string>;
|
|
191
|
+
properties?: Record<string, string | undefined>;
|
|
192
192
|
}
|
|
193
193
|
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
194
194
|
/**
|
|
@@ -9,7 +9,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
9
9
|
/**
|
|
10
10
|
* The user provided entry point in the source code
|
|
11
11
|
*/
|
|
12
|
-
input
|
|
12
|
+
input?: TypeDefinition;
|
|
13
13
|
/**
|
|
14
14
|
* An optional name to use in the package export during the build process
|
|
15
15
|
*/
|
|
@@ -10,7 +10,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
10
10
|
/**
|
|
11
11
|
* The user provided entry point in the source code
|
|
12
12
|
*/
|
|
13
|
-
input
|
|
13
|
+
input?: TypeDefinition;
|
|
14
14
|
/**
|
|
15
15
|
* An optional name to use in the package export during the build process
|
|
16
16
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-style-dictionary",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.98",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to generate project code with Style Dictionary.",
|
|
6
6
|
"repository": {
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
"@stryke/types": "^0.10.28",
|
|
128
128
|
"defu": "^6.1.4",
|
|
129
129
|
"jiti": "^2.6.1",
|
|
130
|
-
"powerlines": "^0.
|
|
130
|
+
"powerlines": "^0.35.0",
|
|
131
131
|
"style-dictionary": "^5.1.1"
|
|
132
132
|
},
|
|
133
133
|
"devDependencies": {
|
|
134
|
-
"@powerlines/nx": "^0.11.
|
|
135
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
134
|
+
"@powerlines/nx": "^0.11.23",
|
|
135
|
+
"@powerlines/plugin-plugin": "^0.12.44",
|
|
136
136
|
"@types/node": "^24.10.4"
|
|
137
137
|
},
|
|
138
138
|
"publishConfig": { "access": "public" },
|
|
139
|
-
"gitHead": "
|
|
139
|
+
"gitHead": "b2222b4984e94db4850cdeda830206c8f1946395"
|
|
140
140
|
}
|