@powerlines/plugin-webpack 0.5.132 → 0.5.133

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 (130) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  2. package/dist/helpers/index.cjs +2 -3
  3. package/dist/helpers/index.d.cts +1 -3
  4. package/dist/helpers/index.d.mts +1 -3
  5. package/dist/helpers/index.mjs +1 -2
  6. package/dist/helpers/unplugin.cjs +11 -2
  7. package/dist/helpers/unplugin.d.cts +6 -2
  8. package/dist/helpers/unplugin.d.mts +6 -2
  9. package/dist/helpers/unplugin.mjs +9 -1
  10. package/dist/index.cjs +8 -50
  11. package/dist/index.d.cts +3 -4
  12. package/dist/index.d.mts +5 -5
  13. package/dist/index.mjs +3 -46
  14. package/dist/powerlines/schemas/fs.cjs +226 -0
  15. package/dist/powerlines/schemas/fs.mjs +224 -0
  16. package/dist/powerlines/src/api.cjs +580 -0
  17. package/dist/powerlines/src/api.mjs +578 -0
  18. package/dist/powerlines/src/internal/babel/module-resolver-plugin.cjs +86 -0
  19. package/dist/powerlines/src/internal/babel/module-resolver-plugin.mjs +84 -0
  20. package/dist/powerlines/src/internal/helpers/environment.cjs +52 -0
  21. package/dist/powerlines/src/internal/helpers/environment.mjs +48 -0
  22. package/dist/powerlines/src/internal/helpers/generate-types.cjs +51 -0
  23. package/dist/powerlines/src/internal/helpers/generate-types.mjs +49 -0
  24. package/dist/powerlines/src/internal/helpers/hooks.cjs +63 -0
  25. package/dist/powerlines/src/internal/helpers/hooks.mjs +61 -0
  26. package/dist/powerlines/src/internal/helpers/install-dependencies.cjs +25 -0
  27. package/dist/powerlines/src/internal/helpers/install-dependencies.mjs +24 -0
  28. package/dist/powerlines/src/internal/helpers/install.cjs +37 -0
  29. package/dist/powerlines/src/internal/helpers/install.mjs +36 -0
  30. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.cjs +98 -0
  31. package/dist/powerlines/src/internal/helpers/resolve-tsconfig.mjs +94 -0
  32. package/dist/powerlines/src/internal/helpers/resolver.cjs +43 -0
  33. package/dist/powerlines/src/internal/helpers/resolver.mjs +41 -0
  34. package/dist/powerlines/src/lib/build/webpack.cjs +47 -0
  35. package/dist/powerlines/src/lib/build/webpack.mjs +45 -0
  36. package/dist/powerlines/src/lib/config-file.cjs +79 -0
  37. package/dist/powerlines/src/lib/config-file.mjs +76 -0
  38. package/dist/powerlines/src/lib/contexts/api-context.cjs +184 -0
  39. package/dist/powerlines/src/lib/contexts/api-context.mjs +182 -0
  40. package/dist/powerlines/src/lib/contexts/context.cjs +933 -0
  41. package/dist/powerlines/src/lib/contexts/context.mjs +931 -0
  42. package/dist/powerlines/src/lib/contexts/environment-context.cjs +160 -0
  43. package/dist/powerlines/src/lib/contexts/environment-context.mjs +159 -0
  44. package/dist/powerlines/src/lib/contexts/plugin-context.cjs +75 -0
  45. package/dist/powerlines/src/lib/contexts/plugin-context.mjs +74 -0
  46. package/dist/powerlines/src/lib/entry.cjs +69 -0
  47. package/dist/powerlines/src/lib/entry.mjs +67 -0
  48. package/dist/powerlines/src/lib/fs/helpers.cjs +85 -0
  49. package/dist/powerlines/src/lib/fs/helpers.mjs +81 -0
  50. package/dist/powerlines/src/lib/fs/storage/base.cjs +196 -0
  51. package/dist/powerlines/src/lib/fs/storage/base.mjs +195 -0
  52. package/dist/powerlines/src/lib/fs/storage/file-system.cjs +170 -0
  53. package/dist/powerlines/src/lib/fs/storage/file-system.mjs +169 -0
  54. package/dist/powerlines/src/lib/fs/storage/virtual.cjs +88 -0
  55. package/dist/powerlines/src/lib/fs/storage/virtual.mjs +87 -0
  56. package/dist/powerlines/src/lib/fs/vfs.cjs +830 -0
  57. package/dist/powerlines/src/lib/fs/vfs.mjs +828 -0
  58. package/dist/powerlines/src/lib/logger.cjs +58 -0
  59. package/dist/powerlines/src/lib/logger.mjs +55 -0
  60. package/dist/powerlines/src/lib/typescript/ts-morph.cjs +104 -0
  61. package/dist/powerlines/src/lib/typescript/ts-morph.mjs +102 -0
  62. package/dist/powerlines/src/lib/typescript/tsconfig.cjs +149 -0
  63. package/dist/powerlines/src/lib/typescript/tsconfig.mjs +144 -0
  64. package/dist/powerlines/src/lib/unplugin/factory.cjs +6 -0
  65. package/dist/powerlines/src/lib/unplugin/factory.mjs +8 -0
  66. package/dist/powerlines/src/lib/unplugin/helpers.cjs +17 -0
  67. package/dist/powerlines/src/lib/unplugin/helpers.mjs +16 -0
  68. package/dist/powerlines/src/lib/unplugin/index.cjs +3 -0
  69. package/dist/powerlines/src/lib/unplugin/index.mjs +5 -0
  70. package/dist/powerlines/src/lib/unplugin/plugin.cjs +128 -0
  71. package/dist/powerlines/src/lib/unplugin/plugin.mjs +127 -0
  72. package/dist/powerlines/src/lib/utilities/file-header.cjs +22 -0
  73. package/dist/powerlines/src/lib/utilities/file-header.mjs +21 -0
  74. package/dist/powerlines/src/lib/utilities/meta.cjs +45 -0
  75. package/dist/powerlines/src/lib/utilities/meta.mjs +41 -0
  76. package/dist/powerlines/src/lib/utilities/source-file.cjs +22 -0
  77. package/dist/powerlines/src/lib/utilities/source-file.mjs +21 -0
  78. package/dist/powerlines/src/plugin-utils/helpers.cjs +148 -0
  79. package/dist/powerlines/src/plugin-utils/helpers.mjs +138 -0
  80. package/dist/powerlines/src/plugin-utils/paths.cjs +36 -0
  81. package/dist/powerlines/src/plugin-utils/paths.mjs +35 -0
  82. package/dist/powerlines/src/types/babel.d.mts +4 -0
  83. package/dist/powerlines/src/types/build.cjs +15 -0
  84. package/dist/powerlines/src/types/build.d.cts +149 -0
  85. package/dist/powerlines/src/types/build.d.mts +149 -0
  86. package/dist/powerlines/src/types/build.mjs +14 -0
  87. package/dist/powerlines/src/types/commands.cjs +16 -0
  88. package/dist/powerlines/src/types/commands.d.cts +8 -0
  89. package/dist/powerlines/src/types/commands.d.mts +9 -0
  90. package/dist/powerlines/src/types/commands.mjs +15 -0
  91. package/dist/powerlines/src/types/config.d.cts +377 -0
  92. package/dist/powerlines/src/types/config.d.mts +378 -0
  93. package/dist/powerlines/src/types/context.d.cts +403 -0
  94. package/dist/powerlines/src/types/context.d.mts +405 -0
  95. package/dist/powerlines/src/types/fs.d.cts +486 -0
  96. package/dist/powerlines/src/types/fs.d.mts +486 -0
  97. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  98. package/dist/powerlines/src/types/plugin.cjs +32 -0
  99. package/dist/powerlines/src/types/plugin.d.cts +231 -0
  100. package/dist/powerlines/src/types/plugin.d.mts +231 -0
  101. package/dist/powerlines/src/types/plugin.mjs +31 -0
  102. package/dist/powerlines/src/types/resolved.d.cts +82 -0
  103. package/dist/powerlines/src/types/resolved.d.mts +83 -0
  104. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  105. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  106. package/dist/types/index.cjs +0 -2
  107. package/dist/types/index.d.cts +1 -2
  108. package/dist/types/index.d.mts +1 -2
  109. package/dist/types/index.mjs +0 -3
  110. package/dist/types/plugin.cjs +0 -1
  111. package/dist/types/plugin.d.cts +12 -1
  112. package/dist/types/plugin.d.mts +12 -1
  113. package/dist/types/plugin.mjs +0 -2
  114. package/package.json +5 -5
  115. package/dist/helpers-B15z10jN.mjs +0 -1
  116. package/dist/helpers-LF26RHol.cjs +0 -0
  117. package/dist/index-9iG2qHLe.d.mts +0 -1
  118. package/dist/index-D4ELpJXS.d.cts +0 -1
  119. package/dist/index-D6CnpA_r.d.cts +0 -1
  120. package/dist/index-DL0uimUT.d.mts +0 -1
  121. package/dist/plugin-C5bG6Zu0.d.mts +0 -1772
  122. package/dist/plugin-Cl1J-dKa.d.cts +0 -1769
  123. package/dist/plugin-ifZVa20V.mjs +0 -1
  124. package/dist/plugin-pBKbb5K9.cjs +0 -0
  125. package/dist/types-U3zd8PTP.mjs +0 -1
  126. package/dist/types-o3zWarRp.cjs +0 -0
  127. package/dist/unplugin-Bo9KoKSB.d.cts +0 -7
  128. package/dist/unplugin-Ct4wZxE5.d.mts +0 -7
  129. package/dist/unplugin-GJmHohOE.mjs +0 -4617
  130. package/dist/unplugin-bKYETUU8.cjs +0 -4661
