powerlines 0.37.22 → 0.37.23
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-2GYKL7MR.js → chunk-3XEOJ3TS.js} +60 -24
- package/dist/chunk-4QCZWJMW.cjs +12 -0
- package/dist/{chunk-ED76WMZE.js → chunk-APLBM72X.js} +3 -3
- package/dist/{chunk-P54ICZRA.cjs → chunk-C3TWAGFQ.cjs} +5 -5
- package/dist/{chunk-3CM5DSDF.js → chunk-D4L3REG4.js} +3 -3
- package/dist/chunk-D56IP3ZO.cjs +12 -0
- package/dist/{chunk-UQYTU5IK.cjs → chunk-DWF4GVXQ.cjs} +4 -4
- package/dist/{chunk-TKMRSLBB.js → chunk-PQ6DDPXP.js} +3 -3
- package/dist/{chunk-LBPHFO4S.cjs → chunk-R7IUNKL4.cjs} +60 -24
- package/dist/{chunk-VUNH6T4K.js → chunk-UQ7LY7EU.js} +3 -3
- package/dist/{chunk-DJLMDKJL.cjs → chunk-UZV6LCRL.cjs} +4 -4
- package/dist/{chunk-QP6ZNNHB.js → chunk-Z7KIQFLN.js} +3 -3
- 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/{chunk-2SUWZWN4.cjs → chunk-5WSRLNW3.cjs} +46 -12
- package/dist/lib/chunk-5WSRLNW3.cjs.map +1 -0
- package/dist/lib/{chunk-MHID6LCS.js → chunk-EUG7HXQY.js} +4 -4
- package/dist/lib/{chunk-MHID6LCS.js.map → chunk-EUG7HXQY.js.map} +1 -1
- package/dist/lib/{chunk-VP4LPCL2.js → chunk-GAIS4GMK.js} +46 -12
- package/dist/lib/chunk-GAIS4GMK.js.map +1 -0
- package/dist/lib/{chunk-HRRIUJJN.js → chunk-K3NVHAWK.js} +17 -15
- package/dist/lib/chunk-K3NVHAWK.js.map +1 -0
- package/dist/lib/{chunk-NLUGEM63.js → chunk-KAYP2ZET.js} +3 -3
- package/dist/lib/{chunk-NLUGEM63.js.map → chunk-KAYP2ZET.js.map} +1 -1
- package/dist/lib/{chunk-IHQM73EH.cjs → chunk-NP43P5WN.cjs} +19 -17
- package/dist/lib/chunk-NP43P5WN.cjs.map +1 -0
- package/dist/lib/{chunk-OGSYFDDP.js → chunk-UKH6QWNB.js} +4 -4
- package/dist/lib/{chunk-OGSYFDDP.js.map → chunk-UKH6QWNB.js.map} +1 -1
- package/dist/lib/{chunk-ML4OSKGQ.cjs → chunk-Y2IR6IBT.cjs} +19 -19
- package/dist/lib/{chunk-ML4OSKGQ.cjs.map → chunk-Y2IR6IBT.cjs.map} +1 -1
- package/dist/lib/{chunk-HATBUK22.cjs → chunk-Y542GHNE.cjs} +6 -6
- package/dist/lib/{chunk-HATBUK22.cjs.map → chunk-Y542GHNE.cjs.map} +1 -1
- package/dist/lib/{chunk-FJ2KUDL6.cjs → chunk-ZYQHFUU6.cjs} +16 -16
- package/dist/lib/{chunk-FJ2KUDL6.cjs.map → chunk-ZYQHFUU6.cjs.map} +1 -1
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.js +4 -4
- 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 +7 -7
- package/dist/lib/contexts/index.js +4 -4
- 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 +10 -10
- package/dist/lib/index.js +5 -5
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.js +5 -5
- 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 +8 -8
- package/dist/chunk-HG62S3DW.cjs +0 -12
- package/dist/chunk-N3XGIGAC.cjs +0 -12
- package/dist/lib/chunk-2SUWZWN4.cjs.map +0 -1
- package/dist/lib/chunk-HRRIUJJN.js.map +0 -1
- package/dist/lib/chunk-IHQM73EH.cjs.map +0 -1
- package/dist/lib/chunk-VP4LPCL2.js.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR7IUNKL4_cjs = require('./chunk-R7IUNKL4.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 chunkR7IUNKL4_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 chunkDWF4GVXQ_cjs = require('./chunk-DWF4GVXQ.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-C3TWAGFQ.cjs');
|
|
8
|
+
require('./chunk-R7IUNKL4.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
|
+
chunkDWF4GVXQ_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-UQ7LY7EU.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-Z7KIQFLN.js';
|
|
4
|
+
import './chunk-3XEOJ3TS.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1907,7 +1907,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1907
1907
|
return new Proxy(this.#metadata, {
|
|
1908
1908
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1909
1909
|
return target[this.#normalizeId(prop)];
|
|
1910
|
-
}, "get")
|
|
1910
|
+
}, "get"),
|
|
1911
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1912
|
+
target[this.#normalizeId(prop)] = value;
|
|
1913
|
+
return true;
|
|
1914
|
+
}, "set"),
|
|
1915
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1916
|
+
delete target[this.#normalizeId(prop)];
|
|
1917
|
+
return true;
|
|
1918
|
+
}, "deleteProperty"),
|
|
1919
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1920
|
+
return this.#normalizeId(prop) in target;
|
|
1921
|
+
}, "has")
|
|
1911
1922
|
});
|
|
1912
1923
|
}
|
|
1913
1924
|
/**
|
|
@@ -1917,7 +1928,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1917
1928
|
return new Proxy(this.#paths, {
|
|
1918
1929
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1919
1930
|
return target[this.#normalizePath(prop)];
|
|
1920
|
-
}, "get")
|
|
1931
|
+
}, "get"),
|
|
1932
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1933
|
+
target[this.#normalizePath(prop)] = value;
|
|
1934
|
+
return true;
|
|
1935
|
+
}, "set"),
|
|
1936
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1937
|
+
delete target[this.#normalizePath(prop)];
|
|
1938
|
+
return true;
|
|
1939
|
+
}, "deleteProperty"),
|
|
1940
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1941
|
+
return this.#normalizePath(prop) in target;
|
|
1942
|
+
}, "has")
|
|
1921
1943
|
});
|
|
1922
1944
|
}
|
|
1923
1945
|
/**
|
|
@@ -1927,7 +1949,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1927
1949
|
return new Proxy(this.#paths, {
|
|
1928
1950
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1929
1951
|
return target[this.#normalizeId(prop)];
|
|
1930
|
-
}, "get")
|
|
1952
|
+
}, "get"),
|
|
1953
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1954
|
+
target[this.#normalizeId(prop)] = value;
|
|
1955
|
+
return true;
|
|
1956
|
+
}, "set"),
|
|
1957
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1958
|
+
delete target[this.#normalizeId(prop)];
|
|
1959
|
+
return true;
|
|
1960
|
+
}, "deleteProperty"),
|
|
1961
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1962
|
+
return this.#normalizeId(prop) in target;
|
|
1963
|
+
}, "has")
|
|
1931
1964
|
});
|
|
1932
1965
|
}
|
|
1933
1966
|
/**
|
|
@@ -2376,6 +2409,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2376
2409
|
this.#metadata[id] = {
|
|
2377
2410
|
type: "normal",
|
|
2378
2411
|
timestamp: Date.now(),
|
|
2412
|
+
...this.#metadata[id] ?? {},
|
|
2379
2413
|
...meta
|
|
2380
2414
|
};
|
|
2381
2415
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2397,6 +2431,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2397
2431
|
this.#metadata[id] = {
|
|
2398
2432
|
type: "normal",
|
|
2399
2433
|
timestamp: Date.now(),
|
|
2434
|
+
...this.#metadata[id] ?? {},
|
|
2400
2435
|
...meta
|
|
2401
2436
|
};
|
|
2402
2437
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2621,22 +2656,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2621
2656
|
await this.remove(joinPaths$1(this.#context.dataPath, "fs.bin"));
|
|
2622
2657
|
const message = new $.Message();
|
|
2623
2658
|
const fs = message.initRoot(FileSystem);
|
|
2624
|
-
const
|
|
2625
|
-
|
|
2626
|
-
await Promise.all(paths.map(async (path, index) => {
|
|
2659
|
+
const storage = fs._initStorage(Object.keys(this.#paths).length);
|
|
2660
|
+
await Promise.all(Object.values(this.#paths).map(async (path, index) => {
|
|
2627
2661
|
const code = await this.read(path);
|
|
2628
2662
|
const fd = storage.get(index);
|
|
2629
2663
|
fd.path = path;
|
|
2630
2664
|
fd.code = code || "";
|
|
2631
2665
|
}));
|
|
2632
|
-
const ids = fs._initIds(Object.keys(this
|
|
2633
|
-
Object.entries(this
|
|
2666
|
+
const ids = fs._initIds(Object.keys(this.#ids).length);
|
|
2667
|
+
Object.entries(this.#ids).filter(([, path]) => path).forEach(([id, path], index) => {
|
|
2634
2668
|
const fileId = ids.get(index);
|
|
2635
2669
|
fileId.id = id;
|
|
2636
2670
|
fileId.path = path;
|
|
2637
2671
|
});
|
|
2638
|
-
const metadata = fs._initMetadata(Object.keys(this
|
|
2639
|
-
Object.entries(this
|
|
2672
|
+
const metadata = fs._initMetadata(Object.keys(this.#metadata).length);
|
|
2673
|
+
Object.entries(this.#metadata).filter(([, value]) => value).forEach(([id, value], index) => {
|
|
2640
2674
|
const fileMetadata = metadata.get(index);
|
|
2641
2675
|
fileMetadata.id = id;
|
|
2642
2676
|
fileMetadata.type = value.type;
|
|
@@ -3318,19 +3352,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3318
3352
|
output: options.output
|
|
3319
3353
|
});
|
|
3320
3354
|
}
|
|
3321
|
-
return this.emit(code, entryPath, defu7(
|
|
3322
|
-
"name"
|
|
3323
|
-
]), {
|
|
3355
|
+
return this.emit(code, entryPath, defu7({
|
|
3324
3356
|
meta: {
|
|
3325
3357
|
type: "entry",
|
|
3326
3358
|
properties: {
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
"input.
|
|
3359
|
+
file: entryPath,
|
|
3360
|
+
name: options?.name,
|
|
3361
|
+
output: options?.output,
|
|
3362
|
+
"input.file": options?.input?.file,
|
|
3363
|
+
"input.name": options?.input?.name
|
|
3331
3364
|
}
|
|
3332
3365
|
}
|
|
3333
|
-
}
|
|
3366
|
+
}, omit(options, [
|
|
3367
|
+
"name"
|
|
3368
|
+
])));
|
|
3334
3369
|
}
|
|
3335
3370
|
/**
|
|
3336
3371
|
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
@@ -3349,19 +3384,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3349
3384
|
output: options?.output
|
|
3350
3385
|
});
|
|
3351
3386
|
}
|
|
3352
|
-
return this.emitSync(code, entryPath, defu7(
|
|
3353
|
-
"name"
|
|
3354
|
-
]), {
|
|
3387
|
+
return this.emitSync(code, entryPath, defu7({
|
|
3355
3388
|
meta: {
|
|
3356
3389
|
type: "entry",
|
|
3357
3390
|
properties: {
|
|
3391
|
+
file: entryPath,
|
|
3358
3392
|
name: options?.name,
|
|
3359
3393
|
output: options?.output,
|
|
3360
3394
|
"input.file": options?.input?.file,
|
|
3361
3395
|
"input.name": options?.input?.name
|
|
3362
3396
|
}
|
|
3363
3397
|
}
|
|
3364
|
-
}
|
|
3398
|
+
}, omit(options, [
|
|
3399
|
+
"name"
|
|
3400
|
+
])));
|
|
3365
3401
|
}
|
|
3366
3402
|
/**
|
|
3367
3403
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
@@ -4945,5 +4981,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4945
4981
|
};
|
|
4946
4982
|
|
|
4947
4983
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4948
|
-
//# sourceMappingURL=chunk-
|
|
4949
|
-
//# sourceMappingURL=chunk-
|
|
4984
|
+
//# sourceMappingURL=chunk-3XEOJ3TS.js.map
|
|
4985
|
+
//# sourceMappingURL=chunk-3XEOJ3TS.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkC3TWAGFQ_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-4QCZWJMW.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-4QCZWJMW.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-Z7KIQFLN.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-APLBM72X.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-APLBM72X.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR7IUNKL4_cjs = require('./chunk-R7IUNKL4.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 = chunkR7IUNKL4_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 chunkR7IUNKL4_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-C3TWAGFQ.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-C3TWAGFQ.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-Z7KIQFLN.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-D4L3REG4.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-D4L3REG4.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkC3TWAGFQ_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-D56IP3ZO.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-D56IP3ZO.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.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(chunkC3TWAGFQ_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-DWF4GVXQ.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-DWF4GVXQ.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-Z7KIQFLN.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-PQ6DDPXP.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-PQ6DDPXP.js.map
|
|
@@ -1936,7 +1936,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1936
1936
|
return new Proxy(this.#metadata, {
|
|
1937
1937
|
get: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1938
1938
|
return target[this.#normalizeId(prop)];
|
|
1939
|
-
}, "get")
|
|
1939
|
+
}, "get"),
|
|
1940
|
+
set: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop, value) => {
|
|
1941
|
+
target[this.#normalizeId(prop)] = value;
|
|
1942
|
+
return true;
|
|
1943
|
+
}, "set"),
|
|
1944
|
+
deleteProperty: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1945
|
+
delete target[this.#normalizeId(prop)];
|
|
1946
|
+
return true;
|
|
1947
|
+
}, "deleteProperty"),
|
|
1948
|
+
has: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1949
|
+
return this.#normalizeId(prop) in target;
|
|
1950
|
+
}, "has")
|
|
1940
1951
|
});
|
|
1941
1952
|
}
|
|
1942
1953
|
/**
|
|
@@ -1946,7 +1957,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1946
1957
|
return new Proxy(this.#paths, {
|
|
1947
1958
|
get: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1948
1959
|
return target[this.#normalizePath(prop)];
|
|
1949
|
-
}, "get")
|
|
1960
|
+
}, "get"),
|
|
1961
|
+
set: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop, value) => {
|
|
1962
|
+
target[this.#normalizePath(prop)] = value;
|
|
1963
|
+
return true;
|
|
1964
|
+
}, "set"),
|
|
1965
|
+
deleteProperty: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1966
|
+
delete target[this.#normalizePath(prop)];
|
|
1967
|
+
return true;
|
|
1968
|
+
}, "deleteProperty"),
|
|
1969
|
+
has: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1970
|
+
return this.#normalizePath(prop) in target;
|
|
1971
|
+
}, "has")
|
|
1950
1972
|
});
|
|
1951
1973
|
}
|
|
1952
1974
|
/**
|
|
@@ -1956,7 +1978,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1956
1978
|
return new Proxy(this.#paths, {
|
|
1957
1979
|
get: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1958
1980
|
return target[this.#normalizeId(prop)];
|
|
1959
|
-
}, "get")
|
|
1981
|
+
}, "get"),
|
|
1982
|
+
set: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop, value) => {
|
|
1983
|
+
target[this.#normalizeId(prop)] = value;
|
|
1984
|
+
return true;
|
|
1985
|
+
}, "set"),
|
|
1986
|
+
deleteProperty: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1987
|
+
delete target[this.#normalizeId(prop)];
|
|
1988
|
+
return true;
|
|
1989
|
+
}, "deleteProperty"),
|
|
1990
|
+
has: /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((target, prop) => {
|
|
1991
|
+
return this.#normalizeId(prop) in target;
|
|
1992
|
+
}, "has")
|
|
1960
1993
|
});
|
|
1961
1994
|
}
|
|
1962
1995
|
/**
|
|
@@ -2405,6 +2438,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2405
2438
|
this.#metadata[id] = {
|
|
2406
2439
|
type: "normal",
|
|
2407
2440
|
timestamp: Date.now(),
|
|
2441
|
+
...this.#metadata[id] ?? {},
|
|
2408
2442
|
...meta
|
|
2409
2443
|
};
|
|
2410
2444
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2426,6 +2460,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2426
2460
|
this.#metadata[id] = {
|
|
2427
2461
|
type: "normal",
|
|
2428
2462
|
timestamp: Date.now(),
|
|
2463
|
+
...this.#metadata[id] ?? {},
|
|
2429
2464
|
...meta
|
|
2430
2465
|
};
|
|
2431
2466
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2650,22 +2685,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2650
2685
|
await this.remove(joinPaths.joinPaths(this.#context.dataPath, "fs.bin"));
|
|
2651
2686
|
const message = new $__namespace.Message();
|
|
2652
2687
|
const fs = message.initRoot(FileSystem);
|
|
2653
|
-
const
|
|
2654
|
-
|
|
2655
|
-
await Promise.all(paths.map(async (path, index) => {
|
|
2688
|
+
const storage = fs._initStorage(Object.keys(this.#paths).length);
|
|
2689
|
+
await Promise.all(Object.values(this.#paths).map(async (path, index) => {
|
|
2656
2690
|
const code = await this.read(path);
|
|
2657
2691
|
const fd = storage.get(index);
|
|
2658
2692
|
fd.path = path;
|
|
2659
2693
|
fd.code = code || "";
|
|
2660
2694
|
}));
|
|
2661
|
-
const ids = fs._initIds(Object.keys(this
|
|
2662
|
-
Object.entries(this
|
|
2695
|
+
const ids = fs._initIds(Object.keys(this.#ids).length);
|
|
2696
|
+
Object.entries(this.#ids).filter(([, path]) => path).forEach(([id, path], index) => {
|
|
2663
2697
|
const fileId = ids.get(index);
|
|
2664
2698
|
fileId.id = id;
|
|
2665
2699
|
fileId.path = path;
|
|
2666
2700
|
});
|
|
2667
|
-
const metadata = fs._initMetadata(Object.keys(this
|
|
2668
|
-
Object.entries(this
|
|
2701
|
+
const metadata = fs._initMetadata(Object.keys(this.#metadata).length);
|
|
2702
|
+
Object.entries(this.#metadata).filter(([, value]) => value).forEach(([id, value], index) => {
|
|
2669
2703
|
const fileMetadata = metadata.get(index);
|
|
2670
2704
|
fileMetadata.id = id;
|
|
2671
2705
|
fileMetadata.type = value.type;
|
|
@@ -3347,19 +3381,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3347
3381
|
output: options.output
|
|
3348
3382
|
});
|
|
3349
3383
|
}
|
|
3350
|
-
return this.emit(code, entryPath, defu7__default.default(
|
|
3351
|
-
"name"
|
|
3352
|
-
]), {
|
|
3384
|
+
return this.emit(code, entryPath, defu7__default.default({
|
|
3353
3385
|
meta: {
|
|
3354
3386
|
type: "entry",
|
|
3355
3387
|
properties: {
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
"input.
|
|
3388
|
+
file: entryPath,
|
|
3389
|
+
name: options?.name,
|
|
3390
|
+
output: options?.output,
|
|
3391
|
+
"input.file": options?.input?.file,
|
|
3392
|
+
"input.name": options?.input?.name
|
|
3360
3393
|
}
|
|
3361
3394
|
}
|
|
3362
|
-
}
|
|
3395
|
+
}, omit.omit(options, [
|
|
3396
|
+
"name"
|
|
3397
|
+
])));
|
|
3363
3398
|
}
|
|
3364
3399
|
/**
|
|
3365
3400
|
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
@@ -3378,19 +3413,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3378
3413
|
output: options?.output
|
|
3379
3414
|
});
|
|
3380
3415
|
}
|
|
3381
|
-
return this.emitSync(code, entryPath, defu7__default.default(
|
|
3382
|
-
"name"
|
|
3383
|
-
]), {
|
|
3416
|
+
return this.emitSync(code, entryPath, defu7__default.default({
|
|
3384
3417
|
meta: {
|
|
3385
3418
|
type: "entry",
|
|
3386
3419
|
properties: {
|
|
3420
|
+
file: entryPath,
|
|
3387
3421
|
name: options?.name,
|
|
3388
3422
|
output: options?.output,
|
|
3389
3423
|
"input.file": options?.input?.file,
|
|
3390
3424
|
"input.name": options?.input?.name
|
|
3391
3425
|
}
|
|
3392
3426
|
}
|
|
3393
|
-
}
|
|
3427
|
+
}, omit.omit(options, [
|
|
3428
|
+
"name"
|
|
3429
|
+
])));
|
|
3394
3430
|
}
|
|
3395
3431
|
/**
|
|
3396
3432
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
@@ -4984,5 +5020,5 @@ exports.combineContexts = combineContexts;
|
|
|
4984
5020
|
exports.createLog = createLog;
|
|
4985
5021
|
exports.extendLog = extendLog;
|
|
4986
5022
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
4987
|
-
//# sourceMappingURL=chunk-
|
|
4988
|
-
//# sourceMappingURL=chunk-
|
|
5023
|
+
//# sourceMappingURL=chunk-R7IUNKL4.cjs.map
|
|
5024
|
+
//# sourceMappingURL=chunk-R7IUNKL4.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-Z7KIQFLN.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-UQ7LY7EU.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-UQ7LY7EU.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.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(chunkC3TWAGFQ_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-UZV6LCRL.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-UZV6LCRL.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-3XEOJ3TS.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-Z7KIQFLN.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-Z7KIQFLN.js.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 chunkUZV6LCRL_cjs = require('./chunk-UZV6LCRL.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-C3TWAGFQ.cjs');
|
|
8
|
+
require('./chunk-R7IUNKL4.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 chunkUZV6LCRL_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkUZV6LCRL_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkUZV6LCRL_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-D4L3REG4.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-Z7KIQFLN.js';
|
|
4
|
+
import './chunk-3XEOJ3TS.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 chunkC3TWAGFQ_cjs = require('./chunk-C3TWAGFQ.cjs');
|
|
6
|
+
require('./chunk-R7IUNKL4.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(chunkC3TWAGFQ_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-Z7KIQFLN.js';
|
|
2
|
+
import './chunk-3XEOJ3TS.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|