powerlines 0.37.44 → 0.37.46
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-V2LGBQ7I.js → chunk-2KFVP7PK.js} +58 -47
- package/dist/{chunk-5DVNYVUC.cjs → chunk-5HQYRBKT.cjs} +4 -4
- package/dist/chunk-7OGAS5PG.cjs +12 -0
- package/dist/{chunk-HEAFJGIQ.js → chunk-BG4PIMQN.js} +3 -3
- package/dist/{chunk-3UXCOD4O.js → chunk-DFLUJMCI.js} +3 -3
- package/dist/{chunk-5PUHX2LD.cjs → chunk-ENEMWUFY.cjs} +4 -4
- package/dist/chunk-FBUBCGXH.cjs +12 -0
- package/dist/{chunk-WT25CKUZ.cjs → chunk-RULSJ2SK.cjs} +5 -5
- package/dist/{chunk-KCC6ZVOH.cjs → chunk-RUYGKNBM.cjs} +58 -47
- package/dist/{chunk-3WIREKNH.js → chunk-ST2QOD7K.js} +3 -3
- package/dist/{chunk-KLVDIUY7.js → chunk-SV5CZ6T5.js} +3 -3
- package/dist/{chunk-UQRCBAVS.js → chunk-YJRPFM2Q.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/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +12 -12
- package/dist/lib/build/index.js +4 -4
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/{chunk-7SGO34YW.js → chunk-2OW63XO3.js} +3 -3
- package/dist/lib/{chunk-7SGO34YW.js.map → chunk-2OW63XO3.js.map} +1 -1
- package/dist/lib/{chunk-VQZDGNQY.cjs → chunk-2XCDEMMO.cjs} +39 -40
- package/dist/lib/chunk-2XCDEMMO.cjs.map +1 -0
- package/dist/lib/{chunk-MF3QRNAH.cjs → chunk-46GTIY7J.cjs} +4 -4
- package/dist/lib/{chunk-MF3QRNAH.cjs.map → chunk-46GTIY7J.cjs.map} +1 -1
- package/dist/lib/{chunk-PI3PHTRX.cjs → chunk-5QBG6QCZ.cjs} +6 -6
- package/dist/lib/{chunk-PI3PHTRX.cjs.map → chunk-5QBG6QCZ.cjs.map} +1 -1
- package/dist/lib/{chunk-DLTSMAQU.js → chunk-7XIWJ5IH.js} +3 -3
- package/dist/lib/{chunk-DLTSMAQU.js.map → chunk-7XIWJ5IH.js.map} +1 -1
- package/dist/lib/{chunk-W335QXN6.cjs → chunk-AX3FBF6F.cjs} +4 -4
- package/dist/lib/{chunk-W335QXN6.cjs.map → chunk-AX3FBF6F.cjs.map} +1 -1
- package/dist/lib/{chunk-V5QEG5KI.js → chunk-DXM5MX7M.js} +21 -7
- package/dist/lib/chunk-DXM5MX7M.js.map +1 -0
- package/dist/lib/{chunk-WDLQTF7H.cjs → chunk-EQLYPKNF.cjs} +19 -19
- package/dist/lib/{chunk-WDLQTF7H.cjs.map → chunk-EQLYPKNF.cjs.map} +1 -1
- package/dist/lib/{chunk-RNTCGHUN.cjs → chunk-GKUDVJPX.cjs} +4 -4
- package/dist/lib/{chunk-RNTCGHUN.cjs.map → chunk-GKUDVJPX.cjs.map} +1 -1
- package/dist/lib/{chunk-75ZEC2OW.js → chunk-HMFL5QT6.js} +3 -3
- package/dist/lib/{chunk-75ZEC2OW.js.map → chunk-HMFL5QT6.js.map} +1 -1
- package/dist/lib/{chunk-HVVCPRH4.js → chunk-IQXV4B5Z.js} +3 -3
- package/dist/lib/{chunk-HVVCPRH4.js.map → chunk-IQXV4B5Z.js.map} +1 -1
- package/dist/lib/{chunk-AZRQDCQ6.js → chunk-IYGMYKFU.js} +6 -6
- package/dist/lib/chunk-IYGMYKFU.js.map +1 -0
- package/dist/lib/{chunk-3DXTB6HW.cjs → chunk-LCVRVKWP.cjs} +4 -4
- package/dist/lib/{chunk-3DXTB6HW.cjs.map → chunk-LCVRVKWP.cjs.map} +1 -1
- package/dist/lib/{chunk-R6FS4GTA.cjs → chunk-LXD3CZ3T.cjs} +33 -19
- package/dist/lib/chunk-LXD3CZ3T.cjs.map +1 -0
- package/dist/lib/{chunk-ENCMVOF2.cjs → chunk-MWW5SYZW.cjs} +4 -4
- package/dist/lib/{chunk-ENCMVOF2.cjs.map → chunk-MWW5SYZW.cjs.map} +1 -1
- package/dist/lib/{chunk-NEINAB3V.js → chunk-PTVOWTSC.js} +4 -4
- package/dist/lib/{chunk-NEINAB3V.js.map → chunk-PTVOWTSC.js.map} +1 -1
- package/dist/lib/{chunk-DCR5SAMV.cjs → chunk-QOL47PXI.cjs} +8 -8
- package/dist/lib/{chunk-DCR5SAMV.cjs.map → chunk-QOL47PXI.cjs.map} +1 -1
- package/dist/lib/{chunk-YQKIPMK7.js → chunk-R7AYD5WD.js} +3 -3
- package/dist/lib/{chunk-YQKIPMK7.js.map → chunk-R7AYD5WD.js.map} +1 -1
- package/dist/lib/{chunk-SVVX5O6H.js → chunk-VL5H4HKR.js} +3 -3
- package/dist/lib/{chunk-SVVX5O6H.js.map → chunk-VL5H4HKR.js.map} +1 -1
- package/dist/lib/{chunk-UNN3W6R6.js → chunk-VZCNKJBT.js} +40 -41
- package/dist/lib/chunk-VZCNKJBT.js.map +1 -0
- package/dist/lib/{chunk-ASOA4TMY.js → chunk-WPRZ6Y3Q.js} +4 -4
- package/dist/lib/{chunk-ASOA4TMY.js.map → chunk-WPRZ6Y3Q.js.map} +1 -1
- package/dist/lib/{chunk-U2U3JFI4.cjs → chunk-ZQG74VOL.cjs} +6 -6
- package/dist/lib/chunk-ZQG74VOL.cjs.map +1 -0
- package/dist/lib/contexts/api-context.cjs +6 -6
- package/dist/lib/contexts/api-context.js +5 -5
- package/dist/lib/contexts/context.cjs +4 -4
- package/dist/lib/contexts/context.js +3 -3
- package/dist/lib/contexts/environment-context.cjs +5 -5
- package/dist/lib/contexts/environment-context.js +4 -4
- package/dist/lib/contexts/index.cjs +8 -8
- package/dist/lib/contexts/index.js +5 -5
- package/dist/lib/entry.cjs +10 -10
- package/dist/lib/entry.js +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.d.cts +2 -2
- package/dist/lib/fs/vfs.d.ts +2 -2
- package/dist/lib/fs/vfs.js +1 -1
- package/dist/lib/index.cjs +25 -25
- package/dist/lib/index.js +9 -9
- package/dist/lib/unplugin/factory.cjs +7 -7
- package/dist/lib/unplugin/factory.js +6 -6
- package/dist/lib/unplugin/index.cjs +7 -7
- package/dist/lib/unplugin/index.js +6 -6
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/index.cjs +6 -6
- package/dist/lib/utilities/index.js +4 -4
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +8 -8
- package/dist/nuxt.js +4 -4
- 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 +15 -15
- package/dist/chunk-PHCQPLBN.cjs +0 -12
- package/dist/chunk-Z7MWRPFH.cjs +0 -12
- package/dist/lib/chunk-AZRQDCQ6.js.map +0 -1
- package/dist/lib/chunk-R6FS4GTA.cjs.map +0 -1
- package/dist/lib/chunk-U2U3JFI4.cjs.map +0 -1
- package/dist/lib/chunk-UNN3W6R6.js.map +0 -1
- package/dist/lib/chunk-V5QEG5KI.js.map +0 -1
- package/dist/lib/chunk-VQZDGNQY.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRUYGKNBM_cjs = require('./chunk-RUYGKNBM.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 chunkRUYGKNBM_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 chunkENEMWUFY_cjs = require('./chunk-ENEMWUFY.cjs');
|
|
6
6
|
require('./chunk-VBGDN56Q.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-RULSJ2SK.cjs');
|
|
8
|
+
require('./chunk-RUYGKNBM.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
|
+
chunkENEMWUFY_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-DFLUJMCI.js';
|
|
2
2
|
import './chunk-FJHS7DAU.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-YJRPFM2Q.js';
|
|
4
|
+
import './chunk-2KFVP7PK.js';
|
|
5
5
|
import './chunk-PQXP7XQK.js';
|
|
6
6
|
import './chunk-NITQ5IYP.js';
|
|
7
7
|
import './chunk-2MYPFASJ.js';
|
|
@@ -9,6 +9,7 @@ import { install } from '@stryke/fs/install';
|
|
|
9
9
|
import { listFilesSync, listFiles } from '@stryke/fs/list-files';
|
|
10
10
|
import { isPackageExists, isPackageListed, doesPackageMatch, getPackageListing } from '@stryke/fs/package-fns';
|
|
11
11
|
import { getResolutionCombinations, resolve as resolve$1, resolveSync, resolvePackage } from '@stryke/fs/resolve';
|
|
12
|
+
import { omit } from '@stryke/helpers/omit';
|
|
12
13
|
import { appendPath } from '@stryke/path/append';
|
|
13
14
|
import { joinPaths as joinPaths$1 } from '@stryke/path/join-paths';
|
|
14
15
|
import { replacePath, replaceExtension } from '@stryke/path/replace';
|
|
@@ -45,7 +46,6 @@ import { relativeToWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
|
45
46
|
import { hashDirectory } from '@stryke/hash/hash-files';
|
|
46
47
|
import { murmurhash } from '@stryke/hash/murmurhash';
|
|
47
48
|
import { getUnique, getUniqueBy } from '@stryke/helpers/get-unique';
|
|
48
|
-
import { omit } from '@stryke/helpers/omit';
|
|
49
49
|
import { fetchRequest } from '@stryke/http/fetch';
|
|
50
50
|
import { joinPaths } from '@stryke/path/join';
|
|
51
51
|
import { isNull } from '@stryke/type-checks/is-null';
|
|
@@ -59,6 +59,8 @@ import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
|
59
59
|
import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
|
|
60
60
|
import * as $ from '@stryke/capnp';
|
|
61
61
|
import { readFileBuffer, readFileBufferSync, writeFileBuffer } from '@stryke/fs/buffer';
|
|
62
|
+
import { correctPath, stripStars } from '@stryke/path/correct-path';
|
|
63
|
+
import { globToRegex } from '@stryke/path/glob-to-regex';
|
|
62
64
|
import { isAbsolutePath } from '@stryke/path/is-type';
|
|
63
65
|
import { isRegExp } from '@stryke/type-checks/is-regexp';
|
|
64
66
|
import { Blob as Blob$1 } from 'node:buffer';
|
|
@@ -68,7 +70,6 @@ import { getColor } from '@storm-software/config-tools/utilities/colors';
|
|
|
68
70
|
import { noop } from '@stryke/helpers/noop';
|
|
69
71
|
import { kebabCase } from '@stryke/string-format/kebab-case';
|
|
70
72
|
import { resolveConfig, format as format$1 } from 'prettier';
|
|
71
|
-
import { correctPath } from '@stryke/path/correct-path';
|
|
72
73
|
import { slash } from '@stryke/path/slash';
|
|
73
74
|
import { isDirectory, isFile } from '@stryke/fs/is-file';
|
|
74
75
|
import { readFileSync, readFile } from '@stryke/fs/read-file';
|
|
@@ -80,7 +81,7 @@ import '@stryke/fs/remove-file';
|
|
|
80
81
|
|
|
81
82
|
// package.json
|
|
82
83
|
var name = "powerlines";
|
|
83
|
-
var version = "0.37.
|
|
84
|
+
var version = "0.37.45";
|
|
84
85
|
var package_default = {
|
|
85
86
|
version};
|
|
86
87
|
function resolveModulePath(nodePath, state) {
|
|
@@ -947,8 +948,8 @@ function resolveEntriesSync(context, typeDefinitions) {
|
|
|
947
948
|
name: typeDefinition.name
|
|
948
949
|
});
|
|
949
950
|
}
|
|
950
|
-
return context.fs.
|
|
951
|
-
file,
|
|
951
|
+
return context.fs.globSync(appendPath(filePath, context.workspaceConfig.workspaceRoot)).map((file) => resolveEntry(context, {
|
|
952
|
+
file: replacePath(file, context.config.projectRoot),
|
|
952
953
|
name: typeDefinition.name
|
|
953
954
|
}));
|
|
954
955
|
}).flat().filter(Boolean);
|
|
@@ -1799,16 +1800,6 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1799
1800
|
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.output.builtinPrefix);
|
|
1800
1801
|
}
|
|
1801
1802
|
/**
|
|
1802
|
-
* Builds a regular expression from a string pattern for path matching.
|
|
1803
|
-
*
|
|
1804
|
-
* @param path - The string pattern to convert.
|
|
1805
|
-
* @returns A regular expression for matching paths.
|
|
1806
|
-
*/
|
|
1807
|
-
#buildRegex(path) {
|
|
1808
|
-
const token = "::GLOBSTAR::";
|
|
1809
|
-
return new RegExp(`^${this.#normalizePath(path).replace(/\*\*/g, token).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(new RegExp(token, "g"), ".*")}$`);
|
|
1810
|
-
}
|
|
1811
|
-
/**
|
|
1812
1803
|
* Gets the storage adapter and relative key for a given key.
|
|
1813
1804
|
*
|
|
1814
1805
|
* @remarks
|
|
@@ -1851,7 +1842,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1851
1842
|
*/
|
|
1852
1843
|
#getStorages(base = "", includeParent = false) {
|
|
1853
1844
|
const baseKey = this.resolveSync(base) || base;
|
|
1854
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") &&
|
|
1845
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath(key, baseKey) || includeParent && isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath(stripStars(baseKey), key) || globToRegex(replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1855
1846
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1856
1847
|
base: key,
|
|
1857
1848
|
adapter: this.#storage[key]
|
|
@@ -2185,7 +2176,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2185
2176
|
* @returns An array of file names in the specified path.
|
|
2186
2177
|
*/
|
|
2187
2178
|
listSync(path) {
|
|
2188
|
-
|
|
2179
|
+
let resolvedPath = path;
|
|
2180
|
+
if (resolvedPath.includes("*")) {
|
|
2181
|
+
this.#log(LogLevelLabel.WARN, `Invoking "listSync" with a glob pattern is not supported. It is likely you meant to use "globSync". Path: ${path}`);
|
|
2182
|
+
resolvedPath = stripStars(resolvedPath);
|
|
2183
|
+
}
|
|
2184
|
+
return getUnique(this.#getStorages(resolvedPath, true).map((storage) => storage.adapter.listSync(storage.relativeBase ? storage.base ? appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)).flat().filter(Boolean));
|
|
2189
2185
|
}
|
|
2190
2186
|
/**
|
|
2191
2187
|
* Lists files in a given path.
|
|
@@ -2194,7 +2190,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2194
2190
|
* @returns An array of file names in the specified path.
|
|
2195
2191
|
*/
|
|
2196
2192
|
async list(path) {
|
|
2197
|
-
|
|
2193
|
+
let resolvedPath = path;
|
|
2194
|
+
if (resolvedPath.includes("*")) {
|
|
2195
|
+
this.#log(LogLevelLabel.WARN, `Invoking "list" with a glob pattern is not supported. It is likely you meant to use "glob". Path: ${path}`);
|
|
2196
|
+
resolvedPath = stripStars(resolvedPath);
|
|
2197
|
+
}
|
|
2198
|
+
return getUnique((await Promise.all(this.#getStorages(resolvedPath, true).map(async (storage) => storage.adapter.list(storage.relativeBase ? storage.base ? appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)))).flat().filter(Boolean));
|
|
2198
2199
|
}
|
|
2199
2200
|
/**
|
|
2200
2201
|
* Removes a file in the virtual file system (VFS).
|
|
@@ -2248,7 +2249,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2248
2249
|
const results = [];
|
|
2249
2250
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2250
2251
|
const normalized = this.#normalizePath(pattern);
|
|
2251
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2252
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2252
2253
|
if (this.isDirectorySync(normalized)) {
|
|
2253
2254
|
results.push(...await this.list(normalized));
|
|
2254
2255
|
} else {
|
|
@@ -2257,19 +2258,17 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2257
2258
|
results.push(resolved);
|
|
2258
2259
|
}
|
|
2259
2260
|
}
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
if (resolved && !results.includes(resolved)) {
|
|
2269
|
-
results.push(resolved);
|
|
2261
|
+
} else {
|
|
2262
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2263
|
+
await Promise.all((await this.list(stripStars(absPattern))).map(async (file) => {
|
|
2264
|
+
if (globToRegex(absPattern).test(file)) {
|
|
2265
|
+
const resolved = await this.resolve(file);
|
|
2266
|
+
if (resolved && !results.includes(resolved)) {
|
|
2267
|
+
results.push(resolved);
|
|
2268
|
+
}
|
|
2270
2269
|
}
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2270
|
+
}));
|
|
2271
|
+
}
|
|
2273
2272
|
}
|
|
2274
2273
|
return results;
|
|
2275
2274
|
}
|
|
@@ -2283,7 +2282,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2283
2282
|
const results = [];
|
|
2284
2283
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2285
2284
|
const normalized = this.#normalizePath(pattern);
|
|
2286
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2285
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2287
2286
|
if (this.isDirectorySync(normalized)) {
|
|
2288
2287
|
results.push(...this.listSync(normalized));
|
|
2289
2288
|
} else {
|
|
@@ -2292,17 +2291,16 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2292
2291
|
results.push(resolved);
|
|
2293
2292
|
}
|
|
2294
2293
|
}
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
results.push(resolved);
|
|
2294
|
+
} else {
|
|
2295
|
+
const absPattern = isAbsolutePath(normalized) ? normalized : this.#normalizePath(appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2296
|
+
const files = this.listSync(stripStars(absPattern));
|
|
2297
|
+
for (const file of files) {
|
|
2298
|
+
const regex = globToRegex(absPattern);
|
|
2299
|
+
if (regex.test(file)) {
|
|
2300
|
+
const resolved = this.resolveSync(file);
|
|
2301
|
+
if (resolved && !results.includes(resolved)) {
|
|
2302
|
+
results.push(resolved);
|
|
2303
|
+
}
|
|
2306
2304
|
}
|
|
2307
2305
|
}
|
|
2308
2306
|
}
|
|
@@ -4441,8 +4439,12 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4441
4439
|
environment: context,
|
|
4442
4440
|
order: "normal"
|
|
4443
4441
|
});
|
|
4444
|
-
|
|
4442
|
+
if (context.entry.length > 0) {
|
|
4443
|
+
context.debug(`The configuration provided ${toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4445
4444
|
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
4445
|
+
} else {
|
|
4446
|
+
context.warn(`No entry files were found for the ${context.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
4447
|
+
}
|
|
4446
4448
|
await resolveTsconfig(context);
|
|
4447
4449
|
await installDependencies(context);
|
|
4448
4450
|
await this.callHook("configResolved", {
|
|
@@ -4451,7 +4453,16 @@ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.out
|
|
|
4451
4453
|
});
|
|
4452
4454
|
context.trace(`Powerlines configuration has been resolved:
|
|
4453
4455
|
|
|
4454
|
-
${formatLogMessage(
|
|
4456
|
+
${formatLogMessage({
|
|
4457
|
+
...context.config,
|
|
4458
|
+
userConfig: isSetObject(context.config.userConfig) ? omit(context.config.userConfig, [
|
|
4459
|
+
"plugins"
|
|
4460
|
+
]) : void 0,
|
|
4461
|
+
inlineConfig: isSetObject(context.config.inlineConfig) ? omit(context.config.inlineConfig, [
|
|
4462
|
+
"plugins"
|
|
4463
|
+
]) : void 0,
|
|
4464
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name)
|
|
4465
|
+
})}`);
|
|
4455
4466
|
if (!context.fs.existsSync(context.cachePath)) {
|
|
4456
4467
|
await createDirectory(context.cachePath);
|
|
4457
4468
|
}
|
|
@@ -5040,5 +5051,5 @@ Note: Please ensure the plugin package's default export is a class that extends
|
|
|
5040
5051
|
};
|
|
5041
5052
|
|
|
5042
5053
|
export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant, name, version };
|
|
5043
|
-
//# sourceMappingURL=chunk-
|
|
5044
|
-
//# sourceMappingURL=chunk-
|
|
5054
|
+
//# sourceMappingURL=chunk-2KFVP7PK.js.map
|
|
5055
|
+
//# sourceMappingURL=chunk-2KFVP7PK.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkRULSJ2SK_cjs = require('./chunk-RULSJ2SK.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(chunkRULSJ2SK_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-5HQYRBKT.cjs.map
|
|
36
|
+
//# sourceMappingURL=chunk-5HQYRBKT.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRULSJ2SK_cjs = require('./chunk-RULSJ2SK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkRULSJ2SK_cjs.createUnpluginFactory("webpack"));
|
|
7
|
+
var webpack_default = webpack;
|
|
8
|
+
|
|
9
|
+
exports.webpack = webpack;
|
|
10
|
+
exports.webpack_default = webpack_default;
|
|
11
|
+
//# sourceMappingURL=chunk-7OGAS5PG.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-7OGAS5PG.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createUnpluginFactory } from './chunk-
|
|
1
|
+
import { createUnpluginFactory } from './chunk-YJRPFM2Q.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-BG4PIMQN.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-BG4PIMQN.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-FJHS7DAU.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-YJRPFM2Q.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-DFLUJMCI.js.map
|
|
155
|
+
//# sourceMappingURL=chunk-DFLUJMCI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkVBGDN56Q_cjs = require('./chunk-VBGDN56Q.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkRULSJ2SK_cjs = require('./chunk-RULSJ2SK.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(chunkRULSJ2SK_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-ENEMWUFY.cjs.map
|
|
162
|
+
//# sourceMappingURL=chunk-ENEMWUFY.cjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkRULSJ2SK_cjs = require('./chunk-RULSJ2SK.cjs');
|
|
4
|
+
var unplugin = require('unplugin');
|
|
5
|
+
|
|
6
|
+
var rolldown = unplugin.createRolldownPlugin(chunkRULSJ2SK_cjs.createUnpluginFactory("rolldown"));
|
|
7
|
+
var rolldown_default = rolldown;
|
|
8
|
+
|
|
9
|
+
exports.rolldown = rolldown;
|
|
10
|
+
exports.rolldown_default = rolldown_default;
|
|
11
|
+
//# sourceMappingURL=chunk-FBUBCGXH.cjs.map
|
|
12
|
+
//# sourceMappingURL=chunk-FBUBCGXH.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRUYGKNBM_cjs = require('./chunk-RUYGKNBM.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 = chunkRUYGKNBM_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 chunkRUYGKNBM_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-RULSJ2SK.cjs.map
|
|
141
|
+
//# sourceMappingURL=chunk-RULSJ2SK.cjs.map
|
|
@@ -11,6 +11,7 @@ var install = require('@stryke/fs/install');
|
|
|
11
11
|
var listFiles = require('@stryke/fs/list-files');
|
|
12
12
|
var packageFns = require('@stryke/fs/package-fns');
|
|
13
13
|
var resolve = require('@stryke/fs/resolve');
|
|
14
|
+
var omit = require('@stryke/helpers/omit');
|
|
14
15
|
var append = require('@stryke/path/append');
|
|
15
16
|
var joinPaths = require('@stryke/path/join-paths');
|
|
16
17
|
var replace = require('@stryke/path/replace');
|
|
@@ -47,7 +48,6 @@ var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
|
47
48
|
var hashFiles = require('@stryke/hash/hash-files');
|
|
48
49
|
var murmurhash = require('@stryke/hash/murmurhash');
|
|
49
50
|
var getUnique = require('@stryke/helpers/get-unique');
|
|
50
|
-
var omit = require('@stryke/helpers/omit');
|
|
51
51
|
var fetch = require('@stryke/http/fetch');
|
|
52
52
|
var join = require('@stryke/path/join');
|
|
53
53
|
var isNull = require('@stryke/type-checks/is-null');
|
|
@@ -61,6 +61,8 @@ var isUndefined = require('@stryke/type-checks/is-undefined');
|
|
|
61
61
|
var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
|
|
62
62
|
var $ = require('@stryke/capnp');
|
|
63
63
|
var buffer = require('@stryke/fs/buffer');
|
|
64
|
+
var correctPath = require('@stryke/path/correct-path');
|
|
65
|
+
var globToRegex = require('@stryke/path/glob-to-regex');
|
|
64
66
|
var isType = require('@stryke/path/is-type');
|
|
65
67
|
var isRegexp = require('@stryke/type-checks/is-regexp');
|
|
66
68
|
var buffer$1 = require('buffer');
|
|
@@ -70,7 +72,6 @@ var colors = require('@storm-software/config-tools/utilities/colors');
|
|
|
70
72
|
var noop = require('@stryke/helpers/noop');
|
|
71
73
|
var kebabCase = require('@stryke/string-format/kebab-case');
|
|
72
74
|
var prettier = require('prettier');
|
|
73
|
-
var correctPath = require('@stryke/path/correct-path');
|
|
74
75
|
var slash = require('@stryke/path/slash');
|
|
75
76
|
var isFile = require('@stryke/fs/is-file');
|
|
76
77
|
var readFile = require('@stryke/fs/read-file');
|
|
@@ -109,7 +110,7 @@ var $__namespace = /*#__PURE__*/_interopNamespace($);
|
|
|
109
110
|
|
|
110
111
|
// package.json
|
|
111
112
|
var name = "powerlines";
|
|
112
|
-
var version = "0.37.
|
|
113
|
+
var version = "0.37.45";
|
|
113
114
|
var package_default = {
|
|
114
115
|
version};
|
|
115
116
|
function resolveModulePath(nodePath, state) {
|
|
@@ -976,8 +977,8 @@ function resolveEntriesSync(context, typeDefinitions) {
|
|
|
976
977
|
name: typeDefinition.name
|
|
977
978
|
});
|
|
978
979
|
}
|
|
979
|
-
return context.fs.
|
|
980
|
-
file,
|
|
980
|
+
return context.fs.globSync(append.appendPath(filePath, context.workspaceConfig.workspaceRoot)).map((file) => resolveEntry(context, {
|
|
981
|
+
file: replace.replacePath(file, context.config.projectRoot),
|
|
981
982
|
name: typeDefinition.name
|
|
982
983
|
}));
|
|
983
984
|
}).flat().filter(Boolean);
|
|
@@ -1828,16 +1829,6 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1828
1829
|
return normalizePath(path.includes("{") || path.includes("}") ? replacePathTokens(this.#context, path) : path, this.#context.builtinsPath, this.#context.config.output.builtinPrefix);
|
|
1829
1830
|
}
|
|
1830
1831
|
/**
|
|
1831
|
-
* Builds a regular expression from a string pattern for path matching.
|
|
1832
|
-
*
|
|
1833
|
-
* @param path - The string pattern to convert.
|
|
1834
|
-
* @returns A regular expression for matching paths.
|
|
1835
|
-
*/
|
|
1836
|
-
#buildRegex(path) {
|
|
1837
|
-
const token = "::GLOBSTAR::";
|
|
1838
|
-
return new RegExp(`^${this.#normalizePath(path).replace(/\*\*/g, token).replace(/[.+^${}()|[\]\\]/g, "\\$&").replace(/\*/g, "[^/]*").replace(/\?/g, "[^/]").replace(new RegExp(token, "g"), ".*")}$`);
|
|
1839
|
-
}
|
|
1840
|
-
/**
|
|
1841
1832
|
* Gets the storage adapter and relative key for a given key.
|
|
1842
1833
|
*
|
|
1843
1834
|
* @remarks
|
|
@@ -1880,7 +1871,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
1880
1871
|
*/
|
|
1881
1872
|
#getStorages(base = "", includeParent = false) {
|
|
1882
1873
|
const baseKey = this.resolveSync(base) || base;
|
|
1883
|
-
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") &&
|
|
1874
|
+
return Object.keys(this.#storage).sort().reverse().filter((key) => isParentPath.isParentPath(key, baseKey) || includeParent && isParentPath.isParentPath(baseKey, key) || baseKey.includes("*") && (isParentPath.isParentPath(correctPath.stripStars(baseKey), key) || globToRegex.globToRegex(replace.replaceExtension(baseKey)).test(key))).map((key) => ({
|
|
1884
1875
|
relativeBase: baseKey.length > key.length ? baseKey.slice(key.length) : void 0,
|
|
1885
1876
|
base: key,
|
|
1886
1877
|
adapter: this.#storage[key]
|
|
@@ -2214,7 +2205,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2214
2205
|
* @returns An array of file names in the specified path.
|
|
2215
2206
|
*/
|
|
2216
2207
|
listSync(path) {
|
|
2217
|
-
|
|
2208
|
+
let resolvedPath = path;
|
|
2209
|
+
if (resolvedPath.includes("*")) {
|
|
2210
|
+
this.#log(types.LogLevelLabel.WARN, `Invoking "listSync" with a glob pattern is not supported. It is likely you meant to use "globSync". Path: ${path}`);
|
|
2211
|
+
resolvedPath = correctPath.stripStars(resolvedPath);
|
|
2212
|
+
}
|
|
2213
|
+
return getUnique.getUnique(this.#getStorages(resolvedPath, true).map((storage) => storage.adapter.listSync(storage.relativeBase ? storage.base ? append.appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)).flat().filter(Boolean));
|
|
2218
2214
|
}
|
|
2219
2215
|
/**
|
|
2220
2216
|
* Lists files in a given path.
|
|
@@ -2223,7 +2219,12 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2223
2219
|
* @returns An array of file names in the specified path.
|
|
2224
2220
|
*/
|
|
2225
2221
|
async list(path) {
|
|
2226
|
-
|
|
2222
|
+
let resolvedPath = path;
|
|
2223
|
+
if (resolvedPath.includes("*")) {
|
|
2224
|
+
this.#log(types.LogLevelLabel.WARN, `Invoking "list" with a glob pattern is not supported. It is likely you meant to use "glob". Path: ${path}`);
|
|
2225
|
+
resolvedPath = correctPath.stripStars(resolvedPath);
|
|
2226
|
+
}
|
|
2227
|
+
return getUnique.getUnique((await Promise.all(this.#getStorages(resolvedPath, true).map(async (storage) => storage.adapter.list(storage.relativeBase ? storage.base ? append.appendPath(storage.relativeBase, storage.base) : storage.relativeBase : storage.base)))).flat().filter(Boolean));
|
|
2227
2228
|
}
|
|
2228
2229
|
/**
|
|
2229
2230
|
* Removes a file in the virtual file system (VFS).
|
|
@@ -2277,7 +2278,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2277
2278
|
const results = [];
|
|
2278
2279
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2279
2280
|
const normalized = this.#normalizePath(pattern);
|
|
2280
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2281
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2281
2282
|
if (this.isDirectorySync(normalized)) {
|
|
2282
2283
|
results.push(...await this.list(normalized));
|
|
2283
2284
|
} else {
|
|
@@ -2286,19 +2287,17 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2286
2287
|
results.push(resolved);
|
|
2287
2288
|
}
|
|
2288
2289
|
}
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
if (resolved && !results.includes(resolved)) {
|
|
2298
|
-
results.push(resolved);
|
|
2290
|
+
} else {
|
|
2291
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2292
|
+
await Promise.all((await this.list(correctPath.stripStars(absPattern))).map(async (file) => {
|
|
2293
|
+
if (globToRegex.globToRegex(absPattern).test(file)) {
|
|
2294
|
+
const resolved = await this.resolve(file);
|
|
2295
|
+
if (resolved && !results.includes(resolved)) {
|
|
2296
|
+
results.push(resolved);
|
|
2297
|
+
}
|
|
2299
2298
|
}
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2299
|
+
}));
|
|
2300
|
+
}
|
|
2302
2301
|
}
|
|
2303
2302
|
return results;
|
|
2304
2303
|
}
|
|
@@ -2312,7 +2311,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2312
2311
|
const results = [];
|
|
2313
2312
|
for (const pattern of normalizeGlobPatterns(this.#context.workspaceConfig.workspaceRoot, patterns)) {
|
|
2314
2313
|
const normalized = this.#normalizePath(pattern);
|
|
2315
|
-
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("
|
|
2314
|
+
if (!/[*?[\]{}]/.test(normalized) && !normalized.includes("*")) {
|
|
2316
2315
|
if (this.isDirectorySync(normalized)) {
|
|
2317
2316
|
results.push(...this.listSync(normalized));
|
|
2318
2317
|
} else {
|
|
@@ -2321,17 +2320,16 @@ var VirtualFileSystem = class _VirtualFileSystem {
|
|
|
2321
2320
|
results.push(resolved);
|
|
2322
2321
|
}
|
|
2323
2322
|
}
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
results.push(resolved);
|
|
2323
|
+
} else {
|
|
2324
|
+
const absPattern = isType.isAbsolutePath(normalized) ? normalized : this.#normalizePath(append.appendPath(normalized, this.#context.workspaceConfig.workspaceRoot));
|
|
2325
|
+
const files = this.listSync(correctPath.stripStars(absPattern));
|
|
2326
|
+
for (const file of files) {
|
|
2327
|
+
const regex = globToRegex.globToRegex(absPattern);
|
|
2328
|
+
if (regex.test(file)) {
|
|
2329
|
+
const resolved = this.resolveSync(file);
|
|
2330
|
+
if (resolved && !results.includes(resolved)) {
|
|
2331
|
+
results.push(resolved);
|
|
2332
|
+
}
|
|
2335
2333
|
}
|
|
2336
2334
|
}
|
|
2337
2335
|
}
|
|
@@ -4470,8 +4468,12 @@ var PowerlinesAPI = class _PowerlinesAPI {
|
|
|
4470
4468
|
environment: context,
|
|
4471
4469
|
order: "normal"
|
|
4472
4470
|
});
|
|
4473
|
-
|
|
4471
|
+
if (context.entry.length > 0) {
|
|
4472
|
+
context.debug(`The configuration provided ${toArray.toArray(context.config.entry).length} entry point(s), Powerlines has found ${context.entry.length} entry files(s) for the ${context.config.title} project${context.entry.length > 0 && context.entry.length < 10 ? `:
|
|
4474
4473
|
${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.output}` : ""}`).join(" \n")}` : ""}`);
|
|
4474
|
+
} else {
|
|
4475
|
+
context.warn(`No entry files were found for the ${context.config.title} project. Please ensure this is correct. Powerlines plugins generally require at least one entry point to function properly.`);
|
|
4476
|
+
}
|
|
4475
4477
|
await resolveTsconfig(context);
|
|
4476
4478
|
await installDependencies(context);
|
|
4477
4479
|
await this.callHook("configResolved", {
|
|
@@ -4480,7 +4482,16 @@ ${context.entry.map((entry) => `- ${entry.file}${entry.output ? ` -> ${entry.out
|
|
|
4480
4482
|
});
|
|
4481
4483
|
context.trace(`Powerlines configuration has been resolved:
|
|
4482
4484
|
|
|
4483
|
-
${console.formatLogMessage(
|
|
4485
|
+
${console.formatLogMessage({
|
|
4486
|
+
...context.config,
|
|
4487
|
+
userConfig: isSetObject.isSetObject(context.config.userConfig) ? omit.omit(context.config.userConfig, [
|
|
4488
|
+
"plugins"
|
|
4489
|
+
]) : void 0,
|
|
4490
|
+
inlineConfig: isSetObject.isSetObject(context.config.inlineConfig) ? omit.omit(context.config.inlineConfig, [
|
|
4491
|
+
"plugins"
|
|
4492
|
+
]) : void 0,
|
|
4493
|
+
plugins: context.plugins.map((plugin) => plugin.plugin.name)
|
|
4494
|
+
})}`);
|
|
4484
4495
|
if (!context.fs.existsSync(context.cachePath)) {
|
|
4485
4496
|
await helpers.createDirectory(context.cachePath);
|
|
4486
4497
|
}
|
|
@@ -5081,5 +5092,5 @@ exports.extendLog = extendLog;
|
|
|
5081
5092
|
exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
|
|
5082
5093
|
exports.name = name;
|
|
5083
5094
|
exports.version = version;
|
|
5084
|
-
//# sourceMappingURL=chunk-
|
|
5085
|
-
//# sourceMappingURL=chunk-
|
|
5095
|
+
//# sourceMappingURL=chunk-RUYGKNBM.cjs.map
|
|
5096
|
+
//# sourceMappingURL=chunk-RUYGKNBM.cjs.map
|