@powerlines/core 0.0.11 → 0.1.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/dist/{types → constants}/commands.cjs +2 -3
- package/dist/constants/commands.d.cts +5 -0
- package/dist/constants/commands.d.cts.map +1 -0
- package/dist/constants/commands.d.mts +5 -0
- package/dist/constants/commands.d.mts.map +1 -0
- package/dist/{types → constants}/commands.mjs +1 -1
- package/dist/constants/commands.mjs.map +1 -0
- package/dist/{lib/constants → constants}/environments.cjs +2 -3
- package/dist/{lib/constants → constants}/environments.d.cts +1 -1
- package/dist/constants/environments.d.cts.map +1 -0
- package/dist/{lib/constants → constants}/environments.d.mts +1 -1
- package/dist/constants/environments.d.mts.map +1 -0
- package/dist/{lib/constants → constants}/environments.mjs +1 -1
- package/dist/constants/environments.mjs.map +1 -0
- package/dist/{types → constants}/fs.cjs +2 -3
- package/dist/constants/fs.d.cts +7 -0
- package/dist/constants/fs.d.cts.map +1 -0
- package/dist/constants/fs.d.mts +7 -0
- package/dist/constants/fs.d.mts.map +1 -0
- package/dist/{types → constants}/fs.mjs +1 -1
- package/dist/constants/fs.mjs.map +1 -0
- package/dist/{types → constants}/hooks.cjs +2 -3
- package/dist/constants/hooks.d.cts +5 -0
- package/dist/constants/hooks.d.cts.map +1 -0
- package/dist/constants/hooks.d.mts +5 -0
- package/dist/constants/hooks.d.mts.map +1 -0
- package/dist/{types → constants}/hooks.mjs +1 -1
- package/dist/constants/hooks.mjs.map +1 -0
- package/dist/constants/index.cjs +25 -0
- package/dist/constants/index.d.cts +7 -0
- package/dist/constants/index.d.mts +7 -0
- package/dist/constants/index.mjs +8 -0
- package/dist/{lib/constants → constants}/meta.cjs +2 -3
- package/dist/{lib/constants → constants}/meta.d.cts +1 -1
- package/dist/constants/meta.d.cts.map +1 -0
- package/dist/{lib/constants → constants}/meta.d.mts +1 -1
- package/dist/constants/meta.d.mts.map +1 -0
- package/dist/{lib/constants → constants}/meta.mjs +1 -1
- package/dist/constants/meta.mjs.map +1 -0
- package/dist/{types → constants}/plugin.cjs +23 -6
- package/dist/constants/plugin.d.cts +9 -0
- package/dist/constants/plugin.d.cts.map +1 -0
- package/dist/constants/plugin.d.mts +9 -0
- package/dist/constants/plugin.d.mts.map +1 -0
- package/dist/{types → constants}/plugin.mjs +19 -3
- package/dist/constants/plugin.mjs.map +1 -0
- package/dist/index.cjs +0 -26
- package/dist/index.d.cts +6 -8
- package/dist/index.d.mts +6 -8
- package/dist/index.mjs +1 -9
- package/dist/lib/config.cjs +1 -2
- package/dist/lib/entry.cjs +22 -26
- package/dist/lib/entry.d.cts +12 -12
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts +12 -12
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +21 -24
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/index.cjs +0 -10
- package/dist/lib/index.d.cts +1 -3
- package/dist/lib/index.d.mts +1 -3
- package/dist/lib/index.mjs +1 -3
- package/dist/lib/logger.cjs +1 -2
- package/dist/lib/unplugin/helpers.cjs +3 -4
- package/dist/lib/unplugin/helpers.d.cts.map +1 -1
- package/dist/lib/unplugin/helpers.d.mts.map +1 -1
- package/dist/lib/unplugin/helpers.mjs +1 -1
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/module-resolution.cjs +1 -2
- package/dist/lib/unplugin/plugin.cjs +1 -2
- package/dist/lib/utilities/file-header.cjs +1 -2
- package/dist/lib/utilities/file-header.d.cts.map +1 -1
- package/dist/lib/utilities/file-header.d.mts.map +1 -1
- package/dist/lib/utilities/format.cjs +1 -2
- package/dist/lib/utilities/source-file.cjs +1 -2
- package/dist/lib/utilities/source-map.cjs +1 -2
- package/dist/lib/utilities/write-file.cjs +1 -2
- package/dist/plugin-base.cjs +1 -2
- package/dist/plugin-utils/build-helpers.cjs +2 -3
- package/dist/plugin-utils/build-helpers.mjs +1 -1
- package/dist/plugin-utils/context-helpers.cjs +1 -2
- package/dist/plugin-utils/extend.cjs +1 -2
- package/dist/plugin-utils/format-package-json.cjs +1 -2
- package/dist/plugin-utils/get-config-path.cjs +1 -2
- package/dist/plugin-utils/helpers.cjs +6 -8
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +1 -2
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/merge.cjs +1 -2
- package/dist/plugin-utils/modules.cjs +1 -2
- package/dist/plugin-utils/paths.cjs +1 -2
- package/dist/types/commands.d.cts +2 -2
- package/dist/types/commands.d.cts.map +1 -1
- package/dist/types/commands.d.mts +2 -2
- package/dist/types/commands.d.mts.map +1 -1
- package/dist/types/config.d.cts +8 -8
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +8 -8
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/context.d.cts +4 -4
- package/dist/types/context.d.cts.map +1 -1
- package/dist/types/context.d.mts +4 -4
- package/dist/types/context.d.mts.map +1 -1
- package/dist/types/fs.d.cts +5 -8
- package/dist/types/fs.d.cts.map +1 -1
- package/dist/types/fs.d.mts +5 -8
- package/dist/types/fs.d.mts.map +1 -1
- package/dist/types/hooks.d.cts +1 -2
- package/dist/types/hooks.d.cts.map +1 -1
- package/dist/types/hooks.d.mts +1 -2
- package/dist/types/hooks.d.mts.map +1 -1
- package/dist/types/index.d.mts +6 -7
- package/dist/types/plugin.d.cts +2 -4
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -4
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/unplugin.d.cts +6 -8
- package/dist/types/unplugin.d.cts.map +1 -1
- package/dist/types/unplugin.d.mts +6 -8
- package/dist/types/unplugin.d.mts.map +1 -1
- package/package.json +393 -103
- package/dist/lib/config.cjs.map +0 -1
- package/dist/lib/constants/environments.cjs.map +0 -1
- package/dist/lib/constants/environments.d.cts.map +0 -1
- package/dist/lib/constants/environments.d.mts.map +0 -1
- package/dist/lib/constants/environments.mjs.map +0 -1
- package/dist/lib/constants/index.cjs +0 -11
- package/dist/lib/constants/index.d.cts +0 -3
- package/dist/lib/constants/index.d.mts +0 -3
- package/dist/lib/constants/index.mjs +0 -4
- package/dist/lib/constants/meta.cjs.map +0 -1
- package/dist/lib/constants/meta.d.cts.map +0 -1
- package/dist/lib/constants/meta.d.mts.map +0 -1
- package/dist/lib/constants/meta.mjs.map +0 -1
- package/dist/lib/entry.cjs.map +0 -1
- package/dist/lib/logger.cjs.map +0 -1
- package/dist/lib/unplugin/helpers.cjs.map +0 -1
- package/dist/lib/unplugin/module-resolution.cjs.map +0 -1
- package/dist/lib/unplugin/plugin.cjs.map +0 -1
- package/dist/lib/utilities/file-header.cjs.map +0 -1
- package/dist/lib/utilities/format.cjs.map +0 -1
- package/dist/lib/utilities/source-file.cjs.map +0 -1
- package/dist/lib/utilities/source-map.cjs.map +0 -1
- package/dist/lib/utilities/write-file.cjs.map +0 -1
- package/dist/plugin-base.cjs.map +0 -1
- package/dist/plugin-utils/build-helpers.cjs.map +0 -1
- package/dist/plugin-utils/context-helpers.cjs.map +0 -1
- package/dist/plugin-utils/extend.cjs.map +0 -1
- package/dist/plugin-utils/format-package-json.cjs.map +0 -1
- package/dist/plugin-utils/get-config-path.cjs.map +0 -1
- package/dist/plugin-utils/helpers.cjs.map +0 -1
- package/dist/plugin-utils/merge.cjs.map +0 -1
- package/dist/plugin-utils/modules.cjs.map +0 -1
- package/dist/plugin-utils/paths.cjs.map +0 -1
- package/dist/types/api.cjs +0 -0
- package/dist/types/api.mjs +0 -1
- package/dist/types/commands.cjs.map +0 -1
- package/dist/types/commands.mjs.map +0 -1
- package/dist/types/config.cjs +0 -0
- package/dist/types/config.mjs +0 -1
- package/dist/types/context.cjs +0 -0
- package/dist/types/context.mjs +0 -1
- package/dist/types/fs.cjs.map +0 -1
- package/dist/types/fs.mjs.map +0 -1
- package/dist/types/hooks.cjs.map +0 -1
- package/dist/types/hooks.mjs.map +0 -1
- package/dist/types/index.cjs +0 -16
- package/dist/types/index.d.cts +0 -10
- package/dist/types/index.mjs +0 -7
- package/dist/types/plugin.cjs.map +0 -1
- package/dist/types/plugin.mjs.map +0 -1
- package/dist/types/tsconfig.cjs +0 -0
- package/dist/types/tsconfig.mjs +0 -1
- package/dist/types/unplugin.cjs +0 -24
- package/dist/types/unplugin.cjs.map +0 -1
- package/dist/types/unplugin.mjs +0 -22
- package/dist/types/unplugin.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/core",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An internal core package for Powerlines - please use the `powerlines` package for public usage.",
|
|
6
6
|
"homepage": "https://stormsoftware.com",
|
|
@@ -39,164 +39,454 @@
|
|
|
39
39
|
],
|
|
40
40
|
"type": "module",
|
|
41
41
|
"exports": {
|
|
42
|
-
".": {
|
|
42
|
+
".": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/index.d.mts",
|
|
45
|
+
"default": "./dist/index.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/index.d.cts",
|
|
49
|
+
"default": "./dist/index.cjs"
|
|
50
|
+
},
|
|
51
|
+
"default": {
|
|
52
|
+
"types": "./dist/index.d.mts",
|
|
53
|
+
"default": "./dist/index.mjs"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"./index": {
|
|
57
|
+
"import": {
|
|
58
|
+
"types": "./dist/index.d.mts",
|
|
59
|
+
"default": "./dist/index.mjs"
|
|
60
|
+
},
|
|
61
|
+
"require": {
|
|
62
|
+
"types": "./dist/index.d.cts",
|
|
63
|
+
"default": "./dist/index.cjs"
|
|
64
|
+
},
|
|
65
|
+
"default": {
|
|
66
|
+
"types": "./dist/index.d.mts",
|
|
67
|
+
"default": "./dist/index.mjs"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./constants": {
|
|
71
|
+
"import": {
|
|
72
|
+
"types": "./dist/constants/index.d.mts",
|
|
73
|
+
"default": "./dist/constants/index.mjs"
|
|
74
|
+
},
|
|
75
|
+
"require": {
|
|
76
|
+
"types": "./dist/constants/index.d.cts",
|
|
77
|
+
"default": "./dist/constants/index.cjs"
|
|
78
|
+
},
|
|
79
|
+
"default": {
|
|
80
|
+
"types": "./dist/constants/index.d.mts",
|
|
81
|
+
"default": "./dist/constants/index.mjs"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
43
84
|
"./lib": {
|
|
44
|
-
"
|
|
45
|
-
|
|
85
|
+
"import": {
|
|
86
|
+
"types": "./dist/lib/index.d.mts",
|
|
87
|
+
"default": "./dist/lib/index.mjs"
|
|
88
|
+
},
|
|
89
|
+
"require": {
|
|
90
|
+
"types": "./dist/lib/index.d.cts",
|
|
91
|
+
"default": "./dist/lib/index.cjs"
|
|
92
|
+
},
|
|
93
|
+
"default": {
|
|
94
|
+
"types": "./dist/lib/index.d.mts",
|
|
95
|
+
"default": "./dist/lib/index.mjs"
|
|
96
|
+
}
|
|
46
97
|
},
|
|
47
98
|
"./lib/config": {
|
|
48
|
-
"
|
|
49
|
-
|
|
99
|
+
"import": {
|
|
100
|
+
"types": "./dist/lib/config.d.mts",
|
|
101
|
+
"default": "./dist/lib/config.mjs"
|
|
102
|
+
},
|
|
103
|
+
"require": {
|
|
104
|
+
"types": "./dist/lib/config.d.cts",
|
|
105
|
+
"default": "./dist/lib/config.cjs"
|
|
106
|
+
},
|
|
107
|
+
"default": {
|
|
108
|
+
"types": "./dist/lib/config.d.mts",
|
|
109
|
+
"default": "./dist/lib/config.mjs"
|
|
110
|
+
}
|
|
50
111
|
},
|
|
51
112
|
"./lib/constants": {
|
|
52
|
-
"
|
|
53
|
-
|
|
113
|
+
"import": {
|
|
114
|
+
"types": "./dist/lib/constants/index.d.mts",
|
|
115
|
+
"default": "./dist/lib/constants/index.mjs"
|
|
116
|
+
},
|
|
117
|
+
"require": {
|
|
118
|
+
"types": "./dist/lib/constants/index.d.cts",
|
|
119
|
+
"default": "./dist/lib/constants/index.cjs"
|
|
120
|
+
},
|
|
121
|
+
"default": {
|
|
122
|
+
"types": "./dist/lib/constants/index.d.mts",
|
|
123
|
+
"default": "./dist/lib/constants/index.mjs"
|
|
124
|
+
}
|
|
54
125
|
},
|
|
55
126
|
"./lib/constants/environments": {
|
|
56
|
-
"
|
|
57
|
-
|
|
127
|
+
"import": {
|
|
128
|
+
"types": "./dist/lib/constants/environments.d.mts",
|
|
129
|
+
"default": "./dist/lib/constants/environments.mjs"
|
|
130
|
+
},
|
|
131
|
+
"require": {
|
|
132
|
+
"types": "./dist/lib/constants/environments.d.cts",
|
|
133
|
+
"default": "./dist/lib/constants/environments.cjs"
|
|
134
|
+
},
|
|
135
|
+
"default": {
|
|
136
|
+
"types": "./dist/lib/constants/environments.d.mts",
|
|
137
|
+
"default": "./dist/lib/constants/environments.mjs"
|
|
138
|
+
}
|
|
58
139
|
},
|
|
59
140
|
"./lib/constants/meta": {
|
|
60
|
-
"
|
|
61
|
-
|
|
141
|
+
"import": {
|
|
142
|
+
"types": "./dist/lib/constants/meta.d.mts",
|
|
143
|
+
"default": "./dist/lib/constants/meta.mjs"
|
|
144
|
+
},
|
|
145
|
+
"require": {
|
|
146
|
+
"types": "./dist/lib/constants/meta.d.cts",
|
|
147
|
+
"default": "./dist/lib/constants/meta.cjs"
|
|
148
|
+
},
|
|
149
|
+
"default": {
|
|
150
|
+
"types": "./dist/lib/constants/meta.d.mts",
|
|
151
|
+
"default": "./dist/lib/constants/meta.mjs"
|
|
152
|
+
}
|
|
62
153
|
},
|
|
63
154
|
"./lib/entry": {
|
|
64
|
-
"
|
|
65
|
-
|
|
155
|
+
"import": {
|
|
156
|
+
"types": "./dist/lib/entry.d.mts",
|
|
157
|
+
"default": "./dist/lib/entry.mjs"
|
|
158
|
+
},
|
|
159
|
+
"require": {
|
|
160
|
+
"types": "./dist/lib/entry.d.cts",
|
|
161
|
+
"default": "./dist/lib/entry.cjs"
|
|
162
|
+
},
|
|
163
|
+
"default": {
|
|
164
|
+
"types": "./dist/lib/entry.d.mts",
|
|
165
|
+
"default": "./dist/lib/entry.mjs"
|
|
166
|
+
}
|
|
66
167
|
},
|
|
67
168
|
"./lib/logger": {
|
|
68
|
-
"
|
|
69
|
-
|
|
169
|
+
"import": {
|
|
170
|
+
"types": "./dist/lib/logger.d.mts",
|
|
171
|
+
"default": "./dist/lib/logger.mjs"
|
|
172
|
+
},
|
|
173
|
+
"require": {
|
|
174
|
+
"types": "./dist/lib/logger.d.cts",
|
|
175
|
+
"default": "./dist/lib/logger.cjs"
|
|
176
|
+
},
|
|
177
|
+
"default": {
|
|
178
|
+
"types": "./dist/lib/logger.d.mts",
|
|
179
|
+
"default": "./dist/lib/logger.mjs"
|
|
180
|
+
}
|
|
70
181
|
},
|
|
71
182
|
"./lib/unplugin": {
|
|
72
|
-
"
|
|
73
|
-
|
|
183
|
+
"import": {
|
|
184
|
+
"types": "./dist/lib/unplugin/index.d.mts",
|
|
185
|
+
"default": "./dist/lib/unplugin/index.mjs"
|
|
186
|
+
},
|
|
187
|
+
"require": {
|
|
188
|
+
"types": "./dist/lib/unplugin/index.d.cts",
|
|
189
|
+
"default": "./dist/lib/unplugin/index.cjs"
|
|
190
|
+
},
|
|
191
|
+
"default": {
|
|
192
|
+
"types": "./dist/lib/unplugin/index.d.mts",
|
|
193
|
+
"default": "./dist/lib/unplugin/index.mjs"
|
|
194
|
+
}
|
|
74
195
|
},
|
|
75
196
|
"./lib/unplugin/helpers": {
|
|
76
|
-
"
|
|
77
|
-
|
|
197
|
+
"import": {
|
|
198
|
+
"types": "./dist/lib/unplugin/helpers.d.mts",
|
|
199
|
+
"default": "./dist/lib/unplugin/helpers.mjs"
|
|
200
|
+
},
|
|
201
|
+
"require": {
|
|
202
|
+
"types": "./dist/lib/unplugin/helpers.d.cts",
|
|
203
|
+
"default": "./dist/lib/unplugin/helpers.cjs"
|
|
204
|
+
},
|
|
205
|
+
"default": {
|
|
206
|
+
"types": "./dist/lib/unplugin/helpers.d.mts",
|
|
207
|
+
"default": "./dist/lib/unplugin/helpers.mjs"
|
|
208
|
+
}
|
|
78
209
|
},
|
|
79
210
|
"./lib/unplugin/module-resolution": {
|
|
80
|
-
"
|
|
81
|
-
|
|
211
|
+
"import": {
|
|
212
|
+
"types": "./dist/lib/unplugin/module-resolution.d.mts",
|
|
213
|
+
"default": "./dist/lib/unplugin/module-resolution.mjs"
|
|
214
|
+
},
|
|
215
|
+
"require": {
|
|
216
|
+
"types": "./dist/lib/unplugin/module-resolution.d.cts",
|
|
217
|
+
"default": "./dist/lib/unplugin/module-resolution.cjs"
|
|
218
|
+
},
|
|
219
|
+
"default": {
|
|
220
|
+
"types": "./dist/lib/unplugin/module-resolution.d.mts",
|
|
221
|
+
"default": "./dist/lib/unplugin/module-resolution.mjs"
|
|
222
|
+
}
|
|
82
223
|
},
|
|
83
224
|
"./lib/unplugin/plugin": {
|
|
84
|
-
"
|
|
85
|
-
|
|
225
|
+
"import": {
|
|
226
|
+
"types": "./dist/lib/unplugin/plugin.d.mts",
|
|
227
|
+
"default": "./dist/lib/unplugin/plugin.mjs"
|
|
228
|
+
},
|
|
229
|
+
"require": {
|
|
230
|
+
"types": "./dist/lib/unplugin/plugin.d.cts",
|
|
231
|
+
"default": "./dist/lib/unplugin/plugin.cjs"
|
|
232
|
+
},
|
|
233
|
+
"default": {
|
|
234
|
+
"types": "./dist/lib/unplugin/plugin.d.mts",
|
|
235
|
+
"default": "./dist/lib/unplugin/plugin.mjs"
|
|
236
|
+
}
|
|
86
237
|
},
|
|
87
238
|
"./lib/utilities": {
|
|
88
|
-
"
|
|
89
|
-
|
|
239
|
+
"import": {
|
|
240
|
+
"types": "./dist/lib/utilities/index.d.mts",
|
|
241
|
+
"default": "./dist/lib/utilities/index.mjs"
|
|
242
|
+
},
|
|
243
|
+
"require": {
|
|
244
|
+
"types": "./dist/lib/utilities/index.d.cts",
|
|
245
|
+
"default": "./dist/lib/utilities/index.cjs"
|
|
246
|
+
},
|
|
247
|
+
"default": {
|
|
248
|
+
"types": "./dist/lib/utilities/index.d.mts",
|
|
249
|
+
"default": "./dist/lib/utilities/index.mjs"
|
|
250
|
+
}
|
|
90
251
|
},
|
|
91
252
|
"./lib/utilities/file-header": {
|
|
92
|
-
"
|
|
93
|
-
|
|
253
|
+
"import": {
|
|
254
|
+
"types": "./dist/lib/utilities/file-header.d.mts",
|
|
255
|
+
"default": "./dist/lib/utilities/file-header.mjs"
|
|
256
|
+
},
|
|
257
|
+
"require": {
|
|
258
|
+
"types": "./dist/lib/utilities/file-header.d.cts",
|
|
259
|
+
"default": "./dist/lib/utilities/file-header.cjs"
|
|
260
|
+
},
|
|
261
|
+
"default": {
|
|
262
|
+
"types": "./dist/lib/utilities/file-header.d.mts",
|
|
263
|
+
"default": "./dist/lib/utilities/file-header.mjs"
|
|
264
|
+
}
|
|
94
265
|
},
|
|
95
266
|
"./lib/utilities/format": {
|
|
96
|
-
"
|
|
97
|
-
|
|
267
|
+
"import": {
|
|
268
|
+
"types": "./dist/lib/utilities/format.d.mts",
|
|
269
|
+
"default": "./dist/lib/utilities/format.mjs"
|
|
270
|
+
},
|
|
271
|
+
"require": {
|
|
272
|
+
"types": "./dist/lib/utilities/format.d.cts",
|
|
273
|
+
"default": "./dist/lib/utilities/format.cjs"
|
|
274
|
+
},
|
|
275
|
+
"default": {
|
|
276
|
+
"types": "./dist/lib/utilities/format.d.mts",
|
|
277
|
+
"default": "./dist/lib/utilities/format.mjs"
|
|
278
|
+
}
|
|
98
279
|
},
|
|
99
280
|
"./lib/utilities/source-file": {
|
|
100
|
-
"
|
|
101
|
-
|
|
281
|
+
"import": {
|
|
282
|
+
"types": "./dist/lib/utilities/source-file.d.mts",
|
|
283
|
+
"default": "./dist/lib/utilities/source-file.mjs"
|
|
284
|
+
},
|
|
285
|
+
"require": {
|
|
286
|
+
"types": "./dist/lib/utilities/source-file.d.cts",
|
|
287
|
+
"default": "./dist/lib/utilities/source-file.cjs"
|
|
288
|
+
},
|
|
289
|
+
"default": {
|
|
290
|
+
"types": "./dist/lib/utilities/source-file.d.mts",
|
|
291
|
+
"default": "./dist/lib/utilities/source-file.mjs"
|
|
292
|
+
}
|
|
102
293
|
},
|
|
103
294
|
"./lib/utilities/source-map": {
|
|
104
|
-
"
|
|
105
|
-
|
|
295
|
+
"import": {
|
|
296
|
+
"types": "./dist/lib/utilities/source-map.d.mts",
|
|
297
|
+
"default": "./dist/lib/utilities/source-map.mjs"
|
|
298
|
+
},
|
|
299
|
+
"require": {
|
|
300
|
+
"types": "./dist/lib/utilities/source-map.d.cts",
|
|
301
|
+
"default": "./dist/lib/utilities/source-map.cjs"
|
|
302
|
+
},
|
|
303
|
+
"default": {
|
|
304
|
+
"types": "./dist/lib/utilities/source-map.d.mts",
|
|
305
|
+
"default": "./dist/lib/utilities/source-map.mjs"
|
|
306
|
+
}
|
|
106
307
|
},
|
|
107
308
|
"./lib/utilities/write-file": {
|
|
108
|
-
"
|
|
109
|
-
|
|
309
|
+
"import": {
|
|
310
|
+
"types": "./dist/lib/utilities/write-file.d.mts",
|
|
311
|
+
"default": "./dist/lib/utilities/write-file.mjs"
|
|
312
|
+
},
|
|
313
|
+
"require": {
|
|
314
|
+
"types": "./dist/lib/utilities/write-file.d.cts",
|
|
315
|
+
"default": "./dist/lib/utilities/write-file.cjs"
|
|
316
|
+
},
|
|
317
|
+
"default": {
|
|
318
|
+
"types": "./dist/lib/utilities/write-file.d.mts",
|
|
319
|
+
"default": "./dist/lib/utilities/write-file.mjs"
|
|
320
|
+
}
|
|
110
321
|
},
|
|
111
322
|
"./plugin-base": {
|
|
112
|
-
"
|
|
113
|
-
|
|
323
|
+
"import": {
|
|
324
|
+
"types": "./dist/plugin-base.d.mts",
|
|
325
|
+
"default": "./dist/plugin-base.mjs"
|
|
326
|
+
},
|
|
327
|
+
"require": {
|
|
328
|
+
"types": "./dist/plugin-base.d.cts",
|
|
329
|
+
"default": "./dist/plugin-base.cjs"
|
|
330
|
+
},
|
|
331
|
+
"default": {
|
|
332
|
+
"types": "./dist/plugin-base.d.mts",
|
|
333
|
+
"default": "./dist/plugin-base.mjs"
|
|
334
|
+
}
|
|
114
335
|
},
|
|
115
336
|
"./plugin-utils": {
|
|
116
|
-
"
|
|
117
|
-
|
|
337
|
+
"import": {
|
|
338
|
+
"types": "./dist/plugin-utils/index.d.mts",
|
|
339
|
+
"default": "./dist/plugin-utils/index.mjs"
|
|
340
|
+
},
|
|
341
|
+
"require": {
|
|
342
|
+
"types": "./dist/plugin-utils/index.d.cts",
|
|
343
|
+
"default": "./dist/plugin-utils/index.cjs"
|
|
344
|
+
},
|
|
345
|
+
"default": {
|
|
346
|
+
"types": "./dist/plugin-utils/index.d.mts",
|
|
347
|
+
"default": "./dist/plugin-utils/index.mjs"
|
|
348
|
+
}
|
|
118
349
|
},
|
|
119
350
|
"./plugin-utils/build-helpers": {
|
|
120
|
-
"
|
|
121
|
-
|
|
351
|
+
"import": {
|
|
352
|
+
"types": "./dist/plugin-utils/build-helpers.d.mts",
|
|
353
|
+
"default": "./dist/plugin-utils/build-helpers.mjs"
|
|
354
|
+
},
|
|
355
|
+
"require": {
|
|
356
|
+
"types": "./dist/plugin-utils/build-helpers.d.cts",
|
|
357
|
+
"default": "./dist/plugin-utils/build-helpers.cjs"
|
|
358
|
+
},
|
|
359
|
+
"default": {
|
|
360
|
+
"types": "./dist/plugin-utils/build-helpers.d.mts",
|
|
361
|
+
"default": "./dist/plugin-utils/build-helpers.mjs"
|
|
362
|
+
}
|
|
122
363
|
},
|
|
123
364
|
"./plugin-utils/context-helpers": {
|
|
124
|
-
"
|
|
125
|
-
|
|
365
|
+
"import": {
|
|
366
|
+
"types": "./dist/plugin-utils/context-helpers.d.mts",
|
|
367
|
+
"default": "./dist/plugin-utils/context-helpers.mjs"
|
|
368
|
+
},
|
|
369
|
+
"require": {
|
|
370
|
+
"types": "./dist/plugin-utils/context-helpers.d.cts",
|
|
371
|
+
"default": "./dist/plugin-utils/context-helpers.cjs"
|
|
372
|
+
},
|
|
373
|
+
"default": {
|
|
374
|
+
"types": "./dist/plugin-utils/context-helpers.d.mts",
|
|
375
|
+
"default": "./dist/plugin-utils/context-helpers.mjs"
|
|
376
|
+
}
|
|
126
377
|
},
|
|
127
378
|
"./plugin-utils/extend": {
|
|
128
|
-
"
|
|
129
|
-
|
|
379
|
+
"import": {
|
|
380
|
+
"types": "./dist/plugin-utils/extend.d.mts",
|
|
381
|
+
"default": "./dist/plugin-utils/extend.mjs"
|
|
382
|
+
},
|
|
383
|
+
"require": {
|
|
384
|
+
"types": "./dist/plugin-utils/extend.d.cts",
|
|
385
|
+
"default": "./dist/plugin-utils/extend.cjs"
|
|
386
|
+
},
|
|
387
|
+
"default": {
|
|
388
|
+
"types": "./dist/plugin-utils/extend.d.mts",
|
|
389
|
+
"default": "./dist/plugin-utils/extend.mjs"
|
|
390
|
+
}
|
|
130
391
|
},
|
|
131
392
|
"./plugin-utils/format-package-json": {
|
|
132
|
-
"
|
|
133
|
-
|
|
393
|
+
"import": {
|
|
394
|
+
"types": "./dist/plugin-utils/format-package-json.d.mts",
|
|
395
|
+
"default": "./dist/plugin-utils/format-package-json.mjs"
|
|
396
|
+
},
|
|
397
|
+
"require": {
|
|
398
|
+
"types": "./dist/plugin-utils/format-package-json.d.cts",
|
|
399
|
+
"default": "./dist/plugin-utils/format-package-json.cjs"
|
|
400
|
+
},
|
|
401
|
+
"default": {
|
|
402
|
+
"types": "./dist/plugin-utils/format-package-json.d.mts",
|
|
403
|
+
"default": "./dist/plugin-utils/format-package-json.mjs"
|
|
404
|
+
}
|
|
134
405
|
},
|
|
135
406
|
"./plugin-utils/get-config-path": {
|
|
136
|
-
"
|
|
137
|
-
|
|
407
|
+
"import": {
|
|
408
|
+
"types": "./dist/plugin-utils/get-config-path.d.mts",
|
|
409
|
+
"default": "./dist/plugin-utils/get-config-path.mjs"
|
|
410
|
+
},
|
|
411
|
+
"require": {
|
|
412
|
+
"types": "./dist/plugin-utils/get-config-path.d.cts",
|
|
413
|
+
"default": "./dist/plugin-utils/get-config-path.cjs"
|
|
414
|
+
},
|
|
415
|
+
"default": {
|
|
416
|
+
"types": "./dist/plugin-utils/get-config-path.d.mts",
|
|
417
|
+
"default": "./dist/plugin-utils/get-config-path.mjs"
|
|
418
|
+
}
|
|
138
419
|
},
|
|
139
420
|
"./plugin-utils/helpers": {
|
|
140
|
-
"
|
|
141
|
-
|
|
421
|
+
"import": {
|
|
422
|
+
"types": "./dist/plugin-utils/helpers.d.mts",
|
|
423
|
+
"default": "./dist/plugin-utils/helpers.mjs"
|
|
424
|
+
},
|
|
425
|
+
"require": {
|
|
426
|
+
"types": "./dist/plugin-utils/helpers.d.cts",
|
|
427
|
+
"default": "./dist/plugin-utils/helpers.cjs"
|
|
428
|
+
},
|
|
429
|
+
"default": {
|
|
430
|
+
"types": "./dist/plugin-utils/helpers.d.mts",
|
|
431
|
+
"default": "./dist/plugin-utils/helpers.mjs"
|
|
432
|
+
}
|
|
142
433
|
},
|
|
143
434
|
"./plugin-utils/merge": {
|
|
144
|
-
"
|
|
145
|
-
|
|
435
|
+
"import": {
|
|
436
|
+
"types": "./dist/plugin-utils/merge.d.mts",
|
|
437
|
+
"default": "./dist/plugin-utils/merge.mjs"
|
|
438
|
+
},
|
|
439
|
+
"require": {
|
|
440
|
+
"types": "./dist/plugin-utils/merge.d.cts",
|
|
441
|
+
"default": "./dist/plugin-utils/merge.cjs"
|
|
442
|
+
},
|
|
443
|
+
"default": {
|
|
444
|
+
"types": "./dist/plugin-utils/merge.d.mts",
|
|
445
|
+
"default": "./dist/plugin-utils/merge.mjs"
|
|
446
|
+
}
|
|
146
447
|
},
|
|
147
448
|
"./plugin-utils/modules": {
|
|
148
|
-
"
|
|
149
|
-
|
|
449
|
+
"import": {
|
|
450
|
+
"types": "./dist/plugin-utils/modules.d.mts",
|
|
451
|
+
"default": "./dist/plugin-utils/modules.mjs"
|
|
452
|
+
},
|
|
453
|
+
"require": {
|
|
454
|
+
"types": "./dist/plugin-utils/modules.d.cts",
|
|
455
|
+
"default": "./dist/plugin-utils/modules.cjs"
|
|
456
|
+
},
|
|
457
|
+
"default": {
|
|
458
|
+
"types": "./dist/plugin-utils/modules.d.mts",
|
|
459
|
+
"default": "./dist/plugin-utils/modules.mjs"
|
|
460
|
+
}
|
|
150
461
|
},
|
|
151
462
|
"./plugin-utils/paths": {
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"require":
|
|
157
|
-
|
|
463
|
+
"import": {
|
|
464
|
+
"types": "./dist/plugin-utils/paths.d.mts",
|
|
465
|
+
"default": "./dist/plugin-utils/paths.mjs"
|
|
466
|
+
},
|
|
467
|
+
"require": {
|
|
468
|
+
"types": "./dist/plugin-utils/paths.d.cts",
|
|
469
|
+
"default": "./dist/plugin-utils/paths.cjs"
|
|
470
|
+
},
|
|
471
|
+
"default": {
|
|
472
|
+
"types": "./dist/plugin-utils/paths.d.mts",
|
|
473
|
+
"default": "./dist/plugin-utils/paths.mjs"
|
|
474
|
+
}
|
|
158
475
|
},
|
|
159
476
|
"./types/_internal": {
|
|
160
|
-
"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"require":
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
"import": "./dist/types/config.mjs"
|
|
174
|
-
},
|
|
175
|
-
"./types/context": {
|
|
176
|
-
"require": "./dist/types/context.cjs",
|
|
177
|
-
"import": "./dist/types/context.mjs"
|
|
178
|
-
},
|
|
179
|
-
"./types/fs": {
|
|
180
|
-
"require": "./dist/types/fs.cjs",
|
|
181
|
-
"import": "./dist/types/fs.mjs"
|
|
182
|
-
},
|
|
183
|
-
"./types/hooks": {
|
|
184
|
-
"require": "./dist/types/hooks.cjs",
|
|
185
|
-
"import": "./dist/types/hooks.mjs"
|
|
186
|
-
},
|
|
187
|
-
"./types/plugin": {
|
|
188
|
-
"require": "./dist/types/plugin.cjs",
|
|
189
|
-
"import": "./dist/types/plugin.mjs"
|
|
190
|
-
},
|
|
191
|
-
"./types/tsconfig": {
|
|
192
|
-
"require": "./dist/types/tsconfig.cjs",
|
|
193
|
-
"import": "./dist/types/tsconfig.mjs"
|
|
194
|
-
},
|
|
195
|
-
"./types/unplugin": {
|
|
196
|
-
"require": "./dist/types/unplugin.cjs",
|
|
197
|
-
"import": "./dist/types/unplugin.mjs"
|
|
198
|
-
},
|
|
199
|
-
"./*": "./*"
|
|
477
|
+
"import": {
|
|
478
|
+
"types": "./dist/types/_internal.d.mts",
|
|
479
|
+
"default": "./dist/types/_internal.mjs"
|
|
480
|
+
},
|
|
481
|
+
"require": {
|
|
482
|
+
"types": "./dist/types/_internal.d.cts",
|
|
483
|
+
"default": "./dist/types/_internal.cjs"
|
|
484
|
+
},
|
|
485
|
+
"default": {
|
|
486
|
+
"types": "./dist/types/_internal.d.mts",
|
|
487
|
+
"default": "./dist/types/_internal.mjs"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
200
490
|
},
|
|
201
491
|
"main": "./dist/index.cjs",
|
|
202
492
|
"module": "./dist/index.mjs",
|
|
@@ -234,5 +524,5 @@
|
|
|
234
524
|
"typescript": "^5.9.3"
|
|
235
525
|
},
|
|
236
526
|
"publishConfig": { "access": "public" },
|
|
237
|
-
"gitHead": "
|
|
527
|
+
"gitHead": "e63eb5a0ecd0e5ee3e030388ad1c534b3ecb2136"
|
|
238
528
|
}
|
package/dist/lib/config.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","names":["resolvedUserConfig: Partial<ParsedUserConfig>","resolvedUserConfigFile: string | undefined"],"sources":["../../src/lib/config.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getWorkspaceConfig } from \"@storm-software/config-tools/get-config\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { loadConfig as loadConfigC12 } from \"c12\";\nimport defu from \"defu\";\nimport type { Jiti } from \"jiti\";\nimport type {\n ParsedUserConfig,\n PowerlinesCommand,\n UserConfig,\n WorkspaceConfig\n} from \"../types/config\";\nimport { AnyUserConfig } from \"../types/config\";\nimport { Context } from \"../types/context\";\n\nexport type PartiallyResolvedContext<TContext extends Context = Context> = Omit<\n TContext,\n \"config\" | \"tsconfig\" | \"entry\" | \"fs\" | \"compiler\" | \"unimport\"\n> &\n Partial<TContext> & {\n config: TContext[\"config\"];\n };\n\n/**\n * Loads the workspace configuration.\n *\n * @param workspaceRoot - The root directory of the workspace.\n * @param cwd - The current working directory to start searching from.\n * @returns A promise that resolves to the loaded workspace configuration.\n */\nexport async function loadWorkspaceConfig(\n workspaceRoot: string,\n cwd: string\n): Promise<WorkspaceConfig> {\n return defu(\n {\n workspaceRoot\n },\n await getWorkspaceConfig(true, {\n cwd,\n workspaceRoot,\n useDefault: true\n })\n );\n}\n\n/**\n * Loads the user configuration file for the project.\n *\n * @param projectRoot - The root directory of the project.\n * @param workspaceRoot - The root directory of the workspace.\n * @param jiti - An instance of Jiti to resolve modules from\n * @param command - The {@link PowerlinesCommand} string associated with the current running process\n * @param mode - The mode in which the project is running (default is \"production\").\n * @param configFile - An optional path to a specific configuration file.\n * @param framework - The framework name to use for default configuration file names.\n * @returns A promise that resolves to the resolved user configuration.\n */\nexport async function loadUserConfigFile(\n projectRoot: string,\n workspaceRoot: string,\n jiti: Jiti,\n command?: PowerlinesCommand,\n mode = \"production\",\n configFile?: string,\n framework = \"powerlines\"\n): Promise<ParsedUserConfig> {\n let resolvedUserConfig: Partial<ParsedUserConfig> = {};\n\n let resolvedUserConfigFile: string | undefined;\n if (configFile) {\n resolvedUserConfigFile = existsSync(replacePath(configFile, projectRoot))\n ? replacePath(configFile, projectRoot)\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n replacePath(configFile, projectRoot)\n )\n : existsSync(\n joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n )\n ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile)\n : undefined;\n }\n\n if (!resolvedUserConfigFile) {\n resolvedUserConfigFile = existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.${mode}.config.mjs`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.ts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.js`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mts`\n )\n : existsSync(\n joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n )\n ? joinPaths(\n appendPath(projectRoot, workspaceRoot),\n `${framework}.config.mjs`\n )\n : undefined;\n }\n\n if (resolvedUserConfigFile) {\n const resolved = await jiti.import(jiti.esmResolve(resolvedUserConfigFile));\n if (resolved) {\n let config = {};\n if (isFunction(resolved)) {\n config = await Promise.resolve(\n resolved({\n command,\n mode,\n isSsrBuild: false,\n isPreview: false\n })\n );\n }\n\n if (isSetObject(config)) {\n resolvedUserConfig = {\n ...config,\n config: config as UserConfig,\n configFile: resolvedUserConfigFile\n };\n }\n }\n }\n\n const result = await loadConfigC12({\n cwd: projectRoot,\n name: framework,\n envName: mode,\n globalRc: true,\n packageJson: camelCase(framework),\n dotenv: true,\n jiti\n });\n\n return defu(\n resolvedUserConfig,\n isSetObject(result?.config) ? { ...result.config, ...result } : {}\n ) as ParsedUserConfig;\n}\n\n/**\n * A type helper to make it easier to use `powerlines.config.ts` files.\n *\n * @remarks\n * The function accepts a direct {@link AnyUserConfig} object and returns it typed as a {@link UserConfig} object.\n */\nexport function defineConfig(config: AnyUserConfig): UserConfig {\n return config as any;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqDA,eAAsB,oBACpB,eACA,KAC0B;AAC1B,0BACE,EACE,eACD,EACD,uEAAyB,MAAM;EAC7B;EACA;EACA,YAAY;EACb,CAAC,CACH;;;;;;;;;;;;;;AAeH,eAAsB,mBACpB,aACA,eACA,MACA,SACA,OAAO,cACP,YACA,YAAY,cACe;CAC3B,IAAIA,qBAAgD,EAAE;CAEtD,IAAIC;AACJ,KAAI,WACF,oGAAgD,YAAY,YAAY,CAAC,0CACzD,YAAY,YAAY,mHAGnB,aAAa,cAAc,yCAC1B,YAAY,YAAY,CACrC,CACF,gFAEY,aAAa,cAAc,yCAC1B,YAAY,YAAY,CACrC,mHAEwB,aAAa,cAAc,EAAE,WAAW,CAC9D,gFACoB,aAAa,cAAc,EAAE,WAAW,GAC7D;AAGV,KAAI,CAAC,uBACH,0IAEe,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,CACF,gFAEgB,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,YACtB,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,GAAG,KAAK,aACtB,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,YACd,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,mHAGgB,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,CACF,gFAEY,aAAa,cAAc,EACtC,GAAG,UAAU,aACd,GACD;AAGpB,KAAI,wBAAwB;EAC1B,MAAM,WAAW,MAAM,KAAK,OAAO,KAAK,WAAW,uBAAuB,CAAC;AAC3E,MAAI,UAAU;GACZ,IAAI,SAAS,EAAE;AACf,wDAAe,SAAS,CACtB,UAAS,MAAM,QAAQ,QACrB,SAAS;IACP;IACA;IACA,YAAY;IACZ,WAAW;IACZ,CAAC,CACH;AAGH,2DAAgB,OAAO,CACrB,sBAAqB;IACnB,GAAG;IACK;IACR,YAAY;IACb;;;CAKP,MAAM,SAAS,0BAAoB;EACjC,KAAK;EACL,MAAM;EACN,SAAS;EACT,UAAU;EACV,8DAAuB,UAAU;EACjC,QAAQ;EACR;EACD,CAAC;AAEF,0BACE,wEACY,QAAQ,OAAO,GAAG;EAAE,GAAG,OAAO;EAAQ,GAAG;EAAQ,GAAG,EAAE,CACnE;;;;;;;;AASH,SAAgB,aAAa,QAAmC;AAC9D,QAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.cjs","names":[],"sources":["../../../src/lib/constants/environments.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_ENVIRONMENT = \"default\" as const;\nexport const GLOBAL_ENVIRONMENT = \"__global__\" as const;\n\n// General environment names that can be used in plugins and configurations\nexport const CLIENT_ENVIRONMENT = \"client\" as const;\nexport const SERVER_ENVIRONMENT = \"server\" as const;\nexport const SSR_ENVIRONMENT = \"ssr\" as const;\nexport const RSC_ENVIRONMENT = \"rsc\" as const;\n"],"mappings":";;AAkBA,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAGlC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAClC,MAAa,kBAAkB;AAC/B,MAAa,kBAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.d.cts","names":[],"sources":["../../../src/lib/constants/environments.ts"],"sourcesContent":[],"mappings":";cAkBa;AAAA,cACA,kBADwC,EAAA,YAAA;AACxC,cAGA,kBAH0C,EAAA,QAAA;AAG1C,cACA,kBADsC,EAAA,QAAA;AACtC,cACA,eADsC,EAAA,KAAA;AACtC,cACA,eADgC,EAAA,KAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.d.mts","names":[],"sources":["../../../src/lib/constants/environments.ts"],"sourcesContent":[],"mappings":";cAkBa;AAAA,cACA,kBADwC,EAAA,YAAA;AACxC,cAGA,kBAH0C,EAAA,QAAA;AAG1C,cACA,kBADsC,EAAA,QAAA;AACtC,cACA,eADsC,EAAA,KAAA;AACtC,cACA,eADgC,EAAA,KAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"environments.mjs","names":[],"sources":["../../../src/lib/constants/environments.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_ENVIRONMENT = \"default\" as const;\nexport const GLOBAL_ENVIRONMENT = \"__global__\" as const;\n\n// General environment names that can be used in plugins and configurations\nexport const CLIENT_ENVIRONMENT = \"client\" as const;\nexport const SERVER_ENVIRONMENT = \"server\" as const;\nexport const SSR_ENVIRONMENT = \"ssr\" as const;\nexport const RSC_ENVIRONMENT = \"rsc\" as const;\n"],"mappings":";AAkBA,MAAa,sBAAsB;AACnC,MAAa,qBAAqB;AAGlC,MAAa,qBAAqB;AAClC,MAAa,qBAAqB;AAClC,MAAa,kBAAkB;AAC/B,MAAa,kBAAkB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const require_lib_constants_environments = require('./environments.cjs');
|
|
2
|
-
const require_lib_constants_meta = require('./meta.cjs');
|
|
3
|
-
|
|
4
|
-
exports.CACHE_HASH_LENGTH = require_lib_constants_meta.CACHE_HASH_LENGTH;
|
|
5
|
-
exports.CLIENT_ENVIRONMENT = require_lib_constants_environments.CLIENT_ENVIRONMENT;
|
|
6
|
-
exports.DEFAULT_ENVIRONMENT = require_lib_constants_environments.DEFAULT_ENVIRONMENT;
|
|
7
|
-
exports.GLOBAL_ENVIRONMENT = require_lib_constants_environments.GLOBAL_ENVIRONMENT;
|
|
8
|
-
exports.ROOT_HASH_LENGTH = require_lib_constants_meta.ROOT_HASH_LENGTH;
|
|
9
|
-
exports.RSC_ENVIRONMENT = require_lib_constants_environments.RSC_ENVIRONMENT;
|
|
10
|
-
exports.SERVER_ENVIRONMENT = require_lib_constants_environments.SERVER_ENVIRONMENT;
|
|
11
|
-
exports.SSR_ENVIRONMENT = require_lib_constants_environments.SSR_ENVIRONMENT;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT } from "./environments.cjs";
|
|
2
|
-
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.cjs";
|
|
3
|
-
export { CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT } from "./environments.mjs";
|
|
2
|
-
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.mjs";
|
|
3
|
-
export { CACHE_HASH_LENGTH, CLIENT_ENVIRONMENT, DEFAULT_ENVIRONMENT, GLOBAL_ENVIRONMENT, ROOT_HASH_LENGTH, RSC_ENVIRONMENT, SERVER_ENVIRONMENT, SSR_ENVIRONMENT };
|