powerlines 0.37.23 → 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-PQ6DDPXP.js → chunk-4ENEIHKC.js} +3 -3
- package/dist/chunk-4IXGEWKB.cjs +12 -0
- package/dist/{chunk-Z7KIQFLN.js → chunk-APCE4C3B.js} +3 -3
- package/dist/{chunk-DWF4GVXQ.cjs → chunk-DE5IDYUO.cjs} +4 -4
- package/dist/{chunk-3XEOJ3TS.js → chunk-F7ZYHEFF.js} +48 -8
- package/dist/{chunk-UQ7LY7EU.js → chunk-GYAWFCLJ.js} +3 -3
- package/dist/{chunk-C3TWAGFQ.cjs → chunk-IR4MEQHU.cjs} +5 -5
- package/dist/{chunk-UZV6LCRL.cjs → chunk-K4UKAUQY.cjs} +4 -4
- package/dist/{chunk-R7IUNKL4.cjs → chunk-R6UTSBYI.cjs} +48 -8
- package/dist/chunk-SPHARZBB.cjs +12 -0
- package/dist/{chunk-APLBM72X.js → chunk-SZ2ZJ7D6.js} +3 -3
- package/dist/{chunk-D4L3REG4.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-ZYQHFUU6.cjs → chunk-JFA7OW2I.cjs} +16 -16
- package/dist/lib/{chunk-ZYQHFUU6.cjs.map → chunk-JFA7OW2I.cjs.map} +1 -1
- package/dist/lib/{chunk-EUG7HXQY.js → chunk-KFT5AKNL.js} +4 -4
- package/dist/lib/{chunk-EUG7HXQY.js.map → chunk-KFT5AKNL.js.map} +1 -1
- package/dist/lib/{chunk-NP43P5WN.cjs → chunk-MEZZ76LR.cjs} +5 -5
- package/dist/lib/{chunk-NP43P5WN.cjs.map → chunk-MEZZ76LR.cjs.map} +1 -1
- package/dist/lib/{chunk-Y2IR6IBT.cjs → chunk-O33UNFHZ.cjs} +19 -19
- package/dist/lib/{chunk-Y2IR6IBT.cjs.map → chunk-O33UNFHZ.cjs.map} +1 -1
- package/dist/lib/{chunk-5WSRLNW3.cjs → chunk-PJQR4XNF.cjs} +48 -8
- package/dist/lib/chunk-PJQR4XNF.cjs.map +1 -0
- package/dist/lib/{chunk-UKH6QWNB.js → chunk-TCM3STGS.js} +4 -4
- package/dist/lib/{chunk-UKH6QWNB.js.map → chunk-TCM3STGS.js.map} +1 -1
- package/dist/lib/{chunk-KAYP2ZET.js → chunk-UJ5TICQ2.js} +3 -3
- package/dist/lib/{chunk-KAYP2ZET.js.map → chunk-UJ5TICQ2.js.map} +1 -1
- package/dist/lib/{chunk-GAIS4GMK.js → chunk-UUBS5Z5H.js} +48 -8
- package/dist/lib/chunk-UUBS5Z5H.js.map +1 -0
- package/dist/lib/{chunk-Y542GHNE.cjs → chunk-XUWN6WZH.cjs} +6 -6
- package/dist/lib/{chunk-Y542GHNE.cjs.map → chunk-XUWN6WZH.cjs.map} +1 -1
- package/dist/lib/{chunk-K3NVHAWK.js → chunk-YTT66LRY.js} +3 -3
- package/dist/lib/{chunk-K3NVHAWK.js.map → chunk-YTT66LRY.js.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 +7 -7
- package/dist/chunk-4QCZWJMW.cjs +0 -12
- package/dist/chunk-D56IP3ZO.cjs +0 -12
- package/dist/lib/chunk-5WSRLNW3.cjs.map +0 -1
- package/dist/lib/chunk-GAIS4GMK.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.
|
|
@@ -2400,9 +2434,15 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2400
2434
|
async write(path, data = "", options = {}) {
|
|
2401
2435
|
const meta = options.meta ?? {};
|
|
2402
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)})`);
|
|
2403
2438
|
let code = data;
|
|
2404
|
-
|
|
2405
|
-
|
|
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;
|
|
2406
2446
|
}
|
|
2407
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)})`);
|
|
2408
2448
|
const id = meta.id || this.#normalizeId(relativeKey);
|
|
@@ -4981,5 +5021,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4981
5021
|
};
|
|
4982
5022
|
|
|
4983
5023
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4984
|
-
//# sourceMappingURL=chunk-
|
|
4985
|
-
//# 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
|
|
@@ -1870,7 +1870,9 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1870
1870
|
const result2 = new _VirtualFileSystem(context, fs);
|
|
1871
1871
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1872
1872
|
await Promise.all(fs.storage.values().map(async (file) => {
|
|
1873
|
-
|
|
1873
|
+
if (file.path && file.code) {
|
|
1874
|
+
await result2.write(file.path, file.code);
|
|
1875
|
+
}
|
|
1874
1876
|
}));
|
|
1875
1877
|
}
|
|
1876
1878
|
}
|
|
@@ -1915,19 +1917,51 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1915
1917
|
* @returns A new virtual file system instance.
|
|
1916
1918
|
*/
|
|
1917
1919
|
static createSync(context) {
|
|
1920
|
+
context.debug("Starting virtual file system (VFS) initialization processes...");
|
|
1918
1921
|
if (!context.config.skipCache && exists.existsSync(joinPaths.joinPaths(context.dataPath, "fs.bin"))) {
|
|
1919
1922
|
const buffer$1 = buffer.readFileBufferSync(joinPaths.joinPaths(context.dataPath, "fs.bin"));
|
|
1920
1923
|
const message2 = new $__namespace.Message(buffer$1, false);
|
|
1921
1924
|
const fs = message2.getRoot(FileSystem);
|
|
1922
|
-
const
|
|
1925
|
+
const result2 = new _VirtualFileSystem(context, fs);
|
|
1923
1926
|
if (fs._hasStorage() && fs.storage.length > 0) {
|
|
1924
1927
|
fs.storage.values().map((file) => {
|
|
1925
|
-
|
|
1928
|
+
result2.writeSync(file.path, file.code);
|
|
1926
1929
|
});
|
|
1927
1930
|
}
|
|
1928
1931
|
}
|
|
1929
1932
|
const message = new $__namespace.Message();
|
|
1930
|
-
|
|
1933
|
+
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1934
|
+
result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
|
|
1935
|
+
if (result.metadata) {
|
|
1936
|
+
result.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
|
|
1937
|
+
const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1938
|
+
if (meta.properties) {
|
|
1939
|
+
const typeDefinition = {
|
|
1940
|
+
file: path
|
|
1941
|
+
};
|
|
1942
|
+
if (isSetString.isSetString(meta.properties.name)) {
|
|
1943
|
+
typeDefinition.name = meta.properties.name;
|
|
1944
|
+
}
|
|
1945
|
+
if (isSetString.isSetString(meta.properties["input.file"]) || isSetString.isSetString(meta.properties["input.name"])) {
|
|
1946
|
+
typeDefinition.input ??= {};
|
|
1947
|
+
if (isSetString.isSetString(meta.properties["input.file"])) {
|
|
1948
|
+
typeDefinition.input.file = meta.properties["input.file"];
|
|
1949
|
+
}
|
|
1950
|
+
if (isSetString.isSetString(meta.properties["input.name"])) {
|
|
1951
|
+
typeDefinition.input.name = meta.properties["input.name"];
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
if (isSetString.isSetString(meta.properties.output)) {
|
|
1955
|
+
typeDefinition.output = meta.properties.output;
|
|
1956
|
+
}
|
|
1957
|
+
return typeDefinition;
|
|
1958
|
+
}
|
|
1959
|
+
return null;
|
|
1960
|
+
}).filter(Boolean);
|
|
1961
|
+
result.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
|
|
1962
|
+
context.entry = entry;
|
|
1963
|
+
}
|
|
1964
|
+
return result;
|
|
1931
1965
|
}
|
|
1932
1966
|
/**
|
|
1933
1967
|
* A map of file ids to their metadata.
|
|
@@ -2429,9 +2463,15 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2429
2463
|
async write(path, data = "", options = {}) {
|
|
2430
2464
|
const meta = options.meta ?? {};
|
|
2431
2465
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2466
|
+
this.#log(types.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.prettyBytes(new buffer$1.Blob(toArray.toArray(data)).size)})`);
|
|
2432
2467
|
let code = data;
|
|
2433
|
-
|
|
2434
|
-
|
|
2468
|
+
try {
|
|
2469
|
+
if (!options.skipFormat) {
|
|
2470
|
+
code = await format(this.#normalizePath(path), data);
|
|
2471
|
+
}
|
|
2472
|
+
} catch (err) {
|
|
2473
|
+
this.#log(types.LogLevelLabel.WARN, `Failed to format file ${this.#normalizePath(path)} before writing: ${err.message}`);
|
|
2474
|
+
code = data;
|
|
2435
2475
|
}
|
|
2436
2476
|
this.#log(types.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.prettyBytes(new buffer$1.Blob(toArray.toArray(code)).size)})`);
|
|
2437
2477
|
const id = meta.id || this.#normalizeId(relativeKey);
|
|
@@ -5020,5 +5060,5 @@ exports.combineContexts = combineContexts;
|
|
|
5020
5060
|
exports.createLog = createLog;
|
|
5021
5061
|
exports.extendLog = extendLog;
|
|
5022
5062
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5023
|
-
//# sourceMappingURL=chunk-
|
|
5024
|
-
//# sourceMappingURL=chunk-
|
|
5063
|
+
//# sourceMappingURL=chunk-R6UTSBYI.cjs.map
|
|
5064
|
+
//# sourceMappingURL=chunk-R6UTSBYI.cjs.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 rolldown = unplugin.createRolldownPlugin(chunkIR4MEQHU_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-SPHARZBB.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-SPHARZBB.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-APCE4C3B.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-SZ2ZJ7D6.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-SZ2ZJ7D6.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 { 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-ZUGCJPUV.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-ZUGCJPUV.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 chunkK4UKAUQY_cjs = require('./chunk-K4UKAUQY.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,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 chunkK4UKAUQY_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkK4UKAUQY_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkK4UKAUQY_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-ZUGCJPUV.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';
|
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 chunkIR4MEQHU_cjs = require('./chunk-IR4MEQHU.cjs');
|
|
6
|
+
require('./chunk-R6UTSBYI.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(chunkIR4MEQHU_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-APCE4C3B.js';
|
|
2
|
+
import './chunk-F7ZYHEFF.js';
|
|
3
3
|
import './chunk-PQXP7XQK.js';
|
|
4
4
|
import './chunk-NITQ5IYP.js';
|
|
5
5
|
import './chunk-2MYPFASJ.js';
|
package/dist/index.cjs
CHANGED
|
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
|
|
|
13
13
|
require('./chunk-D6GGZQLC.cjs');
|
|
14
14
|
var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
|
|
15
15
|
var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunkR6UTSBYI_cjs = require('./chunk-R6UTSBYI.cjs');
|
|
17
17
|
var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
|
|
18
18
|
var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
|
|
19
19
|
var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
|
|
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
|
|
|
27
27
|
async function createPowerlines(options = {}) {
|
|
28
28
|
options.root ??= process.cwd();
|
|
29
29
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
|
|
30
|
-
return
|
|
30
|
+
return chunkR6UTSBYI_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkR6UTSBYI_cjs.PowerlinesAPI;
|
|
34
34
|
|
|
35
35
|
Object.defineProperty(exports, "STORAGE_PRESETS", {
|
|
36
36
|
enumerable: true,
|
|
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
|
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "FileId", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkR6UTSBYI_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkR6UTSBYI_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkR6UTSBYI_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkR6UTSBYI_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkR6UTSBYI_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkR6UTSBYI_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkR6UTSBYI_cjs._capnpFileId; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
|
|
80
80
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
|
|
|
9
9
|
import './chunk-OD4BINRW.js';
|
|
10
10
|
export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
|
|
11
11
|
export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
|
|
12
|
-
import { PowerlinesAPI } from './chunk-
|
|
13
|
-
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-
|
|
12
|
+
import { PowerlinesAPI } from './chunk-F7ZYHEFF.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-F7ZYHEFF.js';
|
|
14
14
|
export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
|
|
15
15
|
export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
|
|
16
16
|
export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';
|