powerlines 0.24.3 → 0.24.4
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-AOAZS3KU.js → chunk-3GIUBMCO.js} +1 -1
- package/dist/{chunk-WG76FEAR.js → chunk-72IKSCJB.js} +1 -1
- package/dist/{chunk-VO7UNY6U.js → chunk-FYRK42WJ.js} +9 -9
- package/dist/{chunk-XFPLVPMF.cjs → chunk-M2RYLU4O.cjs} +31 -31
- package/dist/{chunk-2DHR5VPL.js → chunk-MPNS4WJG.js} +1 -1
- package/dist/{chunk-WJQX2T36.cjs → chunk-QXH7GHN2.cjs} +2 -2
- package/dist/{chunk-DMV2VN3N.cjs → chunk-VM5QO2QI.cjs} +2 -2
- package/dist/{chunk-MR2ARFN4.js → chunk-WHQHVACG.js} +1 -1
- package/dist/{chunk-37PJDPER.cjs → chunk-YSHE2L5C.cjs} +3 -3
- package/dist/{chunk-YWDLT2K5.cjs → chunk-YVKPBIAR.cjs} +2 -2
- 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 +11 -11
- package/dist/index.js +2 -2
- package/dist/lib/{chunk-4YERLWXX.cjs → chunk-ICO2ZK64.cjs} +31 -30
- package/dist/lib/{chunk-NKV4KVFI.js → chunk-IG4PBAEY.js} +9 -8
- package/dist/lib/index.cjs +2 -2
- package/dist/lib/index.js +1 -1
- package/dist/lib/unplugin/factory.cjs +2 -2
- package/dist/lib/unplugin/factory.js +1 -1
- package/dist/lib/unplugin/index.cjs +2 -2
- package/dist/lib/unplugin/index.js +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +6 -6
- package/dist/nuxt.js +4 -4
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.js +2 -2
- 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/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 +5 -5
- package/dist/unplugin.js +3 -3
- 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 +14 -14
package/dist/api.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkM2RYLU4O_cjs = require('./chunk-M2RYLU4O.cjs');
|
|
4
4
|
require('./chunk-ETKZMGLN.cjs');
|
|
5
5
|
require('./chunk-PAMSESZV.cjs');
|
|
6
6
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -10,5 +10,5 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkM2RYLU4O_cjs.PowerlinesAPI; }
|
|
14
14
|
});
|
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 chunkQXH7GHN2_cjs = require('./chunk-QXH7GHN2.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-YSHE2L5C.cjs');
|
|
8
|
+
require('./chunk-M2RYLU4O.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,7 +15,7 @@ var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
var astro = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((config) => ({
|
|
16
16
|
vite: {
|
|
17
17
|
plugins: [
|
|
18
|
-
|
|
18
|
+
chunkQXH7GHN2_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-WHQHVACG.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-3GIUBMCO.js';
|
|
4
|
+
import './chunk-FYRK42WJ.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLog, PowerlinesAPI } from './chunk-
|
|
1
|
+
import { createLog, PowerlinesAPI } from './chunk-FYRK42WJ.js';
|
|
2
2
|
import { __name } from './chunk-SHUYVCID.js';
|
|
3
3
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
4
4
|
import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
|
|
@@ -32,9 +32,9 @@ import defu6, { defu } from 'defu';
|
|
|
32
32
|
import { getPackageName, hasPackageVersion, getPackageVersion } from '@stryke/string-format/package';
|
|
33
33
|
import { getObjectDiff } from '@donedeal0/superdiff';
|
|
34
34
|
import { readJsonFile, readJsonFileSync } from '@stryke/fs/json';
|
|
35
|
-
import { loadTsConfig } from '@stryke/fs/tsconfig';
|
|
36
35
|
import { StormJSON } from '@stryke/json/storm-json';
|
|
37
|
-
import { findFilePath, relativePath, findFileName, findFileDotExtensionSafe } from '@stryke/path/file-path-fns';
|
|
36
|
+
import { findFilePath, findFileExtension, relativePath, findFileName, findFileDotExtensionSafe } from '@stryke/path/file-path-fns';
|
|
37
|
+
import { isParentPath } from '@stryke/path/is-parent-path';
|
|
38
38
|
import { titleCase } from '@stryke/string-format/title-case';
|
|
39
39
|
import { writeFile as writeFile$1 } from '@stryke/fs/write-file';
|
|
40
40
|
import { resolveConfig, format } from 'prettier';
|
|
@@ -69,7 +69,6 @@ import { getLogFn, getLogLevel } from '@storm-software/config-tools/logger';
|
|
|
69
69
|
import { getColor } from '@storm-software/config-tools/utilities/colors';
|
|
70
70
|
import { noop } from '@stryke/helpers/noop';
|
|
71
71
|
import { slash } from '@stryke/path/slash';
|
|
72
|
-
import { isParentPath } from '@stryke/path/is-parent-path';
|
|
73
72
|
import { Volume } from 'memfs';
|
|
74
73
|
import { Union } from 'unionfs';
|
|
75
74
|
import { InMemoryFileSystemHost, Project } from 'ts-morph';
|
|
@@ -416,8 +415,6 @@ async function resolveTsconfigChanges(context) {
|
|
|
416
415
|
const tsconfigFilePath = getTsconfigFilePath(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig);
|
|
417
416
|
const tsconfigJson = await readJsonFile(tsconfigFilePath);
|
|
418
417
|
tsconfigJson.compilerOptions ??= {};
|
|
419
|
-
const extendedTsconfig = await loadTsConfig(tsconfigFilePath);
|
|
420
|
-
extendedTsconfig.compilerOptions ??= {};
|
|
421
418
|
if (tsconfigJson.reflection !== true) {
|
|
422
419
|
tsconfigJson.reflection = true;
|
|
423
420
|
}
|
|
@@ -427,11 +424,14 @@ async function resolveTsconfigChanges(context) {
|
|
|
427
424
|
if (tsconfig.options.emitDecoratorMetadata !== true) {
|
|
428
425
|
tsconfigJson.compilerOptions.emitDecoratorMetadata = true;
|
|
429
426
|
}
|
|
430
|
-
if (context.config.output.dts) {
|
|
431
|
-
|
|
432
|
-
|
|
427
|
+
if (context.config.output.dts !== false) {
|
|
428
|
+
context.config.output.dts = context.config.output.dts ? isParentPath(context.config.output.dts, context.workspaceConfig.workspaceRoot) ? context.config.output.dts : appendPath(context.config.output.dts, context.workspaceConfig.workspaceRoot) : appendPath(context.config.projectRoot, context.workspaceConfig.workspaceRoot);
|
|
429
|
+
if (findFileExtension(context.config.output.dts) !== "d.ts" && findFileExtension(context.config.output.dts) !== "d.cts" && findFileExtension(context.config.output.dts) !== "d.mts") {
|
|
430
|
+
context.config.output.dts = joinPaths$1(context.config.output.dts, "powerlines.d.ts");
|
|
431
|
+
}
|
|
432
|
+
const dtsRelativePath = joinPaths$1(relativePath(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.projectRoot), findFilePath(context.config.output.dts)), findFileName(context.config.output.dts));
|
|
433
433
|
if (!tsconfigJson.include?.some((filePattern) => isIncludeMatchFound(filePattern, [
|
|
434
|
-
|
|
434
|
+
String(context.config.output.dts),
|
|
435
435
|
dtsRelativePath,
|
|
436
436
|
"storm.d.ts"
|
|
437
437
|
]))) {
|
|
@@ -34,9 +34,9 @@ var defu6 = require('defu');
|
|
|
34
34
|
var _package = require('@stryke/string-format/package');
|
|
35
35
|
var superdiff = require('@donedeal0/superdiff');
|
|
36
36
|
var json = require('@stryke/fs/json');
|
|
37
|
-
var tsconfig = require('@stryke/fs/tsconfig');
|
|
38
37
|
var stormJson = require('@stryke/json/storm-json');
|
|
39
38
|
var filePathFns = require('@stryke/path/file-path-fns');
|
|
39
|
+
var isParentPath = require('@stryke/path/is-parent-path');
|
|
40
40
|
var titleCase = require('@stryke/string-format/title-case');
|
|
41
41
|
var writeFile$1 = require('@stryke/fs/write-file');
|
|
42
42
|
var prettier = require('prettier');
|
|
@@ -71,7 +71,6 @@ var logger = require('@storm-software/config-tools/logger');
|
|
|
71
71
|
var colors = require('@storm-software/config-tools/utilities/colors');
|
|
72
72
|
var noop = require('@stryke/helpers/noop');
|
|
73
73
|
var slash = require('@stryke/path/slash');
|
|
74
|
-
var isParentPath = require('@stryke/path/is-parent-path');
|
|
75
74
|
var memfs = require('memfs');
|
|
76
75
|
var unionfs = require('unionfs');
|
|
77
76
|
var tsMorph = require('ts-morph');
|
|
@@ -442,26 +441,27 @@ chunkUSNT2KNT_cjs.__name(writeFile, "writeFile");
|
|
|
442
441
|
|
|
443
442
|
// src/internal/helpers/resolve-tsconfig.ts
|
|
444
443
|
async function resolveTsconfigChanges(context) {
|
|
445
|
-
const tsconfig
|
|
444
|
+
const tsconfig = getParsedTypeScriptConfig(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig, context.config.tsconfigRaw);
|
|
446
445
|
const tsconfigFilePath = getTsconfigFilePath(context.workspaceConfig.workspaceRoot, context.config.projectRoot, context.config.tsconfig);
|
|
447
446
|
const tsconfigJson = await json.readJsonFile(tsconfigFilePath);
|
|
448
447
|
tsconfigJson.compilerOptions ??= {};
|
|
449
|
-
const extendedTsconfig = await tsconfig.loadTsConfig(tsconfigFilePath);
|
|
450
|
-
extendedTsconfig.compilerOptions ??= {};
|
|
451
448
|
if (tsconfigJson.reflection !== true) {
|
|
452
449
|
tsconfigJson.reflection = true;
|
|
453
450
|
}
|
|
454
|
-
if (tsconfig
|
|
451
|
+
if (tsconfig.options.experimentalDecorators !== true) {
|
|
455
452
|
tsconfigJson.compilerOptions.experimentalDecorators = true;
|
|
456
453
|
}
|
|
457
|
-
if (tsconfig
|
|
454
|
+
if (tsconfig.options.emitDecoratorMetadata !== true) {
|
|
458
455
|
tsconfigJson.compilerOptions.emitDecoratorMetadata = true;
|
|
459
456
|
}
|
|
460
|
-
if (context.config.output.dts) {
|
|
461
|
-
|
|
462
|
-
|
|
457
|
+
if (context.config.output.dts !== false) {
|
|
458
|
+
context.config.output.dts = context.config.output.dts ? isParentPath.isParentPath(context.config.output.dts, context.workspaceConfig.workspaceRoot) ? context.config.output.dts : append.appendPath(context.config.output.dts, context.workspaceConfig.workspaceRoot) : append.appendPath(context.config.projectRoot, context.workspaceConfig.workspaceRoot);
|
|
459
|
+
if (filePathFns.findFileExtension(context.config.output.dts) !== "d.ts" && filePathFns.findFileExtension(context.config.output.dts) !== "d.cts" && filePathFns.findFileExtension(context.config.output.dts) !== "d.mts") {
|
|
460
|
+
context.config.output.dts = joinPaths.joinPaths(context.config.output.dts, "powerlines.d.ts");
|
|
461
|
+
}
|
|
462
|
+
const dtsRelativePath = joinPaths.joinPaths(filePathFns.relativePath(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot), filePathFns.findFilePath(context.config.output.dts)), filePathFns.findFileName(context.config.output.dts));
|
|
463
463
|
if (!tsconfigJson.include?.some((filePattern) => isIncludeMatchFound(filePattern, [
|
|
464
|
-
|
|
464
|
+
String(context.config.output.dts),
|
|
465
465
|
dtsRelativePath,
|
|
466
466
|
"storm.d.ts"
|
|
467
467
|
]))) {
|
|
@@ -469,7 +469,7 @@ async function resolveTsconfigChanges(context) {
|
|
|
469
469
|
tsconfigJson.include.push(dtsRelativePath.startsWith("./") ? dtsRelativePath.slice(2) : dtsRelativePath);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
|
-
if (!tsconfig
|
|
472
|
+
if (!tsconfig.options.lib?.some((lib) => [
|
|
473
473
|
"lib.esnext.d.ts",
|
|
474
474
|
"lib.es2021.d.ts",
|
|
475
475
|
"lib.es2022.d.ts",
|
|
@@ -478,68 +478,68 @@ async function resolveTsconfigChanges(context) {
|
|
|
478
478
|
tsconfigJson.compilerOptions.lib ??= [];
|
|
479
479
|
tsconfigJson.compilerOptions.lib.push("esnext");
|
|
480
480
|
}
|
|
481
|
-
if (tsconfig
|
|
481
|
+
if (tsconfig.options.module !== ts2__default.default.ModuleKind.ESNext) {
|
|
482
482
|
tsconfigJson.compilerOptions.module = "ESNext";
|
|
483
483
|
}
|
|
484
|
-
if (!tsconfig
|
|
484
|
+
if (!tsconfig.options.target || ![
|
|
485
485
|
ts2__default.default.ScriptTarget.ESNext,
|
|
486
486
|
ts2__default.default.ScriptTarget.ES2024,
|
|
487
487
|
ts2__default.default.ScriptTarget.ES2023,
|
|
488
488
|
ts2__default.default.ScriptTarget.ES2022,
|
|
489
489
|
ts2__default.default.ScriptTarget.ES2021
|
|
490
|
-
].includes(tsconfig
|
|
490
|
+
].includes(tsconfig.options.target)) {
|
|
491
491
|
tsconfigJson.compilerOptions.target = "ESNext";
|
|
492
492
|
}
|
|
493
|
-
if (tsconfig
|
|
493
|
+
if (tsconfig.options.moduleResolution !== ts2__default.default.ModuleResolutionKind.Bundler) {
|
|
494
494
|
tsconfigJson.compilerOptions.moduleResolution = "Bundler";
|
|
495
495
|
}
|
|
496
|
-
if (tsconfig
|
|
496
|
+
if (tsconfig.options.moduleDetection !== ts2__default.default.ModuleDetectionKind.Force) {
|
|
497
497
|
tsconfigJson.compilerOptions.moduleDetection = "force";
|
|
498
498
|
}
|
|
499
|
-
if (tsconfig
|
|
499
|
+
if (tsconfig.options.allowSyntheticDefaultImports !== true) {
|
|
500
500
|
tsconfigJson.compilerOptions.allowSyntheticDefaultImports = true;
|
|
501
501
|
}
|
|
502
|
-
if (tsconfig
|
|
502
|
+
if (tsconfig.options.noImplicitOverride !== true) {
|
|
503
503
|
tsconfigJson.compilerOptions.noImplicitOverride = true;
|
|
504
504
|
}
|
|
505
|
-
if (tsconfig
|
|
505
|
+
if (tsconfig.options.noUncheckedIndexedAccess !== true) {
|
|
506
506
|
tsconfigJson.compilerOptions.noUncheckedIndexedAccess = true;
|
|
507
507
|
}
|
|
508
|
-
if (tsconfig
|
|
508
|
+
if (tsconfig.options.skipLibCheck !== true) {
|
|
509
509
|
tsconfigJson.compilerOptions.skipLibCheck = true;
|
|
510
510
|
}
|
|
511
|
-
if (tsconfig
|
|
511
|
+
if (tsconfig.options.resolveJsonModule !== true) {
|
|
512
512
|
tsconfigJson.compilerOptions.resolveJsonModule = true;
|
|
513
513
|
}
|
|
514
|
-
if (tsconfig
|
|
514
|
+
if (tsconfig.options.isolatedModules !== true) {
|
|
515
515
|
tsconfigJson.compilerOptions.isolatedModules = true;
|
|
516
516
|
}
|
|
517
|
-
if (tsconfig
|
|
517
|
+
if (tsconfig.options.verbatimModuleSyntax !== false) {
|
|
518
518
|
tsconfigJson.compilerOptions.verbatimModuleSyntax = false;
|
|
519
519
|
}
|
|
520
|
-
if (tsconfig
|
|
520
|
+
if (tsconfig.options.allowJs !== true) {
|
|
521
521
|
tsconfigJson.compilerOptions.allowJs = true;
|
|
522
522
|
}
|
|
523
|
-
if (tsconfig
|
|
523
|
+
if (tsconfig.options.esModuleInterop !== true) {
|
|
524
524
|
tsconfigJson.compilerOptions.esModuleInterop = true;
|
|
525
525
|
}
|
|
526
|
-
if (tsconfig
|
|
526
|
+
if (tsconfig.options.declaration !== true) {
|
|
527
527
|
tsconfigJson.compilerOptions.declaration = true;
|
|
528
528
|
}
|
|
529
529
|
if (context.environment.consumer === "client") {
|
|
530
|
-
if (tsconfig
|
|
530
|
+
if (tsconfig.options.jsx !== ts2__default.default.JsxEmit.ReactJSX) {
|
|
531
531
|
tsconfigJson.compilerOptions.jsx = "react-jsx";
|
|
532
532
|
}
|
|
533
|
-
if (!tsconfig
|
|
533
|
+
if (!tsconfig.options.lib?.some((lib) => lib.toLowerCase() !== "dom")) {
|
|
534
534
|
tsconfigJson.compilerOptions.lib ??= [];
|
|
535
535
|
tsconfigJson.compilerOptions.lib.push("dom");
|
|
536
536
|
}
|
|
537
|
-
if (!tsconfig
|
|
537
|
+
if (!tsconfig.options.lib?.some((lib) => lib.toLowerCase() !== "dom.iterable")) {
|
|
538
538
|
tsconfigJson.compilerOptions.lib ??= [];
|
|
539
539
|
tsconfigJson.compilerOptions.lib.push("dom.iterable");
|
|
540
540
|
}
|
|
541
541
|
} else if (context.config.build.platform === "node") {
|
|
542
|
-
if (!tsconfig
|
|
542
|
+
if (!tsconfig.options.types?.some((type) => type.toLowerCase() === "node" || type.toLowerCase() === "@types/node")) {
|
|
543
543
|
tsconfigJson.compilerOptions.types ??= [];
|
|
544
544
|
tsconfigJson.compilerOptions.types.push("node");
|
|
545
545
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-3GIUBMCO.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isUndefined } from '@stryke/type-checks/is-undefined';
|
|
5
5
|
import { createEsbuildPlugin } from 'unplugin';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkYSHE2L5C_cjs = require('./chunk-YSHE2L5C.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var environmentChecks = require('@stryke/env/environment-checks');
|
|
7
7
|
var defu = require('defu');
|
|
@@ -83,7 +83,7 @@ function extractViteConfig(context) {
|
|
|
83
83
|
chunkUSNT2KNT_cjs.__name(extractViteConfig, "extractViteConfig");
|
|
84
84
|
|
|
85
85
|
// src/vite.ts
|
|
86
|
-
var vite = unplugin.createVitePlugin(
|
|
86
|
+
var vite = unplugin.createVitePlugin(chunkYSHE2L5C_cjs.createUnpluginFactory("vite", (api, plugin) => {
|
|
87
87
|
return {
|
|
88
88
|
...plugin,
|
|
89
89
|
vite: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYSHE2L5C_cjs = require('./chunk-YSHE2L5C.cjs');
|
|
4
4
|
var unplugin = require('unplugin');
|
|
5
5
|
|
|
6
|
-
var webpack = unplugin.createWebpackPlugin(
|
|
6
|
+
var webpack = unplugin.createWebpackPlugin(chunkYSHE2L5C_cjs.createUnpluginFactory("webpack"));
|
|
7
7
|
var webpack_default = webpack;
|
|
8
8
|
|
|
9
9
|
exports.webpack = webpack;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { extractESBuildConfig } from './chunk-VBR53KGY.js';
|
|
2
|
-
import { createUnpluginFactory } from './chunk-
|
|
2
|
+
import { createUnpluginFactory } from './chunk-3GIUBMCO.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
|
|
5
5
|
import defu from 'defu';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkM2RYLU4O_cjs = require('./chunk-M2RYLU4O.cjs');
|
|
4
4
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
var types = require('@storm-software/config-tools/types');
|
|
6
6
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
@@ -26,7 +26,7 @@ chunkUSNT2KNT_cjs.__name(getString, "getString");
|
|
|
26
26
|
// src/lib/unplugin/factory.ts
|
|
27
27
|
function createUnpluginFactory(variant, decorate) {
|
|
28
28
|
return (config, meta) => {
|
|
29
|
-
const log =
|
|
29
|
+
const log = chunkM2RYLU4O_cjs.createLog("unplugin", config);
|
|
30
30
|
log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
|
|
31
31
|
try {
|
|
32
32
|
const userConfig = {
|
|
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
|
|
|
38
38
|
async function buildStart() {
|
|
39
39
|
log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
|
|
40
40
|
const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(process.cwd());
|
|
41
|
-
api = await
|
|
41
|
+
api = await chunkM2RYLU4O_cjs.PowerlinesAPI.from(workspaceRoot, userConfig);
|
|
42
42
|
log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
|
|
43
43
|
await api.prepare({
|
|
44
44
|
command: "build"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk5IBA5HC2_cjs = require('./chunk-5IBA5HC2.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkYSHE2L5C_cjs = require('./chunk-YSHE2L5C.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.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(chunkYSHE2L5C_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
|
|
10
10
|
return {
|
|
11
11
|
...plugin,
|
|
12
12
|
esbuild: {
|
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 chunkYVKPBIAR_cjs = require('./chunk-YVKPBIAR.cjs');
|
|
6
6
|
require('./chunk-5IBA5HC2.cjs');
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
7
|
+
require('./chunk-YSHE2L5C.cjs');
|
|
8
|
+
require('./chunk-M2RYLU4O.cjs');
|
|
9
9
|
require('./chunk-ETKZMGLN.cjs');
|
|
10
10
|
require('./chunk-PAMSESZV.cjs');
|
|
11
11
|
require('./chunk-AYKZK666.cjs');
|
|
@@ -15,13 +15,13 @@ require('./chunk-USNT2KNT.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "default", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkYVKPBIAR_cjs.esbuild_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "esbuild", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkYVKPBIAR_cjs.esbuild; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "module.exports", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYVKPBIAR_cjs.esbuild; }
|
|
27
27
|
});
|
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-MPNS4WJG.js';
|
|
2
2
|
import './chunk-VBR53KGY.js';
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
3
|
+
import './chunk-3GIUBMCO.js';
|
|
4
|
+
import './chunk-FYRK42WJ.js';
|
|
5
5
|
import './chunk-JQCWV4DT.js';
|
|
6
6
|
import './chunk-JKBJF3UI.js';
|
|
7
7
|
import './chunk-VT7NVLLU.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 chunkYSHE2L5C_cjs = require('./chunk-YSHE2L5C.cjs');
|
|
6
|
+
require('./chunk-M2RYLU4O.cjs');
|
|
7
7
|
require('./chunk-ETKZMGLN.cjs');
|
|
8
8
|
require('./chunk-PAMSESZV.cjs');
|
|
9
9
|
require('./chunk-AYKZK666.cjs');
|
|
10
10
|
require('./chunk-USNT2KNT.cjs');
|
|
11
11
|
var unplugin = require('unplugin');
|
|
12
12
|
|
|
13
|
-
var farm = unplugin.createFarmPlugin(
|
|
13
|
+
var farm = unplugin.createFarmPlugin(chunkYSHE2L5C_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-3GIUBMCO.js';
|
|
2
|
+
import './chunk-FYRK42WJ.js';
|
|
3
3
|
import './chunk-JQCWV4DT.js';
|
|
4
4
|
import './chunk-JKBJF3UI.js';
|
|
5
5
|
import './chunk-VT7NVLLU.js';
|
package/dist/index.cjs
CHANGED
|
@@ -14,14 +14,14 @@ require('./chunk-7GYTTM4M.cjs');
|
|
|
14
14
|
var chunkXP7OML7S_cjs = require('./chunk-XP7OML7S.cjs');
|
|
15
15
|
require('./chunk-HQFZ64VC.cjs');
|
|
16
16
|
var chunkBUR2JQ6G_cjs = require('./chunk-BUR2JQ6G.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkM2RYLU4O_cjs = require('./chunk-M2RYLU4O.cjs');
|
|
18
18
|
var chunkETKZMGLN_cjs = require('./chunk-ETKZMGLN.cjs');
|
|
19
19
|
var chunkPAMSESZV_cjs = require('./chunk-PAMSESZV.cjs');
|
|
20
20
|
var chunkAYKZK666_cjs = require('./chunk-AYKZK666.cjs');
|
|
21
21
|
require('./chunk-USNT2KNT.cjs');
|
|
22
22
|
|
|
23
23
|
// src/index.ts
|
|
24
|
-
var index_default =
|
|
24
|
+
var index_default = chunkM2RYLU4O_cjs.PowerlinesAPI;
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "LogLevel", {
|
|
27
27
|
enumerable: true,
|
|
@@ -33,39 +33,39 @@ Object.defineProperty(exports, "defineConfig", {
|
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "FileData", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkM2RYLU4O_cjs.FileData; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "FileId", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkM2RYLU4O_cjs.FileId; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "FileMetadata", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkM2RYLU4O_cjs.FileMetadata; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkM2RYLU4O_cjs.FileMetadata_KeyValuePair; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "FileSystem", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkM2RYLU4O_cjs.FileSystem; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "FileType", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkM2RYLU4O_cjs.FileType; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "PowerlinesAPI", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkM2RYLU4O_cjs.PowerlinesAPI; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "PreserveSignatureType", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkM2RYLU4O_cjs.PreserveSignatureType; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "_capnpFileId", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkM2RYLU4O_cjs._capnpFileId; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "PLUGIN_NON_HOOK_FIELDS", {
|
|
71
71
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ import './chunk-DRXFQCNC.js';
|
|
|
10
10
|
export { LogLevel } from './chunk-W5X3ZEZ5.js';
|
|
11
11
|
import './chunk-JGB5YQ2U.js';
|
|
12
12
|
export { defineConfig } from './chunk-CJSGAITR.js';
|
|
13
|
-
import { PowerlinesAPI } from './chunk-
|
|
14
|
-
export { FileData, FileId, FileMetadata, FileMetadata_KeyValuePair, FileSystem, FileType, PowerlinesAPI, PreserveSignatureType, _capnpFileId } from './chunk-
|
|
13
|
+
import { PowerlinesAPI } from './chunk-FYRK42WJ.js';
|
|
14
|
+
export { FileData, FileId, FileMetadata, FileMetadata_KeyValuePair, FileSystem, FileType, PowerlinesAPI, PreserveSignatureType, _capnpFileId } from './chunk-FYRK42WJ.js';
|
|
15
15
|
export { PLUGIN_NON_HOOK_FIELDS } from './chunk-JQCWV4DT.js';
|
|
16
16
|
export { SUPPORTED_COMMANDS } from './chunk-JKBJF3UI.js';
|
|
17
17
|
export { __VFS_PATCH__, __VFS_REVERT__ } from './chunk-VT7NVLLU.js';
|