powerlines 0.37.45 → 0.37.47
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/api.cjs +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.js +3 -3
- package/dist/{chunk-S4AJRQ5B.cjs → chunk-4XDVSEE2.cjs} +5 -5
- package/dist/{chunk-HOMG6EO2.js → chunk-CKXP54I6.js} +3 -3
- package/dist/{chunk-RHUW2TOW.js → chunk-DEAJQDDU.js} +31 -41
- package/dist/{chunk-QYA2KUZD.js → chunk-ISOOAVAT.js} +3 -3
- package/dist/{chunk-HBN3FBUW.cjs → chunk-IXDPZ3QQ.cjs} +4 -4
- package/dist/{chunk-7YZHCI6R.cjs → chunk-S2A5ZWMG.cjs} +31 -41
- package/dist/chunk-SIUG3NKT.cjs +12 -0
- package/dist/{chunk-6RPSOJAZ.js → chunk-U3M4S77K.js} +3 -3
- package/dist/{chunk-3LYYE5EN.js → chunk-VRI7WXQN.js} +3 -3
- package/dist/chunk-XALI3N25.cjs +12 -0
- package/dist/{chunk-55YNSLNB.js → chunk-YWHUGWY2.js} +3 -3
- package/dist/{chunk-LA5XXKM6.cjs → chunk-ZPLPCEUE.cjs} +4 -4
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.js +2 -2
- package/dist/index.cjs +10 -10
- package/dist/index.js +2 -2
- package/dist/lib/build/index.cjs +18 -18
- package/dist/lib/build/index.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/{chunk-MGJPUTU6.js → chunk-2732YXPC.js} +5 -5
- package/dist/lib/{chunk-MGJPUTU6.js.map → chunk-2732YXPC.js.map} +1 -1
- package/dist/lib/{chunk-EQRUYU2S.cjs → chunk-2XCDEMMO.cjs} +26 -34
- package/dist/lib/chunk-2XCDEMMO.cjs.map +1 -0
- package/dist/lib/{chunk-YGFZHAZB.cjs → chunk-627VNI3Z.cjs} +19 -19
- package/dist/lib/{chunk-YGFZHAZB.cjs.map → chunk-627VNI3Z.cjs.map} +1 -1
- package/dist/lib/{chunk-SLC5EL2C.js → chunk-AQYI4GOY.js} +3 -3
- package/dist/lib/{chunk-SLC5EL2C.js.map → chunk-AQYI4GOY.js.map} +1 -1
- package/dist/lib/{chunk-RHPNB53E.cjs → chunk-EBKZTBPV.cjs} +9 -11
- package/dist/lib/chunk-EBKZTBPV.cjs.map +1 -0
- package/dist/lib/{chunk-GQXUYZDF.js → chunk-G5TFYDUA.js} +7 -9
- package/dist/lib/chunk-G5TFYDUA.js.map +1 -0
- package/dist/lib/{chunk-FSSYT5DT.cjs → chunk-M7JEEGQP.cjs} +3 -3
- package/dist/lib/{chunk-FSSYT5DT.cjs.map → chunk-M7JEEGQP.cjs.map} +1 -1
- package/dist/lib/{chunk-RDH2EJ5I.cjs → chunk-PQ2CFRMY.cjs} +7 -7
- package/dist/lib/{chunk-RDH2EJ5I.cjs.map → chunk-PQ2CFRMY.cjs.map} +1 -1
- package/dist/lib/{chunk-KQKA4HWJ.js → chunk-Q2QRAPBA.js} +5 -5
- package/dist/lib/{chunk-KQKA4HWJ.js.map → chunk-Q2QRAPBA.js.map} +1 -1
- package/dist/lib/{chunk-ABT2BGDN.js → chunk-VZCNKJBT.js} +26 -34
- package/dist/lib/chunk-VZCNKJBT.js.map +1 -0
- package/dist/lib/{chunk-CMAHCKYS.js → chunk-XEGDDR7H.js} +3 -3
- package/dist/lib/{chunk-CMAHCKYS.js.map → chunk-XEGDDR7H.js.map} +1 -1
- package/dist/lib/{chunk-NYKVJUON.cjs → chunk-ZUNXFL2L.cjs} +17 -17
- package/dist/lib/{chunk-NYKVJUON.cjs.map → chunk-ZUNXFL2L.cjs.map} +1 -1
- package/dist/lib/contexts/api-context.cjs +6 -6
- package/dist/lib/contexts/api-context.js +5 -5
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +8 -8
- package/dist/lib/contexts/index.js +5 -5
- package/dist/lib/fs/index.cjs +2 -2
- package/dist/lib/fs/index.js +1 -1
- package/dist/lib/fs/vfs.cjs +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +28 -28
- package/dist/lib/index.js +7 -7
- package/dist/lib/unplugin/factory.cjs +7 -7
- package/dist/lib/unplugin/factory.js +6 -6
- package/dist/lib/unplugin/index.cjs +7 -7
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +4 -4
- package/dist/rolldown.cjs +6 -6
- package/dist/rolldown.js +3 -3
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsdown.cjs +4 -4
- package/dist/tsdown.js +3 -3
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.js +3 -3
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +8 -8
- package/dist/unplugin.js +4 -4
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +3 -3
- package/package.json +16 -16
- package/dist/chunk-FPDVCAGF.cjs +0 -12
- package/dist/chunk-TMWUCFE4.cjs +0 -12
- package/dist/lib/chunk-ABT2BGDN.js.map +0 -1
- package/dist/lib/chunk-EQRUYU2S.cjs.map +0 -1
- package/dist/lib/chunk-GQXUYZDF.js.map +0 -1
- package/dist/lib/chunk-RHPNB53E.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkS2A5ZWMG_cjs = require('./chunk-S2A5ZWMG.cjs');
|
|
4
4
|
require('./chunk-B6DVCLP5.cjs');
|
|
5
5
|
require('./chunk-V5WOGN7O.cjs');
|
|
6
6
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkS2A5ZWMG_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
|
15
15
|
//# sourceMappingURL=api.cjs.map
|
|
16
16
|
//# sourceMappingURL=api.cjs.map
|
package/dist/api.js
CHANGED
package/dist/astro.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkIXDPZ3QQ_cjs = require('./chunk-IXDPZ3QQ.cjs');
|
|
6
6
|
require('./chunk-VBGDN56Q.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4XDVSEE2.cjs');
|
|
8
|
+
require('./chunk-S2A5ZWMG.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkIXDPZ3QQ_cjs.vite_default(config)
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
}), "astro");
|
package/dist/astro.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { vite_default } from './chunk-
|
|
1
|
+
import { vite_default } from './chunk-U3M4S77K.js';
|
|
2
2
|
import './chunk-FJHS7DAU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-VRI7WXQN.js';
|
|
4
|
+
import './chunk-DEAJQDDU.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkS2A5ZWMG_cjs = require('./chunk-S2A5ZWMG.cjs');
|
|
4
4
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
|
|
|
27
27
|
// src/lib/unplugin/factory.ts
|
|
28
28
|
function createUnpluginFactory(variant, decorate) {
|
|
29
29
|
return (config, meta) => {
|
|
30
|
-
const log =
|
|
30
|
+
const log = chunkS2A5ZWMG_cjs.createLog("unplugin", config);
|
|
31
31
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
32
32
|
try {
|
|
33
33
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
let api;
|
|
39
39
|
async function buildStart() {
|
|
40
40
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkS2A5ZWMG_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
|
|
42
42
|
unplugin.setParseImpl(api.context.parse);
|
|
43
43
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
44
44
|
await api.prepare({
|
|
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
|
|
|
137
137
|
|
|
138
138
|
exports.createUnpluginFactory = createUnpluginFactory;
|
|
139
139
|
exports.getString = getString;
|
|
140
|
-
//# sourceMappingURL=chunk-
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
140
|
+
//# sourceMappingURL=chunk-4XDVSEE2.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-4XDVSEE2.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VRI7WXQN.js';
|
|
2
2
|
import { createRolldownPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
|
|
5
5
|
var rolldown_default = rolldown;
|
|
6
6
|
|
|
7
7
|
export { rolldown, rolldown_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-CKXP54I6.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-CKXP54I6.js.map
|
|
@@ -60,6 +60,7 @@ import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
|
60
60
|
import * as $ from '@stryke/capnp';
|
|
61
61
|
import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
|
|
62
62
|
import { correctPath, stripStars } from '@stryke/path/correct-path';
|
|
63
|
+
import { globToRegex } from '@stryke/path/glob-to-regex';
|
|
63
64
|
import { isAbsolutePath } from '@stryke/path/is-type';
|
|
64
65
|
import { isRegExp } from '@stryke/type-checks/is-regexp';
|
|
65
66
|
import { Blob as Blob$1 } from 'node:buffer';
|
|
@@ -80,7 +81,7 @@ import '@stryke/fs/remove-file';
|
|
|
80
81
|
|
|
81
82
|
// package.json
|
|
82
83
|
var name = "powerlines";
|
|
83
|
-
var version = "0.37.
|
|
84
|
+
var version = "0.37.46";
|
|
84
85
|
var package_default = {
|
|
85
86
|
version};
|
|
86
87
|
function resolveModulePath(nodePath, state) {
|
|
@@ -1799,16 +1800,6 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1799
1800
|
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.output.builtinPrefix);
|
|
1800
1801
|
}
|
|
1801
1802
|
/**
|
|
1802
|
-
* Builds a regular expression from a string pattern for path matching.
|
|
1803
|
-
*
|
|
1804
|
-
* @param path - The string pattern to convert.
|
|
1805
|
-
* @returns A regular expression for matching paths.
|
|
1806
|
-
*/
|
|
1807
|
-
#buildRegex(path) {
|
|
1808
|
-
const token = "::GLOBSTAR::";
|
|
1809
|
-
return new RegExp(`^${this.#normalizePath(path).replace(/\*\*/g, token).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(new RegExp(token, "g"), ".*")}$`);
|
|
1810
|
-
}
|
|
1811
|
-
/**
|
|
1812
1803
|
* Gets the storage adapter and relative key for a given key.
|
|
1813
1804
|
*
|
|
1814
1805
|
* @remarks
|
|
@@ -1851,7 +1842,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1851
1842
|
*/
|
|
1852
1843
|
#getStorages(base = "", includeParent = false) {
|
|
1853
1844
|
const baseKey = this.resolveSync(base) || base;
|
|
1854
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath(stripStars(baseKey), key) ||
|
|
1845
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath(stripStars(baseKey), key) || globToRegex(replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1855
1846
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1856
1847
|
base: key,
|
|
1857
1848
|
adapter: this.#storage[key]
|
|
@@ -2258,7 +2249,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2258
2249
|
const results = [];
|
|
2259
2250
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2260
2251
|
const normalized = this.#normalizePath(pattern);
|
|
2261
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2252
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2262
2253
|
if (this.isDirectorySync(normalized)) {
|
|
2263
2254
|
results.push(...await this.list(normalized));
|
|
2264
2255
|
} else {
|
|
@@ -2267,17 +2258,17 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2267
2258
|
results.push(resolved);
|
|
2268
2259
|
}
|
|
2269
2260
|
}
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2261
|
+
} else {
|
|
2262
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2263
|
+
await Promise.all((await this.list(stripStars(absPattern))).map(async (file) => {
|
|
2264
|
+
if (globToRegex(absPattern).test(file)) {
|
|
2265
|
+
const resolved = await this.resolve(file);
|
|
2266
|
+
if (resolved && !results.includes(resolved)) {
|
|
2267
|
+
results.push(resolved);
|
|
2268
|
+
}
|
|
2278
2269
|
}
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2270
|
+
}));
|
|
2271
|
+
}
|
|
2281
2272
|
}
|
|
2282
2273
|
return results;
|
|
2283
2274
|
}
|
|
@@ -2291,7 +2282,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2291
2282
|
const results = [];
|
|
2292
2283
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2293
2284
|
const normalized = this.#normalizePath(pattern);
|
|
2294
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2285
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2295
2286
|
if (this.isDirectorySync(normalized)) {
|
|
2296
2287
|
results.push(...this.listSync(normalized));
|
|
2297
2288
|
} else {
|
|
@@ -2300,15 +2291,16 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2300
2291
|
results.push(resolved);
|
|
2301
2292
|
}
|
|
2302
2293
|
}
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2294
|
+
} else {
|
|
2295
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2296
|
+
const files = this.listSync(stripStars(absPattern));
|
|
2297
|
+
for (const file of files) {
|
|
2298
|
+
const regex = globToRegex(absPattern);
|
|
2299
|
+
if (regex.test(file)) {
|
|
2300
|
+
const resolved = this.resolveSync(file);
|
|
2301
|
+
if (resolved && !results.includes(resolved)) {
|
|
2302
|
+
results.push(resolved);
|
|
2303
|
+
}
|
|
2312
2304
|
}
|
|
2313
2305
|
}
|
|
2314
2306
|
}
|
|
@@ -3421,12 +3413,11 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3421
3413
|
* @param options - Optional write file options
|
|
3422
3414
|
*/
|
|
3423
3415
|
async emitEntry(code, path, options = {}) {
|
|
3424
|
-
|
|
3425
|
-
return this.emit(code, entryPath, defu7({
|
|
3416
|
+
return this.emit(code, appendPath(path, this.entryPath), defu7({
|
|
3426
3417
|
meta: {
|
|
3427
3418
|
type: "entry",
|
|
3428
3419
|
properties: {
|
|
3429
|
-
file: entryPath,
|
|
3420
|
+
file: appendPath(path, this.entryPath),
|
|
3430
3421
|
name: options?.name,
|
|
3431
3422
|
output: options?.output,
|
|
3432
3423
|
"input.file": options?.input?.file,
|
|
@@ -3445,12 +3436,11 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3445
3436
|
* @param options - Optional write file options
|
|
3446
3437
|
*/
|
|
3447
3438
|
emitEntrySync(code, path, options = {}) {
|
|
3448
|
-
|
|
3449
|
-
return this.emitSync(code, entryPath, defu7({
|
|
3439
|
+
return this.emitSync(code, appendPath(path, this.entryPath), defu7({
|
|
3450
3440
|
meta: {
|
|
3451
3441
|
type: "entry",
|
|
3452
3442
|
properties: {
|
|
3453
|
-
file: entryPath,
|
|
3443
|
+
file: appendPath(path, this.entryPath),
|
|
3454
3444
|
name: options?.name,
|
|
3455
3445
|
output: options?.output,
|
|
3456
3446
|
"input.file": options?.input?.file,
|
|
@@ -5059,5 +5049,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5059
5049
|
};
|
|
5060
5050
|
|
|
5061
5051
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5062
|
-
//# sourceMappingURL=chunk-
|
|
5063
|
-
//# sourceMappingURL=chunk-
|
|
5052
|
+
//# sourceMappingURL=chunk-DEAJQDDU.js.map
|
|
5053
|
+
//# sourceMappingURL=chunk-DEAJQDDU.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-VRI7WXQN.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
|
|
|
29
29
|
var esbuild_default = esbuild;
|
|
30
30
|
|
|
31
31
|
export { esbuild, esbuild_default };
|
|
32
|
-
//# sourceMappingURL=chunk-
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
32
|
+
//# sourceMappingURL=chunk-ISOOAVAT.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-ISOOAVAT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4XDVSEE2_cjs = require('./chunk-4XDVSEE2.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
|
|
|
97
97
|
chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
98
98
|
|
|
99
99
|
// src/vite.ts
|
|
100
|
-
var vite = unplugin.createVitePlugin(
|
|
100
|
+
var vite = unplugin.createVitePlugin(chunk4XDVSEE2_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
101
101
|
return {
|
|
102
102
|
...plugin,
|
|
103
103
|
vite: {
|
|
@@ -158,5 +158,5 @@ var vite_default = vite;
|
|
|
158
158
|
|
|
159
159
|
exports.vite = vite;
|
|
160
160
|
exports.vite_default = vite_default;
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
161
|
+
//# sourceMappingURL=chunk-IXDPZ3QQ.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-IXDPZ3QQ.cjs.map
|
|
@@ -62,6 +62,7 @@ var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
|
62
62
|
var $ = require('@stryke/capnp');
|
|
63
63
|
var buffer = require('@stryke/fs/buffer');
|
|
64
64
|
var correctPath = require('@stryke/path/correct-path');
|
|
65
|
+
var globToRegex = require('@stryke/path/glob-to-regex');
|
|
65
66
|
var isType = require('@stryke/path/is-type');
|
|
66
67
|
var isRegexp = require('@stryke/type-checks/is-regexp');
|
|
67
68
|
var buffer$1 = require('buffer');
|
|
@@ -109,7 +110,7 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
109
110
|
|
|
110
111
|
// package.json
|
|
111
112
|
var name = "powerlines";
|
|
112
|
-
var version = "0.37.
|
|
113
|
+
var version = "0.37.46";
|
|
113
114
|
var package_default = {
|
|
114
115
|
version};
|
|
115
116
|
function resolveModulePath(nodePath, state) {
|
|
@@ -1828,16 +1829,6 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1828
1829
|
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.output.builtinPrefix);
|
|
1829
1830
|
}
|
|
1830
1831
|
/**
|
|
1831
|
-
* Builds a regular expression from a string pattern for path matching.
|
|
1832
|
-
*
|
|
1833
|
-
* @param path - The string pattern to convert.
|
|
1834
|
-
* @returns A regular expression for matching paths.
|
|
1835
|
-
*/
|
|
1836
|
-
#buildRegex(path) {
|
|
1837
|
-
const token = "::GLOBSTAR::";
|
|
1838
|
-
return new RegExp(`^${this.#normalizePath(path).replace(/\*\*/g, token).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(new RegExp(token, "g"), ".*")}$`);
|
|
1839
|
-
}
|
|
1840
|
-
/**
|
|
1841
1832
|
* Gets the storage adapter and relative key for a given key.
|
|
1842
1833
|
*
|
|
1843
1834
|
* @remarks
|
|
@@ -1880,7 +1871,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1880
1871
|
*/
|
|
1881
1872
|
#getStorages(base = "", includeParent = false) {
|
|
1882
1873
|
const baseKey = this.resolveSync(base) || base;
|
|
1883
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath.isParentPath(correctPath.stripStars(baseKey), key) ||
|
|
1874
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath.isParentPath(correctPath.stripStars(baseKey), key) || globToRegex.globToRegex(replace.replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1884
1875
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1885
1876
|
base: key,
|
|
1886
1877
|
adapter: this.#storage[key]
|
|
@@ -2287,7 +2278,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2287
2278
|
const results = [];
|
|
2288
2279
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2289
2280
|
const normalized = this.#normalizePath(pattern);
|
|
2290
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2281
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2291
2282
|
if (this.isDirectorySync(normalized)) {
|
|
2292
2283
|
results.push(...await this.list(normalized));
|
|
2293
2284
|
} else {
|
|
@@ -2296,17 +2287,17 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2296
2287
|
results.push(resolved);
|
|
2297
2288
|
}
|
|
2298
2289
|
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2290
|
+
} else {
|
|
2291
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2292
|
+
await Promise.all((await this.list(correctPath.stripStars(absPattern))).map(async (file) => {
|
|
2293
|
+
if (globToRegex.globToRegex(absPattern).test(file)) {
|
|
2294
|
+
const resolved = await this.resolve(file);
|
|
2295
|
+
if (resolved && !results.includes(resolved)) {
|
|
2296
|
+
results.push(resolved);
|
|
2297
|
+
}
|
|
2307
2298
|
}
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2299
|
+
}));
|
|
2300
|
+
}
|
|
2310
2301
|
}
|
|
2311
2302
|
return results;
|
|
2312
2303
|
}
|
|
@@ -2320,7 +2311,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2320
2311
|
const results = [];
|
|
2321
2312
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2322
2313
|
const normalized = this.#normalizePath(pattern);
|
|
2323
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2314
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2324
2315
|
if (this.isDirectorySync(normalized)) {
|
|
2325
2316
|
results.push(...this.listSync(normalized));
|
|
2326
2317
|
} else {
|
|
@@ -2329,15 +2320,16 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2329
2320
|
results.push(resolved);
|
|
2330
2321
|
}
|
|
2331
2322
|
}
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2323
|
+
} else {
|
|
2324
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2325
|
+
const files = this.listSync(correctPath.stripStars(absPattern));
|
|
2326
|
+
for (const file of files) {
|
|
2327
|
+
const regex = globToRegex.globToRegex(absPattern);
|
|
2328
|
+
if (regex.test(file)) {
|
|
2329
|
+
const resolved = this.resolveSync(file);
|
|
2330
|
+
if (resolved && !results.includes(resolved)) {
|
|
2331
|
+
results.push(resolved);
|
|
2332
|
+
}
|
|
2341
2333
|
}
|
|
2342
2334
|
}
|
|
2343
2335
|
}
|
|
@@ -3450,12 +3442,11 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3450
3442
|
* @param options - Optional write file options
|
|
3451
3443
|
*/
|
|
3452
3444
|
async emitEntry(code, path, options = {}) {
|
|
3453
|
-
|
|
3454
|
-
return this.emit(code, entryPath, defu7__default.default({
|
|
3445
|
+
return this.emit(code, append.appendPath(path, this.entryPath), defu7__default.default({
|
|
3455
3446
|
meta: {
|
|
3456
3447
|
type: "entry",
|
|
3457
3448
|
properties: {
|
|
3458
|
-
file: entryPath,
|
|
3449
|
+
file: append.appendPath(path, this.entryPath),
|
|
3459
3450
|
name: options?.name,
|
|
3460
3451
|
output: options?.output,
|
|
3461
3452
|
"input.file": options?.input?.file,
|
|
@@ -3474,12 +3465,11 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3474
3465
|
* @param options - Optional write file options
|
|
3475
3466
|
*/
|
|
3476
3467
|
emitEntrySync(code, path, options = {}) {
|
|
3477
|
-
|
|
3478
|
-
return this.emitSync(code, entryPath, defu7__default.default({
|
|
3468
|
+
return this.emitSync(code, append.appendPath(path, this.entryPath), defu7__default.default({
|
|
3479
3469
|
meta: {
|
|
3480
3470
|
type: "entry",
|
|
3481
3471
|
properties: {
|
|
3482
|
-
file: entryPath,
|
|
3472
|
+
file: append.appendPath(path, this.entryPath),
|
|
3483
3473
|
name: options?.name,
|
|
3484
3474
|
output: options?.output,
|
|
3485
3475
|
"input.file": options?.input?.file,
|
|
@@ -5100,5 +5090,5 @@ exports.extendLog = extendLog;
|
|
|
5100
5090
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5101
5091
|
exports.name = name;
|
|
5102
5092
|
exports.version = version;
|
|
5103
|
-
//# sourceMappingURL=chunk-
|
|
5104
|
-
//# sourceMappingURL=chunk-
|
|
5093
|
+
//# sourceMappingURL=chunk-S2A5ZWMG.cjs.map
|
|
5094
|
+
//# sourceMappingURL=chunk-S2A5ZWMG.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4XDVSEE2_cjs = require('./chunk-4XDVSEE2.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunk4XDVSEE2_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-SIUG3NKT.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-SIUG3NKT.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-VRI7WXQN.js';
|
|
3
3
|
import { __name } from './chunk-7QVYU63E.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
|
|
|
151
151
|
var vite_default = vite;
|
|
152
152
|
|
|
153
153
|
export { vite, vite_default };
|
|
154
|
-
//# sourceMappingURL=chunk-
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
154
|
+
//# sourceMappingURL=chunk-U3M4S77K.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-U3M4S77K.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-DEAJQDDU.js';
|
|
2
2
|
import { __name } from './chunk-7QVYU63E.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
134
134
|
__name(createUnpluginFactory, "createUnpluginFactory");
|
|
135
135
|
|
|
136
136
|
export { createUnpluginFactory, getString };
|
|
137
|
-
//# sourceMappingURL=chunk-
|
|
138
|
-
//# sourceMappingURL=chunk-
|
|
137
|
+
//# sourceMappingURL=chunk-VRI7WXQN.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-VRI7WXQN.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4XDVSEE2_cjs = require('./chunk-4XDVSEE2.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunk4XDVSEE2_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-XALI3N25.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-XALI3N25.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VRI7WXQN.js';
|
|
2
2
|
import { createWebpackPlugin } from 'unplugin';
|
|
3
3
|
|
|
4
4
|
var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
|
|
5
5
|
var webpack_default = webpack;
|
|
6
6
|
|
|
7
7
|
export { webpack, webpack_default };
|
|
8
|
-
//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
8
|
+
//# sourceMappingURL=chunk-YWHUGWY2.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-YWHUGWY2.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4XDVSEE2_cjs = require('./chunk-4XDVSEE2.cjs');
|
|
5
5
|
var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
|
|
6
6
|
var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
7
7
|
var unplugin = require('unplugin');
|
|
8
8
|
|
|
9
|
-
var esbuild = unplugin.createEsbuildPlugin(
|
|
9
|
+
var esbuild = unplugin.createEsbuildPlugin(chunk4XDVSEE2_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
|
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
|
|
|
32
32
|
|
|
33
33
|
exports.esbuild = esbuild;
|
|
34
34
|
exports.esbuild_default = esbuild_default;
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-ZPLPCEUE.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-ZPLPCEUE.cjs.map
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkZPLPCEUE_cjs = require('./chunk-ZPLPCEUE.cjs');
|
|
6
6
|
require('./chunk-VBGDN56Q.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-4XDVSEE2.cjs');
|
|
8
|
+
require('./chunk-S2A5ZWMG.cjs');
|
|
9
9
|
require('./chunk-B6DVCLP5.cjs');
|
|
10
10
|
require('./chunk-V5WOGN7O.cjs');
|
|
11
11
|
require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkZPLPCEUE_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkZPLPCEUE_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkZPLPCEUE_cjs.esbuild; }
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=esbuild.cjs.map
|
|
29
29
|
//# sourceMappingURL=esbuild.cjs.map
|
package/dist/esbuild.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-
|
|
1
|
+
export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-ISOOAVAT.js';
|
|
2
2
|
import './chunk-FJHS7DAU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-VRI7WXQN.js';
|
|
4
|
+
import './chunk-DEAJQDDU.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
package/dist/farm.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('./chunk-
|
|
5
|
+
var chunk4XDVSEE2_cjs = require('./chunk-4XDVSEE2.cjs');
|
|
6
|
+
require('./chunk-S2A5ZWMG.cjs');
|
|
7
7
|
require('./chunk-B6DVCLP5.cjs');
|
|
8
8
|
require('./chunk-V5WOGN7O.cjs');
|
|
9
9
|
require('./chunk-Z6ARQDHR.cjs');
|
|
10
10
|
require('./chunk-PK6SKIKE.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunk4XDVSEE2_cjs.createUnpluginFactory("farm"));
|
|
14
14
|
var farm_default = farm;
|
|
15
15
|
|
|
16
16
|
exports.default = farm_default;
|
package/dist/farm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-VRI7WXQN.js';
|
|
2
|
+
import './chunk-DEAJQDDU.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|