powerlines 0.37.22 → 0.37.24
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-TKMRSLBB.js → chunk-4ENEIHKC.js} +3 -3
- package/dist/chunk-4IXGEWKB.cjs +12 -0
- package/dist/{chunk-QP6ZNNHB.js → chunk-APCE4C3B.js} +3 -3
- package/dist/{chunk-UQYTU5IK.cjs → chunk-DE5IDYUO.cjs} +4 -4
- package/dist/{chunk-2GYKL7MR.js → chunk-F7ZYHEFF.js} +106 -30
- package/dist/{chunk-VUNH6T4K.js → chunk-GYAWFCLJ.js} +3 -3
- package/dist/{chunk-P54ICZRA.cjs → chunk-IR4MEQHU.cjs} +5 -5
- package/dist/{chunk-DJLMDKJL.cjs → chunk-K4UKAUQY.cjs} +4 -4
- package/dist/{chunk-LBPHFO4S.cjs → chunk-R6UTSBYI.cjs} +106 -30
- package/dist/chunk-SPHARZBB.cjs +12 -0
- package/dist/{chunk-ED76WMZE.js → chunk-SZ2ZJ7D6.js} +3 -3
- package/dist/{chunk-3CM5DSDF.js → chunk-ZUGCJPUV.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-FJ2KUDL6.cjs → chunk-JFA7OW2I.cjs} +16 -16
- package/dist/lib/{chunk-FJ2KUDL6.cjs.map → chunk-JFA7OW2I.cjs.map} +1 -1
- package/dist/lib/{chunk-MHID6LCS.js → chunk-KFT5AKNL.js} +4 -4
- package/dist/lib/{chunk-MHID6LCS.js.map → chunk-KFT5AKNL.js.map} +1 -1
- package/dist/lib/{chunk-IHQM73EH.cjs → chunk-MEZZ76LR.cjs} +19 -17
- package/dist/lib/chunk-MEZZ76LR.cjs.map +1 -0
- package/dist/lib/{chunk-ML4OSKGQ.cjs → chunk-O33UNFHZ.cjs} +19 -19
- package/dist/lib/{chunk-ML4OSKGQ.cjs.map → chunk-O33UNFHZ.cjs.map} +1 -1
- package/dist/lib/{chunk-2SUWZWN4.cjs → chunk-PJQR4XNF.cjs} +92 -18
- package/dist/lib/chunk-PJQR4XNF.cjs.map +1 -0
- package/dist/lib/{chunk-OGSYFDDP.js → chunk-TCM3STGS.js} +4 -4
- package/dist/lib/{chunk-OGSYFDDP.js.map → chunk-TCM3STGS.js.map} +1 -1
- package/dist/lib/{chunk-NLUGEM63.js → chunk-UJ5TICQ2.js} +3 -3
- package/dist/lib/{chunk-NLUGEM63.js.map → chunk-UJ5TICQ2.js.map} +1 -1
- package/dist/lib/{chunk-VP4LPCL2.js → chunk-UUBS5Z5H.js} +92 -18
- package/dist/lib/chunk-UUBS5Z5H.js.map +1 -0
- package/dist/lib/{chunk-HATBUK22.cjs → chunk-XUWN6WZH.cjs} +6 -6
- package/dist/lib/{chunk-HATBUK22.cjs.map → chunk-XUWN6WZH.cjs.map} +1 -1
- package/dist/lib/{chunk-HRRIUJJN.js → chunk-YTT66LRY.js} +17 -15
- package/dist/lib/chunk-YTT66LRY.js.map +1 -0
- 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 chunkR6UTSBYI_cjs = require('./chunk-R6UTSBYI.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 chunkR6UTSBYI_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 chunkDE5IDYUO_cjs = require('./chunk-DE5IDYUO.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-IR4MEQHU.cjs');
|
|
8
|
+
require('./chunk-R6UTSBYI.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
|
+
chunkDE5IDYUO_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-GYAWFCLJ.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-APCE4C3B.js';
|
|
4
|
+
import './chunk-F7ZYHEFF.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-APCE4C3B.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-4ENEIHKC.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-4ENEIHKC.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIR4MEQHU_cjs = require('./chunk-IR4MEQHU.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkIR4MEQHU_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-4IXGEWKB.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-4IXGEWKB.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-F7ZYHEFF.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-APCE4C3B.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-APCE4C3B.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkIR4MEQHU_cjs = require('./chunk-IR4MEQHU.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(chunkIR4MEQHU_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-DE5IDYUO.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-DE5IDYUO.cjs.map
|
|
@@ -1841,7 +1841,9 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1841
1841
|
const result2 = new _VirtualFileSystem(context, fs);
|
|
1842
1842
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1843
1843
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1844
|
-
|
|
1844
|
+
if (file.path && file.code) {
|
|
1845
|
+
await result2.write(file.path, file.code);
|
|
1846
|
+
}
|
|
1845
1847
|
}));
|
|
1846
1848
|
}
|
|
1847
1849
|
}
|
|
@@ -1886,19 +1888,51 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1886
1888
|
* @returns A new virtual file system instance.
|
|
1887
1889
|
*/
|
|
1888
1890
|
static createSync(context) {
|
|
1891
|
+
context.debug("Starting virtual file system (VFS) initialization processes...");
|
|
1889
1892
|
if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
|
|
1890
1893
|
const buffer = readFileBufferSync(joinPaths$1(context.dataPath, "fs.bin"));
|
|
1891
1894
|
const message2 = new $.Message(buffer, false);
|
|
1892
1895
|
const fs = message2.getRoot(FileSystem);
|
|
1893
|
-
const
|
|
1896
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1894
1897
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1895
1898
|
fs.storage.values().map((file) => {
|
|
1896
|
-
|
|
1899
|
+
result2.writeSync(file.path, file.code);
|
|
1897
1900
|
});
|
|
1898
1901
|
}
|
|
1899
1902
|
}
|
|
1900
1903
|
const message = new $.Message();
|
|
1901
|
-
|
|
1904
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1905
|
+
result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
|
|
1906
|
+
if (result.metadata) {
|
|
1907
|
+
result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
|
|
1908
|
+
const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1909
|
+
if (meta.properties) {
|
|
1910
|
+
const typeDefinition = {
|
|
1911
|
+
file: path
|
|
1912
|
+
};
|
|
1913
|
+
if (isSetString(meta.properties.name)) {
|
|
1914
|
+
typeDefinition.name = meta.properties.name;
|
|
1915
|
+
}
|
|
1916
|
+
if (isSetString(meta.properties["input.file"]) || isSetString(meta.properties["input.name"])) {
|
|
1917
|
+
typeDefinition.input ??= {};
|
|
1918
|
+
if (isSetString(meta.properties["input.file"])) {
|
|
1919
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1920
|
+
}
|
|
1921
|
+
if (isSetString(meta.properties["input.name"])) {
|
|
1922
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
if (isSetString(meta.properties.output)) {
|
|
1926
|
+
typeDefinition.output = meta.properties.output;
|
|
1927
|
+
}
|
|
1928
|
+
return typeDefinition;
|
|
1929
|
+
}
|
|
1930
|
+
return null;
|
|
1931
|
+
}).filter(Boolean);
|
|
1932
|
+
result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
|
|
1933
|
+
context.entry = entry;
|
|
1934
|
+
}
|
|
1935
|
+
return result;
|
|
1902
1936
|
}
|
|
1903
1937
|
/**
|
|
1904
1938
|
* A map of file ids to their metadata.
|
|
@@ -1907,7 +1941,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1907
1941
|
return new Proxy(this.#metadata, {
|
|
1908
1942
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1909
1943
|
return target[this.#normalizeId(prop)];
|
|
1910
|
-
}, "get")
|
|
1944
|
+
}, "get"),
|
|
1945
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1946
|
+
target[this.#normalizeId(prop)] = value;
|
|
1947
|
+
return true;
|
|
1948
|
+
}, "set"),
|
|
1949
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1950
|
+
delete target[this.#normalizeId(prop)];
|
|
1951
|
+
return true;
|
|
1952
|
+
}, "deleteProperty"),
|
|
1953
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1954
|
+
return this.#normalizeId(prop) in target;
|
|
1955
|
+
}, "has")
|
|
1911
1956
|
});
|
|
1912
1957
|
}
|
|
1913
1958
|
/**
|
|
@@ -1917,7 +1962,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1917
1962
|
return new Proxy(this.#paths, {
|
|
1918
1963
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1919
1964
|
return target[this.#normalizePath(prop)];
|
|
1920
|
-
}, "get")
|
|
1965
|
+
}, "get"),
|
|
1966
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1967
|
+
target[this.#normalizePath(prop)] = value;
|
|
1968
|
+
return true;
|
|
1969
|
+
}, "set"),
|
|
1970
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1971
|
+
delete target[this.#normalizePath(prop)];
|
|
1972
|
+
return true;
|
|
1973
|
+
}, "deleteProperty"),
|
|
1974
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1975
|
+
return this.#normalizePath(prop) in target;
|
|
1976
|
+
}, "has")
|
|
1921
1977
|
});
|
|
1922
1978
|
}
|
|
1923
1979
|
/**
|
|
@@ -1927,7 +1983,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1927
1983
|
return new Proxy(this.#paths, {
|
|
1928
1984
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1929
1985
|
return target[this.#normalizeId(prop)];
|
|
1930
|
-
}, "get")
|
|
1986
|
+
}, "get"),
|
|
1987
|
+
set: /* @__PURE__ */ __name((target, prop, value) => {
|
|
1988
|
+
target[this.#normalizeId(prop)] = value;
|
|
1989
|
+
return true;
|
|
1990
|
+
}, "set"),
|
|
1991
|
+
deleteProperty: /* @__PURE__ */ __name((target, prop) => {
|
|
1992
|
+
delete target[this.#normalizeId(prop)];
|
|
1993
|
+
return true;
|
|
1994
|
+
}, "deleteProperty"),
|
|
1995
|
+
has: /* @__PURE__ */ __name((target, prop) => {
|
|
1996
|
+
return this.#normalizeId(prop) in target;
|
|
1997
|
+
}, "has")
|
|
1931
1998
|
});
|
|
1932
1999
|
}
|
|
1933
2000
|
/**
|
|
@@ -2367,15 +2434,22 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2367
2434
|
async write(path, data = "", options = {}) {
|
|
2368
2435
|
const meta = options.meta ?? {};
|
|
2369
2436
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2437
|
+
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(data)).size)})`);
|
|
2370
2438
|
let code = data;
|
|
2371
|
-
|
|
2372
|
-
|
|
2439
|
+
try {
|
|
2440
|
+
if (!options.skipFormat) {
|
|
2441
|
+
code = await format(this.#normalizePath(path), data);
|
|
2442
|
+
}
|
|
2443
|
+
} catch (err) {
|
|
2444
|
+
this.#log(LogLevelLabel.WARN, `Failed to format file ${this.#normalizePath(path)} before writing: ${err.message}`);
|
|
2445
|
+
code = data;
|
|
2373
2446
|
}
|
|
2374
2447
|
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} to ${adapter.name === "virtual" ? "the virtual file system" : adapter.name === "file-system" ? "the local file system" : adapter.name} (size: ${prettyBytes(new Blob(toArray(code)).size)})`);
|
|
2375
2448
|
const id = meta.id || this.#normalizeId(relativeKey);
|
|
2376
2449
|
this.#metadata[id] = {
|
|
2377
2450
|
type: "normal",
|
|
2378
2451
|
timestamp: Date.now(),
|
|
2452
|
+
...this.#metadata[id] ?? {},
|
|
2379
2453
|
...meta
|
|
2380
2454
|
};
|
|
2381
2455
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2397,6 +2471,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2397
2471
|
this.#metadata[id] = {
|
|
2398
2472
|
type: "normal",
|
|
2399
2473
|
timestamp: Date.now(),
|
|
2474
|
+
...this.#metadata[id] ?? {},
|
|
2400
2475
|
...meta
|
|
2401
2476
|
};
|
|
2402
2477
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2621,22 +2696,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2621
2696
|
await this.remove(joinPaths$1(this.#context.dataPath, "fs.bin"));
|
|
2622
2697
|
const message = new $.Message();
|
|
2623
2698
|
const fs = message.initRoot(FileSystem);
|
|
2624
|
-
const
|
|
2625
|
-
|
|
2626
|
-
await Promise.all(paths.map(async (path, index) => {
|
|
2699
|
+
const storage = fs._initStorage(Object.keys(this.#paths).length);
|
|
2700
|
+
await Promise.all(Object.values(this.#paths).map(async (path, index) => {
|
|
2627
2701
|
const code = await this.read(path);
|
|
2628
2702
|
const fd = storage.get(index);
|
|
2629
2703
|
fd.path = path;
|
|
2630
2704
|
fd.code = code || "";
|
|
2631
2705
|
}));
|
|
2632
|
-
const ids = fs._initIds(Object.keys(this
|
|
2633
|
-
Object.entries(this
|
|
2706
|
+
const ids = fs._initIds(Object.keys(this.#ids).length);
|
|
2707
|
+
Object.entries(this.#ids).filter(([, path]) => path).forEach(([id, path], index) => {
|
|
2634
2708
|
const fileId = ids.get(index);
|
|
2635
2709
|
fileId.id = id;
|
|
2636
2710
|
fileId.path = path;
|
|
2637
2711
|
});
|
|
2638
|
-
const metadata = fs._initMetadata(Object.keys(this
|
|
2639
|
-
Object.entries(this
|
|
2712
|
+
const metadata = fs._initMetadata(Object.keys(this.#metadata).length);
|
|
2713
|
+
Object.entries(this.#metadata).filter(([, value]) => value).forEach(([id, value], index) => {
|
|
2640
2714
|
const fileMetadata = metadata.get(index);
|
|
2641
2715
|
fileMetadata.id = id;
|
|
2642
2716
|
fileMetadata.type = value.type;
|
|
@@ -3318,19 +3392,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3318
3392
|
output: options.output
|
|
3319
3393
|
});
|
|
3320
3394
|
}
|
|
3321
|
-
return this.emit(code, entryPath, defu7(
|
|
3322
|
-
"name"
|
|
3323
|
-
]), {
|
|
3395
|
+
return this.emit(code, entryPath, defu7({
|
|
3324
3396
|
meta: {
|
|
3325
3397
|
type: "entry",
|
|
3326
3398
|
properties: {
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
"input.
|
|
3399
|
+
file: entryPath,
|
|
3400
|
+
name: options?.name,
|
|
3401
|
+
output: options?.output,
|
|
3402
|
+
"input.file": options?.input?.file,
|
|
3403
|
+
"input.name": options?.input?.name
|
|
3331
3404
|
}
|
|
3332
3405
|
}
|
|
3333
|
-
}
|
|
3406
|
+
}, omit(options, [
|
|
3407
|
+
"name"
|
|
3408
|
+
])));
|
|
3334
3409
|
}
|
|
3335
3410
|
/**
|
|
3336
3411
|
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
@@ -3349,19 +3424,20 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3349
3424
|
output: options?.output
|
|
3350
3425
|
});
|
|
3351
3426
|
}
|
|
3352
|
-
return this.emitSync(code, entryPath, defu7(
|
|
3353
|
-
"name"
|
|
3354
|
-
]), {
|
|
3427
|
+
return this.emitSync(code, entryPath, defu7({
|
|
3355
3428
|
meta: {
|
|
3356
3429
|
type: "entry",
|
|
3357
3430
|
properties: {
|
|
3431
|
+
file: entryPath,
|
|
3358
3432
|
name: options?.name,
|
|
3359
3433
|
output: options?.output,
|
|
3360
3434
|
"input.file": options?.input?.file,
|
|
3361
3435
|
"input.name": options?.input?.name
|
|
3362
3436
|
}
|
|
3363
3437
|
}
|
|
3364
|
-
}
|
|
3438
|
+
}, omit(options, [
|
|
3439
|
+
"name"
|
|
3440
|
+
])));
|
|
3365
3441
|
}
|
|
3366
3442
|
/**
|
|
3367
3443
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
@@ -4945,5 +5021,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4945
5021
|
};
|
|
4946
5022
|
|
|
4947
5023
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4948
|
-
//# sourceMappingURL=chunk-
|
|
4949
|
-
//# sourceMappingURL=chunk-
|
|
5024
|
+
//# sourceMappingURL=chunk-F7ZYHEFF.js.map
|
|
5025
|
+
//# sourceMappingURL=chunk-F7ZYHEFF.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-APCE4C3B.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-GYAWFCLJ.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-GYAWFCLJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkR6UTSBYI_cjs = require('./chunk-R6UTSBYI.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 = chunkR6UTSBYI_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 chunkR6UTSBYI_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-IR4MEQHU.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-IR4MEQHU.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkIR4MEQHU_cjs = require('./chunk-IR4MEQHU.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(chunkIR4MEQHU_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-K4UKAUQY.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-K4UKAUQY.cjs.map
|