powerlines 0.37.21 → 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-STSTFZT2.js → chunk-3XEOJ3TS.js} +89 -48
- package/dist/chunk-4QCZWJMW.cjs +12 -0
- package/dist/{chunk-GUFYA64E.js → chunk-APLBM72X.js} +3 -3
- package/dist/{chunk-LQZK77AH.cjs → chunk-C3TWAGFQ.cjs} +5 -5
- package/dist/{chunk-AQG66EUK.js → chunk-D4L3REG4.js} +3 -3
- package/dist/chunk-D56IP3ZO.cjs +12 -0
- package/dist/{chunk-KRQKJHEH.cjs → chunk-DWF4GVXQ.cjs} +4 -4
- package/dist/{chunk-QVZ32P2J.js → chunk-PQ6DDPXP.js} +3 -3
- package/dist/{chunk-J7FOWGCH.cjs → chunk-R7IUNKL4.cjs} +89 -48
- package/dist/{chunk-Y6A4FTVN.js → chunk-UQ7LY7EU.js} +3 -3
- package/dist/{chunk-OZZ65IVY.cjs → chunk-UZV6LCRL.cjs} +4 -4
- package/dist/{chunk-7Q4TUBXJ.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/build/index.d.cts +1 -1
- package/dist/lib/build/index.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +1 -1
- package/dist/lib/build/unbuild.d.ts +1 -1
- package/dist/lib/{chunk-C6CJM3EI.cjs → chunk-5WSRLNW3.cjs} +52 -14
- package/dist/lib/chunk-5WSRLNW3.cjs.map +1 -0
- package/dist/lib/{chunk-ZH6OZFGY.js → chunk-EUG7HXQY.js} +6 -5
- package/dist/lib/chunk-EUG7HXQY.js.map +1 -0
- package/dist/lib/{chunk-ZTBWCQH5.js → chunk-GAIS4GMK.js} +52 -14
- package/dist/lib/chunk-GAIS4GMK.js.map +1 -0
- package/dist/lib/{chunk-LD73LMAE.js → chunk-K3NVHAWK.js} +38 -36
- package/dist/lib/chunk-K3NVHAWK.js.map +1 -0
- package/dist/lib/{chunk-2L77PLFS.js → chunk-KAYP2ZET.js} +3 -3
- package/dist/lib/{chunk-2L77PLFS.js.map → chunk-KAYP2ZET.js.map} +1 -1
- package/dist/lib/{chunk-MOCQ266V.cjs → chunk-NP43P5WN.cjs} +40 -38
- package/dist/lib/chunk-NP43P5WN.cjs.map +1 -0
- package/dist/lib/{chunk-4JLVGWHR.js → chunk-UKH6QWNB.js} +4 -4
- package/dist/lib/{chunk-4JLVGWHR.js.map → chunk-UKH6QWNB.js.map} +1 -1
- package/dist/lib/{chunk-LMXKPOEX.cjs → chunk-Y2IR6IBT.cjs} +19 -19
- package/dist/lib/{chunk-LMXKPOEX.cjs.map → chunk-Y2IR6IBT.cjs.map} +1 -1
- package/dist/lib/{chunk-GIYLCTW5.cjs → chunk-Y542GHNE.cjs} +6 -6
- package/dist/lib/{chunk-GIYLCTW5.cjs.map → chunk-Y542GHNE.cjs.map} +1 -1
- package/dist/lib/{chunk-SVAHW2JC.cjs → chunk-ZYQHFUU6.cjs} +18 -17
- package/dist/lib/chunk-ZYQHFUU6.cjs.map +1 -0
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +1 -1
- package/dist/lib/contexts/api-context.d.ts +1 -1
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +1 -5
- package/dist/lib/contexts/context.d.ts +1 -5
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +1 -1
- package/dist/lib/contexts/environment-context.d.ts +1 -1
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +1 -1
- package/dist/lib/contexts/index.d.ts +1 -1
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +1 -1
- package/dist/lib/contexts/plugin-context.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-CFBs3Fok.d.cts → internal-Dt8PM9M2.d.cts} +5 -1
- package/dist/lib/{internal-Dlj-vo3a.d.ts → internal-DyXNBori.d.ts} +5 -1
- 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/types/internal.d.cts +5 -1
- package/dist/types/internal.d.ts +5 -1
- 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-4QATNI7W.cjs +0 -12
- package/dist/chunk-P3RYMCAA.cjs +0 -12
- package/dist/lib/chunk-C6CJM3EI.cjs.map +0 -1
- package/dist/lib/chunk-LD73LMAE.js.map +0 -1
- package/dist/lib/chunk-MOCQ266V.cjs.map +0 -1
- package/dist/lib/chunk-SVAHW2JC.cjs.map +0 -1
- package/dist/lib/chunk-ZH6OZFGY.js.map +0 -1
- package/dist/lib/chunk-ZTBWCQH5.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';
|
|
@@ -1833,6 +1833,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1833
1833
|
* @returns A promise that resolves to a new virtual file system instance.
|
|
1834
1834
|
*/
|
|
1835
1835
|
static async create(context) {
|
|
1836
|
+
context.debug("Starting virtual file system (VFS) initialization processes...");
|
|
1836
1837
|
if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
|
|
1837
1838
|
const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
|
|
1838
1839
|
const message2 = new $.Message(buffer, false);
|
|
@@ -1846,8 +1847,10 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1846
1847
|
}
|
|
1847
1848
|
const message = new $.Message();
|
|
1848
1849
|
const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
|
|
1850
|
+
result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
|
|
1849
1851
|
if (result.metadata) {
|
|
1850
|
-
|
|
1852
|
+
result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
|
|
1853
|
+
const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
|
|
1851
1854
|
if (meta.properties) {
|
|
1852
1855
|
const typeDefinition = {
|
|
1853
1856
|
file: path
|
|
@@ -1871,7 +1874,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1871
1874
|
}
|
|
1872
1875
|
return null;
|
|
1873
1876
|
}).filter(Boolean);
|
|
1874
|
-
|
|
1877
|
+
result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
|
|
1878
|
+
context.entry = entry;
|
|
1875
1879
|
}
|
|
1876
1880
|
return result;
|
|
1877
1881
|
}
|
|
@@ -1903,7 +1907,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1903
1907
|
return new Proxy(this.#metadata, {
|
|
1904
1908
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1905
1909
|
return target[this.#normalizeId(prop)];
|
|
1906
|
-
}, "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")
|
|
1907
1922
|
});
|
|
1908
1923
|
}
|
|
1909
1924
|
/**
|
|
@@ -1913,7 +1928,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1913
1928
|
return new Proxy(this.#paths, {
|
|
1914
1929
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1915
1930
|
return target[this.#normalizePath(prop)];
|
|
1916
|
-
}, "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")
|
|
1917
1943
|
});
|
|
1918
1944
|
}
|
|
1919
1945
|
/**
|
|
@@ -1923,7 +1949,18 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1923
1949
|
return new Proxy(this.#paths, {
|
|
1924
1950
|
get: /* @__PURE__ */ __name((target, prop) => {
|
|
1925
1951
|
return target[this.#normalizeId(prop)];
|
|
1926
|
-
}, "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")
|
|
1927
1964
|
});
|
|
1928
1965
|
}
|
|
1929
1966
|
/**
|
|
@@ -2372,6 +2409,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2372
2409
|
this.#metadata[id] = {
|
|
2373
2410
|
type: "normal",
|
|
2374
2411
|
timestamp: Date.now(),
|
|
2412
|
+
...this.#metadata[id] ?? {},
|
|
2375
2413
|
...meta
|
|
2376
2414
|
};
|
|
2377
2415
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2393,6 +2431,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2393
2431
|
this.#metadata[id] = {
|
|
2394
2432
|
type: "normal",
|
|
2395
2433
|
timestamp: Date.now(),
|
|
2434
|
+
...this.#metadata[id] ?? {},
|
|
2396
2435
|
...meta
|
|
2397
2436
|
};
|
|
2398
2437
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
@@ -2617,22 +2656,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2617
2656
|
await this.remove(joinPaths$1(this.#context.dataPath, "fs.bin"));
|
|
2618
2657
|
const message = new $.Message();
|
|
2619
2658
|
const fs = message.initRoot(FileSystem);
|
|
2620
|
-
const
|
|
2621
|
-
|
|
2622
|
-
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) => {
|
|
2623
2661
|
const code = await this.read(path);
|
|
2624
2662
|
const fd = storage.get(index);
|
|
2625
2663
|
fd.path = path;
|
|
2626
2664
|
fd.code = code || "";
|
|
2627
2665
|
}));
|
|
2628
|
-
const ids = fs._initIds(Object.keys(this
|
|
2629
|
-
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) => {
|
|
2630
2668
|
const fileId = ids.get(index);
|
|
2631
2669
|
fileId.id = id;
|
|
2632
2670
|
fileId.path = path;
|
|
2633
2671
|
});
|
|
2634
|
-
const metadata = fs._initMetadata(Object.keys(this
|
|
2635
|
-
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) => {
|
|
2636
2674
|
const fileMetadata = metadata.get(index);
|
|
2637
2675
|
fileMetadata.id = id;
|
|
2638
2676
|
fileMetadata.type = value.type;
|
|
@@ -2720,7 +2758,9 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2720
2758
|
*
|
|
2721
2759
|
* @internal
|
|
2722
2760
|
*/
|
|
2723
|
-
#internal = {
|
|
2761
|
+
#internal = {
|
|
2762
|
+
entry: []
|
|
2763
|
+
};
|
|
2724
2764
|
#workspaceConfig;
|
|
2725
2765
|
#checksum = null;
|
|
2726
2766
|
#buildId = uuid();
|
|
@@ -2812,10 +2852,6 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2812
2852
|
*/
|
|
2813
2853
|
resolver;
|
|
2814
2854
|
/**
|
|
2815
|
-
* An internal object containing the added resolved entry type definitions for the project.
|
|
2816
|
-
*/
|
|
2817
|
-
_entry = null;
|
|
2818
|
-
/**
|
|
2819
2855
|
* The resolved configuration options
|
|
2820
2856
|
*/
|
|
2821
2857
|
resolvePatterns = [];
|
|
@@ -2845,13 +2881,13 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2845
2881
|
* The resolved entry type definitions for the project
|
|
2846
2882
|
*/
|
|
2847
2883
|
get entry() {
|
|
2848
|
-
return resolveEntriesSync(this, !this.
|
|
2884
|
+
return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray(this.config.entry) : this.$$internal.entry);
|
|
2849
2885
|
}
|
|
2850
2886
|
/**
|
|
2851
2887
|
* Sets the resolved entry type definitions for the project
|
|
2852
2888
|
*/
|
|
2853
2889
|
set entry(value) {
|
|
2854
|
-
this.
|
|
2890
|
+
this.$$internal.entry = value;
|
|
2855
2891
|
}
|
|
2856
2892
|
/**
|
|
2857
2893
|
* The TypeScript configuration parsed from the tsconfig file
|
|
@@ -3308,26 +3344,28 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3308
3344
|
*/
|
|
3309
3345
|
async emitEntry(code, path, options = {}) {
|
|
3310
3346
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3311
|
-
this.
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
]), {
|
|
3347
|
+
if (this.$$internal.entry) {
|
|
3348
|
+
this.$$internal.entry.push({
|
|
3349
|
+
name: options.name,
|
|
3350
|
+
file: entryPath,
|
|
3351
|
+
input: options.input,
|
|
3352
|
+
output: options.output
|
|
3353
|
+
});
|
|
3354
|
+
}
|
|
3355
|
+
return this.emit(code, entryPath, defu7({
|
|
3321
3356
|
meta: {
|
|
3322
3357
|
type: "entry",
|
|
3323
3358
|
properties: {
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
"input.
|
|
3359
|
+
file: entryPath,
|
|
3360
|
+
name: options?.name,
|
|
3361
|
+
output: options?.output,
|
|
3362
|
+
"input.file": options?.input?.file,
|
|
3363
|
+
"input.name": options?.input?.name
|
|
3328
3364
|
}
|
|
3329
3365
|
}
|
|
3330
|
-
}
|
|
3366
|
+
}, omit(options, [
|
|
3367
|
+
"name"
|
|
3368
|
+
])));
|
|
3331
3369
|
}
|
|
3332
3370
|
/**
|
|
3333
3371
|
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
@@ -3338,26 +3376,28 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3338
3376
|
*/
|
|
3339
3377
|
emitEntrySync(code, path, options = {}) {
|
|
3340
3378
|
const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
|
|
3341
|
-
this.
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
]), {
|
|
3379
|
+
if (this.$$internal.entry) {
|
|
3380
|
+
this.$$internal.entry.push({
|
|
3381
|
+
name: options?.name,
|
|
3382
|
+
file: entryPath,
|
|
3383
|
+
input: options?.input,
|
|
3384
|
+
output: options?.output
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
return this.emitSync(code, entryPath, defu7({
|
|
3351
3388
|
meta: {
|
|
3352
3389
|
type: "entry",
|
|
3353
3390
|
properties: {
|
|
3391
|
+
file: entryPath,
|
|
3354
3392
|
name: options?.name,
|
|
3355
3393
|
output: options?.output,
|
|
3356
3394
|
"input.file": options?.input?.file,
|
|
3357
3395
|
"input.name": options?.input?.name
|
|
3358
3396
|
}
|
|
3359
3397
|
}
|
|
3360
|
-
}
|
|
3398
|
+
}, omit(options, [
|
|
3399
|
+
"name"
|
|
3400
|
+
])));
|
|
3361
3401
|
}
|
|
3362
3402
|
/**
|
|
3363
3403
|
* Resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
@@ -4297,7 +4337,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4297
4337
|
const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
|
|
4298
4338
|
api.#context.$$internal = {
|
|
4299
4339
|
api,
|
|
4300
|
-
addPlugin: api.#addPlugin.bind(api)
|
|
4340
|
+
addPlugin: api.#addPlugin.bind(api),
|
|
4341
|
+
entry: []
|
|
4301
4342
|
};
|
|
4302
4343
|
for (const plugin of api.context.config.plugins ?? []) {
|
|
4303
4344
|
await api.#addPlugin(plugin);
|
|
@@ -4940,5 +4981,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4940
4981
|
};
|
|
4941
4982
|
|
|
4942
4983
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4943
|
-
//# sourceMappingURL=chunk-
|
|
4944
|
-
//# 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
|