powerlines 0.37.9 → 0.37.10
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-JKV7TOL3.cjs → chunk-5FYRJGIQ.cjs} +4 -4
- package/dist/{chunk-Q5H2KHNJ.js → chunk-7D6SUCAX.js} +3 -3
- package/dist/{chunk-VVY5RS6J.js → chunk-C4RZWPH2.js} +3 -3
- package/dist/{chunk-SKMSYK6B.js → chunk-E3OZOEKX.js} +3 -3
- package/dist/{chunk-3VYND6BA.js → chunk-GIDZSNXO.js} +14 -12
- package/dist/{chunk-ODTHFGCD.js → chunk-HDW34GEJ.js} +3 -3
- package/dist/{chunk-CPCPJ7QA.js → chunk-HWTUNKE2.js} +3 -3
- package/dist/chunk-KQI2OMD2.cjs +12 -0
- package/dist/{chunk-DFUX7D2N.cjs → chunk-MFWZHUKN.cjs} +14 -12
- package/dist/{chunk-PAE2RJLN.cjs → chunk-T2ARFMXK.cjs} +5 -5
- package/dist/{chunk-3V5BWZIX.cjs → chunk-WTSCEY5U.cjs} +4 -4
- package/dist/chunk-XWQ2AIIS.cjs +12 -0
- 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-I4ZNMVU2.cjs → chunk-AKPENYX2.cjs} +12 -10
- package/dist/lib/chunk-AKPENYX2.cjs.map +1 -0
- package/dist/lib/{chunk-ETI2WB2V.cjs → chunk-BUNUNXCW.cjs} +16 -16
- package/dist/lib/{chunk-ETI2WB2V.cjs.map → chunk-BUNUNXCW.cjs.map} +1 -1
- package/dist/lib/{chunk-4X52ZSIF.cjs → chunk-JYOSBNBU.cjs} +19 -19
- package/dist/lib/{chunk-4X52ZSIF.cjs.map → chunk-JYOSBNBU.cjs.map} +1 -1
- package/dist/lib/{chunk-DZCXA2HG.js → chunk-KT4ZWK5C.js} +6 -6
- package/dist/lib/chunk-KT4ZWK5C.js.map +1 -0
- package/dist/lib/{chunk-TURHONFH.cjs → chunk-LXIET55V.cjs} +6 -6
- package/dist/lib/{chunk-TURHONFH.cjs.map → chunk-LXIET55V.cjs.map} +1 -1
- package/dist/lib/{chunk-YTPWZARU.js → chunk-MBUEMVYR.js} +3 -3
- package/dist/lib/{chunk-YTPWZARU.js.map → chunk-MBUEMVYR.js.map} +1 -1
- package/dist/lib/{chunk-5FYLYAJ4.js → chunk-MTTMQLMN.js} +4 -4
- package/dist/lib/{chunk-5FYLYAJ4.js.map → chunk-MTTMQLMN.js.map} +1 -1
- package/dist/lib/{chunk-5CVQLYQ3.js → chunk-RXZPL6QN.js} +4 -4
- package/dist/lib/{chunk-5CVQLYQ3.js.map → chunk-RXZPL6QN.js.map} +1 -1
- package/dist/lib/{chunk-5KOOMGKJ.cjs → chunk-RYCMM3FS.cjs} +8 -8
- package/dist/lib/chunk-RYCMM3FS.cjs.map +1 -0
- package/dist/lib/{chunk-UOKSPMLS.js → chunk-TTMSSJT2.js} +12 -10
- package/dist/lib/chunk-TTMSSJT2.js.map +1 -0
- package/dist/lib/contexts/api-context.cjs +7 -7
- package/dist/lib/contexts/api-context.js +6 -6
- package/dist/lib/contexts/context.cjs +5 -5
- package/dist/lib/contexts/context.js +4 -4
- package/dist/lib/contexts/environment-context.cjs +6 -6
- package/dist/lib/contexts/environment-context.js +5 -5
- package/dist/lib/contexts/index.cjs +9 -9
- package/dist/lib/contexts/index.js +6 -6
- 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 +41 -41
- package/dist/lib/index.js +14 -14
- package/dist/lib/typescript/index.cjs +5 -5
- package/dist/lib/typescript/index.js +1 -1
- package/dist/lib/unplugin/factory.cjs +8 -8
- package/dist/lib/unplugin/factory.js +7 -7
- package/dist/lib/unplugin/index.cjs +9 -9
- package/dist/lib/unplugin/index.js +8 -8
- package/dist/lib/utilities/index.cjs +19 -19
- package/dist/lib/utilities/index.js +3 -3
- 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 +2 -2
- package/dist/chunk-56J7SUEP.cjs +0 -12
- package/dist/chunk-B6LUBCC2.cjs +0 -12
- package/dist/lib/chunk-5KOOMGKJ.cjs.map +0 -1
- package/dist/lib/chunk-DZCXA2HG.js.map +0 -1
- package/dist/lib/chunk-I4ZNMVU2.cjs.map +0 -1
- package/dist/lib/chunk-UOKSPMLS.js.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMFWZHUKN_cjs = require('./chunk-MFWZHUKN.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 chunkMFWZHUKN_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 chunk5FYRJGIQ_cjs = require('./chunk-5FYRJGIQ.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-T2ARFMXK.cjs');
|
|
8
|
+
require('./chunk-MFWZHUKN.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
|
+
chunk5FYRJGIQ_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-7D6SUCAX.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-C4RZWPH2.js';
|
|
4
|
+
import './chunk-GIDZSNXO.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkT2ARFMXK_cjs = require('./chunk-T2ARFMXK.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(chunkT2ARFMXK_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-5FYRJGIQ.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-5FYRJGIQ.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-C4RZWPH2.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-7D6SUCAX.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-7D6SUCAX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-GIDZSNXO.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-C4RZWPH2.js.map
|
|
138
|
+
//# sourceMappingURL=chunk-C4RZWPH2.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-BGBDDKML.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-C4RZWPH2.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-E3OZOEKX.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-E3OZOEKX.js.map
|
|
@@ -2306,9 +2306,11 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2306
2306
|
* @returns A promise that resolves when the file is written.
|
|
2307
2307
|
*/
|
|
2308
2308
|
async write(path, data = "", options = {}) {
|
|
2309
|
+
const meta = options.meta || {};
|
|
2310
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2309
2311
|
let code = data;
|
|
2310
2312
|
if (!options.skipFormat) {
|
|
2311
|
-
const resolvedConfig = await resolveConfig(this.#normalizePath(
|
|
2313
|
+
const resolvedConfig = await resolveConfig(this.#normalizePath(relativeKey));
|
|
2312
2314
|
if (resolvedConfig) {
|
|
2313
2315
|
code = await format(data, {
|
|
2314
2316
|
absolutePath: this.#normalizePath(path),
|
|
@@ -2316,13 +2318,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2316
2318
|
});
|
|
2317
2319
|
}
|
|
2318
2320
|
}
|
|
2319
|
-
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2320
2321
|
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)})`);
|
|
2321
|
-
const id =
|
|
2322
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
2322
2323
|
this.#metadata[id] = {
|
|
2323
|
-
|
|
2324
|
+
type: "normal",
|
|
2324
2325
|
timestamp: Date.now(),
|
|
2325
|
-
...
|
|
2326
|
+
...meta
|
|
2326
2327
|
};
|
|
2327
2328
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
2328
2329
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -2336,13 +2337,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2336
2337
|
* @param options - Optional parameters for writing the file.
|
|
2337
2338
|
*/
|
|
2338
2339
|
writeSync(path, data = "", options = {}) {
|
|
2340
|
+
const meta = options.meta || {};
|
|
2339
2341
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2340
2342
|
this.#log(LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file 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)})`);
|
|
2341
|
-
const id =
|
|
2343
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
2342
2344
|
this.#metadata[id] = {
|
|
2343
|
-
|
|
2345
|
+
type: "normal",
|
|
2344
2346
|
timestamp: Date.now(),
|
|
2345
|
-
...
|
|
2347
|
+
...meta
|
|
2346
2348
|
};
|
|
2347
2349
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
2348
2350
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -3319,7 +3321,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3319
3321
|
if (!isSetString(id)) {
|
|
3320
3322
|
throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
|
|
3321
3323
|
}
|
|
3322
|
-
return this.emit(code, id, defu7(options, {
|
|
3324
|
+
return this.emit(code, appendPath(id, this.builtinsPath), defu7(options, {
|
|
3323
3325
|
meta: {
|
|
3324
3326
|
type: "builtin",
|
|
3325
3327
|
id
|
|
@@ -3340,7 +3342,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3340
3342
|
if (!isSetString(id)) {
|
|
3341
3343
|
throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
|
|
3342
3344
|
}
|
|
3343
|
-
return this.emitSync(code, id, defu7(options, {
|
|
3345
|
+
return this.emitSync(code, appendPath(id, this.builtinsPath), defu7(options, {
|
|
3344
3346
|
meta: {
|
|
3345
3347
|
type: "builtin",
|
|
3346
3348
|
id
|
|
@@ -4881,5 +4883,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
4881
4883
|
};
|
|
4882
4884
|
|
|
4883
4885
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
|
|
4884
|
-
//# sourceMappingURL=chunk-
|
|
4885
|
-
//# sourceMappingURL=chunk-
|
|
4886
|
+
//# sourceMappingURL=chunk-GIDZSNXO.js.map
|
|
4887
|
+
//# sourceMappingURL=chunk-GIDZSNXO.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-C4RZWPH2.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-HDW34GEJ.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-HDW34GEJ.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-C4RZWPH2.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-HWTUNKE2.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-HWTUNKE2.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkT2ARFMXK_cjs = require('./chunk-T2ARFMXK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkT2ARFMXK_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-KQI2OMD2.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-KQI2OMD2.cjs.map
|
|
@@ -2335,9 +2335,11 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2335
2335
|
* @returns A promise that resolves when the file is written.
|
|
2336
2336
|
*/
|
|
2337
2337
|
async write(path, data = "", options = {}) {
|
|
2338
|
+
const meta = options.meta || {};
|
|
2339
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2338
2340
|
let code = data;
|
|
2339
2341
|
if (!options.skipFormat) {
|
|
2340
|
-
const resolvedConfig = await prettier.resolveConfig(this.#normalizePath(
|
|
2342
|
+
const resolvedConfig = await prettier.resolveConfig(this.#normalizePath(relativeKey));
|
|
2341
2343
|
if (resolvedConfig) {
|
|
2342
2344
|
code = await prettier.format(data, {
|
|
2343
2345
|
absolutePath: this.#normalizePath(path),
|
|
@@ -2345,13 +2347,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2345
2347
|
});
|
|
2346
2348
|
}
|
|
2347
2349
|
}
|
|
2348
|
-
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2349
2350
|
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)})`);
|
|
2350
|
-
const id =
|
|
2351
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
2351
2352
|
this.#metadata[id] = {
|
|
2352
|
-
|
|
2353
|
+
type: "normal",
|
|
2353
2354
|
timestamp: Date.now(),
|
|
2354
|
-
...
|
|
2355
|
+
...meta
|
|
2355
2356
|
};
|
|
2356
2357
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
2357
2358
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -2365,13 +2366,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2365
2366
|
* @param options - Optional parameters for writing the file.
|
|
2366
2367
|
*/
|
|
2367
2368
|
writeSync(path, data = "", options = {}) {
|
|
2369
|
+
const meta = options.meta || {};
|
|
2368
2370
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
2369
2371
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file 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)})`);
|
|
2370
|
-
const id =
|
|
2372
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
2371
2373
|
this.#metadata[id] = {
|
|
2372
|
-
|
|
2374
|
+
type: "normal",
|
|
2373
2375
|
timestamp: Date.now(),
|
|
2374
|
-
...
|
|
2376
|
+
...meta
|
|
2375
2377
|
};
|
|
2376
2378
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
2377
2379
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -3348,7 +3350,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3348
3350
|
if (!isSetString.isSetString(id)) {
|
|
3349
3351
|
throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
|
|
3350
3352
|
}
|
|
3351
|
-
return this.emit(code, id, defu7__default.default(options, {
|
|
3353
|
+
return this.emit(code, append.appendPath(id, this.builtinsPath), defu7__default.default(options, {
|
|
3352
3354
|
meta: {
|
|
3353
3355
|
type: "builtin",
|
|
3354
3356
|
id
|
|
@@ -3369,7 +3371,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
3369
3371
|
if (!isSetString.isSetString(id)) {
|
|
3370
3372
|
throw new Error(`The builtin id must be a non-empty string. Received: ${String(id)}`);
|
|
3371
3373
|
}
|
|
3372
|
-
return this.emitSync(code, id, defu7__default.default(options, {
|
|
3374
|
+
return this.emitSync(code, append.appendPath(id, this.builtinsPath), defu7__default.default(options, {
|
|
3373
3375
|
meta: {
|
|
3374
3376
|
type: "builtin",
|
|
3375
3377
|
id
|
|
@@ -4920,5 +4922,5 @@ exports.combineContexts = combineContexts;
|
|
|
4920
4922
|
exports.createLog = createLog;
|
|
4921
4923
|
exports.extendLog = extendLog;
|
|
4922
4924
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
4923
|
-
//# sourceMappingURL=chunk-
|
|
4924
|
-
//# sourceMappingURL=chunk-
|
|
4925
|
+
//# sourceMappingURL=chunk-MFWZHUKN.cjs.map
|
|
4926
|
+
//# sourceMappingURL=chunk-MFWZHUKN.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMFWZHUKN_cjs = require('./chunk-MFWZHUKN.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 = chunkMFWZHUKN_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 chunkMFWZHUKN_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-T2ARFMXK.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-T2ARFMXK.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 chunkT2ARFMXK_cjs = require('./chunk-T2ARFMXK.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(chunkT2ARFMXK_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-WTSCEY5U.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-WTSCEY5U.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkT2ARFMXK_cjs = require('./chunk-T2ARFMXK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkT2ARFMXK_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-XWQ2AIIS.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-XWQ2AIIS.cjs.map
|
package/dist/esbuild.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkWTSCEY5U_cjs = require('./chunk-WTSCEY5U.cjs');
|
|
6
6
|
require('./chunk-SE3RCXWI.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-T2ARFMXK.cjs');
|
|
8
|
+
require('./chunk-MFWZHUKN.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 chunkWTSCEY5U_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkWTSCEY5U_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkWTSCEY5U_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-E3OZOEKX.js';
|
|
2
2
|
import './chunk-BGBDDKML.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-C4RZWPH2.js';
|
|
4
|
+
import './chunk-GIDZSNXO.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 chunkT2ARFMXK_cjs = require('./chunk-T2ARFMXK.cjs');
|
|
6
|
+
require('./chunk-MFWZHUKN.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(chunkT2ARFMXK_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-C4RZWPH2.js';
|
|
2
|
+
import './chunk-GIDZSNXO.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 chunkMFWZHUKN_cjs = require('./chunk-MFWZHUKN.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 chunkMFWZHUKN_cjs.PowerlinesAPI.from(workspaceRoot, options);
|
|
31
31
|
}
|
|
32
32
|
chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
|
|
33
|
-
var index_default =
|
|
33
|
+
var index_default = chunkMFWZHUKN_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 chunkMFWZHUKN_cjs.FileId; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "FileMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMFWZHUKN_cjs.FileMetadata; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMFWZHUKN_cjs.FileMetadata_KeyValuePair; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "FileStorage", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMFWZHUKN_cjs.FileStorage; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "FileSystem", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMFWZHUKN_cjs.FileSystem; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMFWZHUKN_cjs.PowerlinesAPI; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMFWZHUKN_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-GIDZSNXO.js';
|
|
13
|
+
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-GIDZSNXO.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';
|
|
@@ -902,9 +902,11 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
902
902
|
* @returns A promise that resolves when the file is written.
|
|
903
903
|
*/
|
|
904
904
|
async write(path, data = "", options = {}) {
|
|
905
|
+
const meta = options.meta || {};
|
|
906
|
+
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
905
907
|
let code = data;
|
|
906
908
|
if (!options.skipFormat) {
|
|
907
|
-
const resolvedConfig = await prettier.resolveConfig(this.#normalizePath(
|
|
909
|
+
const resolvedConfig = await prettier.resolveConfig(this.#normalizePath(relativeKey));
|
|
908
910
|
if (resolvedConfig) {
|
|
909
911
|
code = await prettier.format(data, {
|
|
910
912
|
absolutePath: this.#normalizePath(path),
|
|
@@ -912,13 +914,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
912
914
|
});
|
|
913
915
|
}
|
|
914
916
|
}
|
|
915
|
-
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
916
917
|
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)})`);
|
|
917
|
-
const id =
|
|
918
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
918
919
|
this.#metadata[id] = {
|
|
919
|
-
|
|
920
|
+
type: "normal",
|
|
920
921
|
timestamp: Date.now(),
|
|
921
|
-
...
|
|
922
|
+
...meta
|
|
922
923
|
};
|
|
923
924
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
924
925
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -932,13 +933,14 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
932
933
|
* @param options - Optional parameters for writing the file.
|
|
933
934
|
*/
|
|
934
935
|
writeSync(path, data = "", options = {}) {
|
|
936
|
+
const meta = options.meta || {};
|
|
935
937
|
const { relativeKey, adapter } = this.#getStorage(options.storage || path);
|
|
936
938
|
this.#log(types.LogLevelLabel.TRACE, `Writing ${this.#normalizePath(relativeKey)} file 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)})`);
|
|
937
|
-
const id =
|
|
939
|
+
const id = meta.id || this.#normalizeId(relativeKey);
|
|
938
940
|
this.#metadata[id] = {
|
|
939
|
-
|
|
941
|
+
type: "normal",
|
|
940
942
|
timestamp: Date.now(),
|
|
941
|
-
...
|
|
943
|
+
...meta
|
|
942
944
|
};
|
|
943
945
|
this.#paths[id] = this.#normalizePath(relativeKey);
|
|
944
946
|
this.#ids[this.#normalizePath(relativeKey)] = id;
|
|
@@ -1228,5 +1230,5 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1228
1230
|
};
|
|
1229
1231
|
|
|
1230
1232
|
exports.VirtualFileSystem = VirtualFileSystem;
|
|
1231
|
-
//# sourceMappingURL=chunk-
|
|
1232
|
-
//# sourceMappingURL=chunk-
|
|
1233
|
+
//# sourceMappingURL=chunk-AKPENYX2.cjs.map
|
|
1234
|
+
//# sourceMappingURL=chunk-AKPENYX2.cjs.map
|