@@ -0,0 +1,224 @@
1
+ import * as $ from "@stryke/capnp";
2
+
3
+ //#region ../powerlines/schemas/fs.ts
4
+ var FileMetadata_KeyValuePair = class extends $.Struct {
5
+ static _capnp = {
6
+ displayName: "KeyValuePair",
7
+ id: "eabb26cf58b2a14c",
8
+ size: new $.ObjectSize(0, 2)
9
+ };
10
+ get key() {
11
+ return $.utils.getText(0, this);
12
+ }
13
+ set key(value) {
14
+ $.utils.setText(0, value, this);
15
+ }
16
+ get value() {
17
+ return $.utils.getText(1, this);
18
+ }
19
+ set value(value) {
20
+ $.utils.setText(1, value, this);
21
+ }
22
+ toString() {
23
+ return "FileMetadata_KeyValuePair_" + super.toString();
24
+ }
25
+ };
26
+ /**
27
+ * The identifier for the file data.
28
+ *
29
+ */
30
+ var FileMetadata = class FileMetadata extends $.Struct {
31
+ static KeyValuePair = FileMetadata_KeyValuePair;
32
+ static _capnp = {
33
+ displayName: "FileMetadata",
34
+ id: "8e2cab5d7e28c7b3",
35
+ size: new $.ObjectSize(8, 3),
36
+ defaultType: "normal"
37
+ };
38
+ static _Properties;
39
+ /**
40
+ * The type of the file.
41
+ *
42
+ */
43
+ get id() {
44
+ return $.utils.getText(0, this);
45
+ }
46
+ set id(value) {
47
+ $.utils.setText(0, value, this);
48
+ }
49
+ /**
50
+ * The timestamp representing the file's creation date.
51
+ *
52
+ */
53
+ get type() {
54
+ return $.utils.getText(1, this, FileMetadata._capnp.defaultType);
55
+ }
56
+ set type(value) {
57
+ $.utils.setText(1, value, this);
58
+ }
59
+ /**
60
+ * Additional metadata associated with the file.
61
+ *
62
+ */
63
+ get timestamp() {
64
+ return $.utils.getUint32(0, this);
65
+ }
66
+ set timestamp(value) {
67
+ $.utils.setUint32(0, value, this);
68
+ }
69
+ _adoptProperties(value) {
70
+ $.utils.adopt(value, $.utils.getPointer(2, this));
71
+ }
72
+ _disownProperties() {
73
+ return $.utils.disown(this.properties);
74
+ }
75
+ get properties() {
76
+ return $.utils.getList(2, FileMetadata._Properties, this);
77
+ }
78
+ _hasProperties() {
79
+ return !$.utils.isNull($.utils.getPointer(2, this));
80
+ }
81
+ _initProperties(length) {
82
+ return $.utils.initList(2, FileMetadata._Properties, length, this);
83
+ }
84
+ set properties(value) {
85
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
86
+ }
87
+ toString() {
88
+ return "FileMetadata_" + super.toString();
89
+ }
90
+ };
91
+ /**
92
+ * An identifier for the file.
93
+ *
94
+ */
95
+ var FileId = class extends $.Struct {
96
+ static _capnp = {
97
+ displayName: "FileId",
98
+ id: "990d6a471072f997",
99
+ size: new $.ObjectSize(0, 2)
100
+ };
101
+ /**
102
+ * A virtual (or actual) path to the file in the file system.
103
+ *
104
+ */
105
+ get id() {
106
+ return $.utils.getText(0, this);
107
+ }
108
+ set id(value) {
109
+ $.utils.setText(0, value, this);
110
+ }
111
+ get path() {
112
+ return $.utils.getText(1, this);
113
+ }
114
+ set path(value) {
115
+ $.utils.setText(1, value, this);
116
+ }
117
+ toString() {
118
+ return "FileId_" + super.toString();
119
+ }
120
+ };
121
+ /**
122
+ * An identifier for the file.
123
+ *
124
+ */
125
+ var FileStorage = class extends $.Struct {
126
+ static _capnp = {
127
+ displayName: "FileStorage",
128
+ id: "9dca66ac858c9ebe",
129
+ size: new $.ObjectSize(0, 2)
130
+ };
131
+ /**
132
+ * A virtual (or actual) path to the file in the file system.
133
+ *
134
+ */
135
+ get path() {
136
+ return $.utils.getText(0, this);
137
+ }
138
+ set path(value) {
139
+ $.utils.setText(0, value, this);
140
+ }
141
+ get code() {
142
+ return $.utils.getText(1, this);
143
+ }
144
+ set code(value) {
145
+ $.utils.setText(1, value, this);
146
+ }
147
+ toString() {
148
+ return "FileStorage_" + super.toString();
149
+ }
150
+ };
151
+ var FileSystem = class FileSystem extends $.Struct {
152
+ static _capnp = {
153
+ displayName: "FileSystem",
154
+ id: "ae0c23d43e56abcf",
155
+ size: new $.ObjectSize(0, 3)
156
+ };
157
+ static _Ids;
158
+ static _Storage;
159
+ static _Metadata;
160
+ _adoptIds(value) {
161
+ $.utils.adopt(value, $.utils.getPointer(0, this));
162
+ }
163
+ _disownIds() {
164
+ return $.utils.disown(this.ids);
165
+ }
166
+ get ids() {
167
+ return $.utils.getList(0, FileSystem._Ids, this);
168
+ }
169
+ _hasIds() {
170
+ return !$.utils.isNull($.utils.getPointer(0, this));
171
+ }
172
+ _initIds(length) {
173
+ return $.utils.initList(0, FileSystem._Ids, length, this);
174
+ }
175
+ set ids(value) {
176
+ $.utils.copyFrom(value, $.utils.getPointer(0, this));
177
+ }
178
+ _adoptStorage(value) {
179
+ $.utils.adopt(value, $.utils.getPointer(1, this));
180
+ }
181
+ _disownStorage() {
182
+ return $.utils.disown(this.storage);
183
+ }
184
+ get storage() {
185
+ return $.utils.getList(1, FileSystem._Storage, this);
186
+ }
187
+ _hasStorage() {
188
+ return !$.utils.isNull($.utils.getPointer(1, this));
189
+ }
190
+ _initStorage(length) {
191
+ return $.utils.initList(1, FileSystem._Storage, length, this);
192
+ }
193
+ set storage(value) {
194
+ $.utils.copyFrom(value, $.utils.getPointer(1, this));
195
+ }
196
+ _adoptMetadata(value) {
197
+ $.utils.adopt(value, $.utils.getPointer(2, this));
198
+ }
199
+ _disownMetadata() {
200
+ return $.utils.disown(this.metadata);
201
+ }
202
+ get metadata() {
203
+ return $.utils.getList(2, FileSystem._Metadata, this);
204
+ }
205
+ _hasMetadata() {
206
+ return !$.utils.isNull($.utils.getPointer(2, this));
207
+ }
208
+ _initMetadata(length) {
209
+ return $.utils.initList(2, FileSystem._Metadata, length, this);
210
+ }
211
+ set metadata(value) {
212
+ $.utils.copyFrom(value, $.utils.getPointer(2, this));
213
+ }
214
+ toString() {
215
+ return "FileSystem_" + super.toString();
216
+ }
217
+ };
218
+ FileMetadata._Properties = $.CompositeList(FileMetadata_KeyValuePair);
219
+ FileSystem._Ids = $.CompositeList(FileId);
220
+ FileSystem._Storage = $.CompositeList(FileStorage);
221
+ FileSystem._Metadata = $.CompositeList(FileMetadata);
222
+
223
+ //#endregion
224
+ export { FileSystem };