powerlines 0.23.7 → 0.23.9
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-DxPACGY4.d.ts → api-5H3zEedD.d.ts} +1 -1
- package/dist/{api--9pVSIbm.d.cts → api-B77aqxGC.d.cts} +1 -1
- package/dist/api.cjs +2 -2
- package/dist/api.d.cts +2 -2
- package/dist/api.d.ts +2 -2
- package/dist/api.js +1 -1
- package/dist/astro.cjs +4 -4
- package/dist/astro.d.cts +8 -6
- package/dist/astro.d.ts +8 -6
- package/dist/astro.js +3 -3
- package/dist/{chunk-4TAIQVJG.cjs → chunk-2QLM4MYP.cjs} +2 -2
- package/dist/{chunk-V732KPW6.cjs → chunk-6ZKM7WOB.cjs} +32 -20
- package/dist/{chunk-NVNBOUXL.js → chunk-FDEGM4CR.js} +32 -20
- package/dist/{chunk-32NXGMLQ.cjs → chunk-FJWXCUGQ.cjs} +3 -3
- package/dist/{chunk-ZUQDWAUO.cjs → chunk-G5K3I7JU.cjs} +2 -2
- package/dist/{chunk-I7G24RUE.cjs → chunk-ITL6JGKX.cjs} +2 -2
- package/dist/{chunk-RQAKTG6M.js → chunk-KOBCKTHY.js} +1 -1
- package/dist/{chunk-QXTSQTX5.js → chunk-RKMUBSYG.js} +1 -1
- package/dist/{chunk-6CYDJ53Z.js → chunk-S47BU5QR.js} +1 -1
- package/dist/{chunk-CSSV6ES3.js → chunk-UYJXRMS3.js} +1 -1
- package/dist/config.d.cts +2 -2
- package/dist/config.d.ts +2 -2
- package/dist/esbuild.cjs +6 -6
- package/dist/esbuild.d.cts +5 -4
- package/dist/esbuild.d.ts +5 -4
- package/dist/esbuild.js +3 -3
- package/dist/farm.cjs +3 -3
- package/dist/farm.d.cts +9 -7
- package/dist/farm.d.ts +9 -7
- package/dist/farm.js +2 -2
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lib/{api-Bwwdt0YR.d.cts → api-Cm51oVbC.d.cts} +1 -1
- package/dist/lib/{api-BJ7F7DmT.d.ts → api-mja4jirh.d.ts} +1 -1
- package/dist/lib/build/esbuild.d.cts +1 -1
- package/dist/lib/build/esbuild.d.ts +1 -1
- package/dist/lib/build/index.d.cts +3 -3
- package/dist/lib/build/index.d.ts +3 -3
- package/dist/lib/build/rolldown.d.cts +1 -1
- package/dist/lib/build/rolldown.d.ts +1 -1
- package/dist/lib/build/rollup.d.cts +1 -1
- package/dist/lib/build/rollup.d.ts +1 -1
- package/dist/lib/build/rspack.d.cts +1 -1
- package/dist/lib/build/rspack.d.ts +1 -1
- package/dist/lib/build/tsup.d.cts +1 -1
- package/dist/lib/build/tsup.d.ts +1 -1
- package/dist/lib/build/unbuild.d.cts +3 -3
- package/dist/lib/build/unbuild.d.ts +3 -3
- package/dist/lib/build/vite.d.cts +1 -1
- package/dist/lib/build/vite.d.ts +1 -1
- package/dist/lib/build/webpack.d.cts +1 -1
- package/dist/lib/build/webpack.d.ts +1 -1
- package/dist/lib/{chunk-CCGA6ZHZ.cjs → chunk-3KR6TYGW.cjs} +13 -13
- package/dist/lib/{chunk-764HUXP3.js → chunk-63MH3ERQ.js} +25 -4
- package/dist/lib/{chunk-XW5TELHB.cjs → chunk-7JAGT5GC.cjs} +10 -3
- package/dist/lib/{chunk-EN4XP4D5.js → chunk-AHONHQGB.js} +1 -1
- package/dist/lib/{chunk-EJTGOYSI.cjs → chunk-B3DJ4CXY.cjs} +10 -10
- package/dist/lib/{chunk-NDKPSA3I.js → chunk-BGGENJH4.js} +2 -2
- package/dist/lib/{chunk-NVUXGMU5.cjs → chunk-LQEGZT5U.cjs} +25 -4
- package/dist/lib/{chunk-SZH2DJOG.js → chunk-OI7EHXNE.js} +3 -3
- package/dist/lib/{chunk-ZPIKFR7Z.js → chunk-PVCAB6BZ.js} +10 -3
- package/dist/lib/{chunk-27RAXIPT.cjs → chunk-SMZ672RP.cjs} +6 -6
- package/dist/lib/{config-CFZYRPQj.d.ts → config-7Q2dBjJE.d.ts} +6 -0
- package/dist/lib/{config-CxONCKEx.d.cts → config-BnJpgcGr.d.cts} +6 -0
- package/dist/lib/config-file.cjs +3 -3
- package/dist/lib/config-file.d.cts +3 -2
- package/dist/lib/config-file.d.ts +3 -2
- package/dist/lib/config-file.js +1 -1
- package/dist/lib/contexts/api-context.cjs +5 -5
- package/dist/lib/contexts/api-context.d.cts +3 -3
- package/dist/lib/contexts/api-context.d.ts +3 -3
- package/dist/lib/contexts/api-context.js +4 -4
- package/dist/lib/contexts/context.cjs +3 -3
- package/dist/lib/contexts/context.d.cts +10 -3
- package/dist/lib/contexts/context.d.ts +10 -3
- package/dist/lib/contexts/context.js +2 -2
- package/dist/lib/contexts/environment-context.cjs +4 -4
- package/dist/lib/contexts/environment-context.d.cts +3 -3
- package/dist/lib/contexts/environment-context.d.ts +3 -3
- package/dist/lib/contexts/environment-context.js +3 -3
- package/dist/lib/contexts/index.cjs +7 -7
- package/dist/lib/contexts/index.d.cts +3 -3
- package/dist/lib/contexts/index.d.ts +3 -3
- package/dist/lib/contexts/index.js +4 -4
- package/dist/lib/contexts/plugin-context.d.cts +3 -3
- package/dist/lib/contexts/plugin-context.d.ts +3 -3
- package/dist/lib/entry.d.cts +1 -1
- package/dist/lib/entry.d.ts +1 -1
- package/dist/lib/index.cjs +12 -12
- package/dist/lib/index.d.cts +4 -4
- package/dist/lib/index.d.ts +4 -4
- package/dist/lib/index.js +5 -5
- package/dist/lib/{internal-kEzuoIrl.d.ts → internal-BEygquYh.d.ts} +2 -2
- package/dist/lib/{internal-9D9Up5pT.d.cts → internal-BeR8fOB1.d.cts} +2 -2
- package/dist/lib/logger.d.cts +1 -1
- package/dist/lib/logger.d.ts +1 -1
- package/dist/lib/typescript/compiler-host.d.cts +1 -1
- package/dist/lib/typescript/compiler-host.d.ts +1 -1
- package/dist/lib/typescript/import-transformer.d.cts +1 -1
- package/dist/lib/typescript/import-transformer.d.ts +1 -1
- package/dist/lib/typescript/index.d.cts +1 -1
- package/dist/lib/typescript/index.d.ts +1 -1
- package/dist/lib/typescript/program.d.cts +1 -1
- package/dist/lib/typescript/program.d.ts +1 -1
- package/dist/lib/typescript/ts-morph.d.cts +1 -1
- package/dist/lib/typescript/ts-morph.d.ts +1 -1
- package/dist/lib/unplugin/factory.cjs +6 -6
- package/dist/lib/unplugin/factory.d.cts +3 -3
- package/dist/lib/unplugin/factory.d.ts +3 -3
- package/dist/lib/unplugin/factory.js +5 -5
- package/dist/lib/unplugin/helpers.d.cts +1 -1
- package/dist/lib/unplugin/helpers.d.ts +1 -1
- package/dist/lib/unplugin/index.cjs +6 -6
- package/dist/lib/unplugin/index.d.cts +3 -3
- package/dist/lib/unplugin/index.d.ts +3 -3
- package/dist/lib/unplugin/index.js +5 -5
- package/dist/lib/unplugin/plugin.d.cts +3 -3
- package/dist/lib/unplugin/plugin.d.ts +3 -3
- package/dist/lib/unplugin/resolve-id.d.cts +1 -1
- package/dist/lib/unplugin/resolve-id.d.ts +1 -1
- package/dist/lib/{unplugin-tmNrQvUk.d.ts → unplugin-CbbNDduM.d.ts} +2 -2
- package/dist/lib/{unplugin-BdLs3dwd.d.cts → unplugin-ppAOzR__.d.cts} +2 -2
- package/dist/lib/utilities/bundle.d.cts +1 -1
- package/dist/lib/utilities/bundle.d.ts +1 -1
- package/dist/lib/utilities/cache.d.cts +1 -1
- package/dist/lib/utilities/cache.d.ts +1 -1
- package/dist/lib/utilities/file-header.d.cts +1 -1
- package/dist/lib/utilities/file-header.d.ts +1 -1
- package/dist/lib/utilities/index.d.cts +1 -1
- package/dist/lib/utilities/index.d.ts +1 -1
- package/dist/lib/utilities/meta.d.cts +1 -1
- package/dist/lib/utilities/meta.d.ts +1 -1
- package/dist/lib/utilities/resolve-path.d.cts +1 -1
- package/dist/lib/utilities/resolve-path.d.ts +1 -1
- package/dist/lib/utilities/resolve.d.cts +1 -1
- package/dist/lib/utilities/resolve.d.ts +1 -1
- package/dist/lib/utilities/source-file.d.cts +1 -1
- package/dist/lib/utilities/source-file.d.ts +1 -1
- package/dist/lib/utilities/source-map.d.cts +1 -1
- package/dist/lib/utilities/source-map.d.ts +1 -1
- package/dist/lib/utilities/worker.d.cts +1 -1
- package/dist/lib/utilities/worker.d.ts +1 -1
- package/dist/lib/utilities/write-file.d.cts +1 -1
- package/dist/lib/utilities/write-file.d.ts +1 -1
- package/dist/next.cjs +4 -4
- package/dist/next.js +3 -3
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.d.cts +12 -6
- package/dist/nuxt.d.ts +12 -6
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{context-DRFZE3XI.d.ts → context-Cg11S-CE.d.cts} +6 -0
- package/dist/plugin-utils/{context-DRFZE3XI.d.cts → context-Cg11S-CE.d.ts} +6 -0
- package/dist/plugin-utils/context-helpers.d.cts +1 -1
- package/dist/plugin-utils/context-helpers.d.ts +1 -1
- package/dist/plugin-utils/enforce.d.cts +1 -1
- package/dist/plugin-utils/enforce.d.ts +1 -1
- package/dist/plugin-utils/extend.d.cts +1 -1
- package/dist/plugin-utils/extend.d.ts +1 -1
- package/dist/plugin-utils/get-config-path.d.cts +1 -1
- package/dist/plugin-utils/get-config-path.d.ts +1 -1
- package/dist/plugin-utils/helpers.d.cts +1 -1
- package/dist/plugin-utils/helpers.d.ts +1 -1
- package/dist/plugin-utils/index.d.cts +1 -1
- package/dist/plugin-utils/index.d.ts +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -1
- package/dist/plugin-utils/merge.d.ts +1 -1
- package/dist/plugin-utils/paths.d.cts +1 -1
- package/dist/plugin-utils/paths.d.ts +1 -1
- package/dist/{resolved-DKFZ11S7.d.ts → resolved-B3BSdXCt.d.ts} +13 -1
- package/dist/{resolved-C00CJgsk.d.cts → resolved-DGrpILrS.d.cts} +13 -1
- package/dist/rolldown.cjs +3 -3
- package/dist/rolldown.d.cts +3 -3
- package/dist/rolldown.d.ts +3 -3
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +3 -3
- package/dist/rollup.d.cts +3 -3
- package/dist/rollup.d.ts +3 -3
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +3 -3
- package/dist/rspack.d.cts +3 -3
- package/dist/rspack.d.ts +3 -3
- package/dist/rspack.js +2 -2
- package/dist/tsup.cjs +4 -4
- package/dist/tsup.d.cts +3 -2
- package/dist/tsup.d.ts +3 -2
- package/dist/tsup.js +3 -3
- package/dist/types/api.d.cts +2 -2
- package/dist/types/api.d.ts +2 -2
- package/dist/types/babel.d.cts +1 -1
- package/dist/types/babel.d.ts +1 -1
- package/dist/types/commands.d.cts +1 -1
- package/dist/types/commands.d.ts +1 -1
- package/dist/types/config.d.cts +1 -1
- package/dist/types/config.d.ts +1 -1
- package/dist/types/context.d.cts +1 -1
- package/dist/types/context.d.ts +1 -1
- package/dist/types/hooks.d.cts +1 -1
- package/dist/types/hooks.d.ts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/internal.d.cts +2 -2
- package/dist/types/internal.d.ts +2 -2
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/resolved.d.cts +1 -1
- package/dist/types/resolved.d.ts +1 -1
- package/dist/types/unplugin.d.cts +2 -2
- package/dist/types/unplugin.d.ts +2 -2
- package/dist/unloader.cjs +3 -3
- package/dist/unloader.d.cts +5 -4
- package/dist/unloader.d.ts +5 -4
- package/dist/unloader.js +2 -2
- package/dist/unplugin.cjs +7 -7
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +3 -3
- package/dist/vite.cjs +6 -6
- package/dist/vite.d.cts +5 -4
- package/dist/vite.d.ts +5 -4
- package/dist/vite.js +3 -3
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.d.cts +3 -3
- package/dist/webpack.d.ts +3 -3
- package/dist/webpack.js +3 -3
- package/package.json +9 -9
- package/dist/babel-types.d.ts +0 -292
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
4
4
|
var getConfig = require('@storm-software/config-tools/get-config');
|
|
5
5
|
var exists = require('@stryke/fs/exists');
|
|
6
|
+
var append = require('@stryke/path/append');
|
|
6
7
|
var joinPaths = require('@stryke/path/join-paths');
|
|
7
8
|
var isFunction = require('@stryke/type-checks/is-function');
|
|
8
9
|
var isSetObject = require('@stryke/type-checks/is-set-object');
|
|
@@ -23,11 +24,17 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
23
24
|
}));
|
|
24
25
|
}
|
|
25
26
|
chunkUSNT2KNT_cjs.__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
26
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
27
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
27
28
|
let resolvedUserConfig = {};
|
|
28
|
-
const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(projectRoot, configFile)) ? joinPaths.joinPaths(projectRoot, configFile) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.ts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.js`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mts`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`)) ? joinPaths.joinPaths(projectRoot, `${framework}.config.mjs`) : void 0;
|
|
29
|
+
const resolvedUserConfigFile = configFile && exists.existsSync(configFile) ? configFile : configFile && exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), configFile) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : exists.existsSync(joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths.joinPaths(append.appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
29
30
|
if (resolvedUserConfigFile) {
|
|
30
|
-
|
|
31
|
+
let resolvedPath;
|
|
32
|
+
try {
|
|
33
|
+
resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
|
|
34
|
+
} catch {
|
|
35
|
+
resolvedPath = resolvedUserConfigFile;
|
|
36
|
+
}
|
|
37
|
+
const resolved = await jiti.import(resolvedPath);
|
|
31
38
|
if (resolved) {
|
|
32
39
|
let config = {};
|
|
33
40
|
if (isFunction.isFunction(resolved)) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createPluginContext } from './chunk-KFJCWNVG.js';
|
|
2
|
-
import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-
|
|
2
|
+
import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-63MH3ERQ.js';
|
|
3
3
|
import { __name } from './chunk-SHUYVCID.js';
|
|
4
4
|
import { resolvePackage } from '@stryke/fs/resolve';
|
|
5
5
|
import { isFunction } from '@stryke/type-checks/is-function';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkB3EE3VHZ_cjs = require('./chunk-B3EE3VHZ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLQEGZT5U_cjs = require('./chunk-LQEGZT5U.cjs');
|
|
5
5
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
6
6
|
var resolve = require('@stryke/fs/resolve');
|
|
7
7
|
var isFunction = require('@stryke/type-checks/is-function');
|
|
@@ -17,7 +17,7 @@ var PLUGIN_NON_HOOK_FIELDS = [
|
|
|
17
17
|
];
|
|
18
18
|
|
|
19
19
|
// src/lib/contexts/environment-context.ts
|
|
20
|
-
var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends
|
|
20
|
+
var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends chunkLQEGZT5U_cjs.PowerlinesContext {
|
|
21
21
|
static {
|
|
22
22
|
chunkUSNT2KNT_cjs.__name(this, "PowerlinesEnvironmentContext");
|
|
23
23
|
}
|
|
@@ -65,7 +65,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
65
65
|
if (!result || isObject.isObject(result) && Object.keys(result).length === 0) {
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
resolvedPlugin =
|
|
68
|
+
resolvedPlugin = chunkLQEGZT5U_cjs.isPlugin(result) ? result : plugin;
|
|
69
69
|
}
|
|
70
70
|
const context = chunkB3EE3VHZ_cjs.createPluginContext(resolvedPlugin, this);
|
|
71
71
|
this.plugins.push({
|
|
@@ -75,28 +75,28 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
75
75
|
this.#hooks = Object.keys(resolvedPlugin).filter((key) => !PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
|
|
76
76
|
const hook = key;
|
|
77
77
|
const pluginHook = resolvedPlugin[hook];
|
|
78
|
-
if (!
|
|
78
|
+
if (!chunkLQEGZT5U_cjs.isPluginHook(pluginHook)) {
|
|
79
79
|
return ret;
|
|
80
80
|
}
|
|
81
|
-
if (!
|
|
81
|
+
if (!chunkLQEGZT5U_cjs.isHookExternal(hook)) {
|
|
82
82
|
ret[hook] ??= {};
|
|
83
83
|
if (resolvedPlugin.enforce) {
|
|
84
84
|
ret[hook][`${resolvedPlugin.enforce}Enforced`] ??= [];
|
|
85
|
-
|
|
85
|
+
chunkLQEGZT5U_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${resolvedPlugin.enforce}Enforced`]);
|
|
86
86
|
return ret;
|
|
87
87
|
}
|
|
88
88
|
if (isFunction.isFunction(pluginHook) || !pluginHook.order) {
|
|
89
89
|
ret[hook].normal ??= [];
|
|
90
|
-
|
|
90
|
+
chunkLQEGZT5U_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook].normal);
|
|
91
91
|
return ret;
|
|
92
92
|
}
|
|
93
93
|
ret[hook][`${pluginHook.order}Ordered`] ??= [];
|
|
94
|
-
|
|
94
|
+
chunkLQEGZT5U_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${pluginHook.order}Ordered`]);
|
|
95
95
|
} else {
|
|
96
96
|
ret[hook] ??= [];
|
|
97
97
|
ret[hook].push({
|
|
98
98
|
plugin: resolvedPlugin,
|
|
99
|
-
hook:
|
|
99
|
+
hook: chunkLQEGZT5U_cjs.getHookHandler(pluginHook).bind(context)
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
return ret;
|
|
@@ -108,7 +108,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
|
|
|
108
108
|
selectHooks(hook, options) {
|
|
109
109
|
const handlers = [];
|
|
110
110
|
if (this.hooks[hook]) {
|
|
111
|
-
if (!
|
|
111
|
+
if (!chunkLQEGZT5U_cjs.isHookExternal(hook)) {
|
|
112
112
|
const hooks = this.hooks[hook];
|
|
113
113
|
if (options?.order) {
|
|
114
114
|
if (options?.order === "pre") {
|
|
@@ -2,9 +2,9 @@ import { writeFile } from './chunk-TANQDHYY.js';
|
|
|
2
2
|
import { getFileHeader } from './chunk-GANVMM73.js';
|
|
3
3
|
import { handleResolveId } from './chunk-G7S5PIAC.js';
|
|
4
4
|
import { getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound } from './chunk-YOENMDZY.js';
|
|
5
|
-
import { PowerlinesAPIContext } from './chunk-
|
|
5
|
+
import { PowerlinesAPIContext } from './chunk-OI7EHXNE.js';
|
|
6
6
|
import { callHook } from './chunk-KFJCWNVG.js';
|
|
7
|
-
import { __VFS_PATCH__, __VFS_REVERT__, isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-
|
|
7
|
+
import { __VFS_PATCH__, __VFS_REVERT__, isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-63MH3ERQ.js';
|
|
8
8
|
import { writeMetaFile } from './chunk-YH5GOJS3.js';
|
|
9
9
|
import { createLog } from './chunk-ENRLU4UR.js';
|
|
10
10
|
import { getString } from './chunk-M263EZ4F.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk7XHBIYIN_cjs = require('./chunk-7XHBIYIN.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk7JAGT5GC_cjs = require('./chunk-7JAGT5GC.cjs');
|
|
5
5
|
var chunkJA4HSQRN_cjs = require('./chunk-JA4HSQRN.cjs');
|
|
6
6
|
var chunkISBHXSDH_cjs = require('./chunk-ISBHXSDH.cjs');
|
|
7
7
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
@@ -12,6 +12,7 @@ var exists = require('@stryke/fs/exists');
|
|
|
12
12
|
var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
|
|
13
13
|
var json = require('@stryke/fs/json');
|
|
14
14
|
var resolve = require('@stryke/fs/resolve');
|
|
15
|
+
var hashFiles = require('@stryke/hash/hash-files');
|
|
15
16
|
var murmurhash = require('@stryke/hash/murmurhash');
|
|
16
17
|
var getUnique = require('@stryke/helpers/get-unique');
|
|
17
18
|
var omit = require('@stryke/helpers/omit');
|
|
@@ -1999,7 +2000,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
1999
2000
|
* @returns A promise that resolves to the new context.
|
|
2000
2001
|
*/
|
|
2001
2002
|
static async from(workspaceRoot, config) {
|
|
2002
|
-
const context = new _PowerlinesContext(await
|
|
2003
|
+
const context = new _PowerlinesContext(await chunk7JAGT5GC_cjs.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
2003
2004
|
await context.withUserConfig(config);
|
|
2004
2005
|
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
2005
2006
|
if (!context.powerlinesPath) {
|
|
@@ -2356,6 +2357,26 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2356
2357
|
*/
|
|
2357
2358
|
logFn;
|
|
2358
2359
|
/**
|
|
2360
|
+
* Generates a checksum representing the current context state
|
|
2361
|
+
*
|
|
2362
|
+
* @param root - The root directory of the project to generate the checksum for
|
|
2363
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
2364
|
+
*/
|
|
2365
|
+
async generateChecksum(root = this.config.projectRoot) {
|
|
2366
|
+
this.#checksum = await hashFiles.hashDirectory(root, {
|
|
2367
|
+
ignore: [
|
|
2368
|
+
"node_modules",
|
|
2369
|
+
".git",
|
|
2370
|
+
".nx",
|
|
2371
|
+
".cache",
|
|
2372
|
+
".storm",
|
|
2373
|
+
"tmp",
|
|
2374
|
+
"dist"
|
|
2375
|
+
]
|
|
2376
|
+
});
|
|
2377
|
+
return this.#checksum;
|
|
2378
|
+
}
|
|
2379
|
+
/**
|
|
2359
2380
|
* Initialize the context with the provided configuration options
|
|
2360
2381
|
*
|
|
2361
2382
|
* @param config - The partial user configuration to use for initialization.
|
|
@@ -2387,7 +2408,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2387
2408
|
if (exists.existsSync(packageJsonPath)) {
|
|
2388
2409
|
this.packageJson = await json.readJsonFile(packageJsonPath);
|
|
2389
2410
|
}
|
|
2390
|
-
this.#checksum = await
|
|
2411
|
+
this.#checksum = await this.generateChecksum(cacheKey.projectRoot);
|
|
2391
2412
|
this.resolver = createResolver({
|
|
2392
2413
|
workspaceRoot: this.workspaceConfig.workspaceRoot,
|
|
2393
2414
|
projectRoot: cacheKey.projectRoot,
|
|
@@ -2395,7 +2416,7 @@ var PowerlinesContext = class _PowerlinesContext {
|
|
|
2395
2416
|
mode: cacheKey.mode,
|
|
2396
2417
|
skipCache: cacheKey.skipCache
|
|
2397
2418
|
});
|
|
2398
|
-
const userConfig = await
|
|
2419
|
+
const userConfig = await chunk7JAGT5GC_cjs.loadUserConfigFile(cacheKey.projectRoot, this.workspaceConfig.workspaceRoot, this.resolver, cacheKey.command, cacheKey.mode, cacheKey.configFile, cacheKey.framework);
|
|
2399
2420
|
this.mergeUserConfig(userConfig.config);
|
|
2400
2421
|
configCache.set(cacheKey, {
|
|
2401
2422
|
projectJson: this.projectJson,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PowerlinesEnvironmentContext } from './chunk-
|
|
2
|
-
import { PowerlinesContext } from './chunk-
|
|
3
|
-
import { loadWorkspaceConfig } from './chunk-
|
|
1
|
+
import { PowerlinesEnvironmentContext } from './chunk-AHONHQGB.js';
|
|
2
|
+
import { PowerlinesContext } from './chunk-63MH3ERQ.js';
|
|
3
|
+
import { loadWorkspaceConfig } from './chunk-PVCAB6BZ.js';
|
|
4
4
|
import { __name } from './chunk-SHUYVCID.js';
|
|
5
5
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
6
6
|
import { toArray } from '@stryke/convert/to-array';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __name } from './chunk-SHUYVCID.js';
|
|
2
2
|
import { getWorkspaceConfig } from '@storm-software/config-tools/get-config';
|
|
3
3
|
import { existsSync } from '@stryke/fs/exists';
|
|
4
|
+
import { appendPath } from '@stryke/path/append';
|
|
4
5
|
import { joinPaths } from '@stryke/path/join-paths';
|
|
5
6
|
import { isFunction } from '@stryke/type-checks/is-function';
|
|
6
7
|
import { isSetObject } from '@stryke/type-checks/is-set-object';
|
|
@@ -17,11 +18,17 @@ async function loadWorkspaceConfig(workspaceRoot, cwd) {
|
|
|
17
18
|
}));
|
|
18
19
|
}
|
|
19
20
|
__name(loadWorkspaceConfig, "loadWorkspaceConfig");
|
|
20
|
-
async function loadUserConfigFile(projectRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
21
|
+
async function loadUserConfigFile(projectRoot, workspaceRoot, jiti, command, mode, configFile, framework = "powerlines") {
|
|
21
22
|
let resolvedUserConfig = {};
|
|
22
|
-
const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths(projectRoot, configFile)) ? joinPaths(projectRoot, configFile) : existsSync(joinPaths(projectRoot, `${framework}.config.ts`)) ? joinPaths(projectRoot, `${framework}.config.ts`) : existsSync(joinPaths(projectRoot, `${framework}.config.js`)) ? joinPaths(projectRoot, `${framework}.config.js`) : existsSync(joinPaths(projectRoot, `${framework}.config.mts`)) ? joinPaths(projectRoot, `${framework}.config.mts`) : existsSync(joinPaths(projectRoot, `${framework}.config.mjs`)) ? joinPaths(projectRoot, `${framework}.config.mjs`) : void 0;
|
|
23
|
+
const resolvedUserConfigFile = configFile && existsSync(configFile) ? configFile : configFile && existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), configFile)) ? joinPaths(appendPath(projectRoot, workspaceRoot), configFile) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.ts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.js`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mts`) : existsSync(joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`)) ? joinPaths(appendPath(projectRoot, workspaceRoot), `${framework}.config.mjs`) : void 0;
|
|
23
24
|
if (resolvedUserConfigFile) {
|
|
24
|
-
|
|
25
|
+
let resolvedPath;
|
|
26
|
+
try {
|
|
27
|
+
resolvedPath = jiti.esmResolve(resolvedUserConfigFile);
|
|
28
|
+
} catch {
|
|
29
|
+
resolvedPath = resolvedUserConfigFile;
|
|
30
|
+
}
|
|
31
|
+
const resolved = await jiti.import(resolvedPath);
|
|
25
32
|
if (resolved) {
|
|
26
33
|
let config = {};
|
|
27
34
|
if (isFunction(resolved)) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkB3DJ4CXY_cjs = require('./chunk-B3DJ4CXY.cjs');
|
|
4
|
+
var chunkLQEGZT5U_cjs = require('./chunk-LQEGZT5U.cjs');
|
|
5
|
+
var chunk7JAGT5GC_cjs = require('./chunk-7JAGT5GC.cjs');
|
|
6
6
|
var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
|
|
7
7
|
var types = require('@storm-software/config-tools/types');
|
|
8
8
|
var toArray = require('@stryke/convert/to-array');
|
|
@@ -64,7 +64,7 @@ function createDefaultEnvironment(userConfig) {
|
|
|
64
64
|
chunkUSNT2KNT_cjs.__name(createDefaultEnvironment, "createDefaultEnvironment");
|
|
65
65
|
|
|
66
66
|
// src/lib/contexts/api-context.ts
|
|
67
|
-
var PowerlinesAPIContext = class _PowerlinesAPIContext extends
|
|
67
|
+
var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkLQEGZT5U_cjs.PowerlinesContext {
|
|
68
68
|
static {
|
|
69
69
|
chunkUSNT2KNT_cjs.__name(this, "PowerlinesAPIContext");
|
|
70
70
|
}
|
|
@@ -79,7 +79,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkNVUXGMU5_cjs
|
|
|
79
79
|
* @returns A promise that resolves to the new context.
|
|
80
80
|
*/
|
|
81
81
|
static async from(workspaceRoot, config) {
|
|
82
|
-
const context = new _PowerlinesAPIContext(await
|
|
82
|
+
const context = new _PowerlinesAPIContext(await chunk7JAGT5GC_cjs.loadWorkspaceConfig(workspaceRoot, config.root));
|
|
83
83
|
await context.withUserConfig(config);
|
|
84
84
|
context.powerlinesPath = await resolve.resolvePackage("powerlines");
|
|
85
85
|
if (!context.powerlinesPath) {
|
|
@@ -127,7 +127,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkNVUXGMU5_cjs
|
|
|
127
127
|
if (this.environments[environment.name]) {
|
|
128
128
|
context = this.environments[environment.name];
|
|
129
129
|
} else {
|
|
130
|
-
context = await
|
|
130
|
+
context = await chunkB3DJ4CXY_cjs.PowerlinesEnvironmentContext.fromConfig(this.workspaceConfig, this.config);
|
|
131
131
|
}
|
|
132
132
|
if (isSetObject.isSetObject(this.config.inlineConfig)) {
|
|
133
133
|
await context.withInlineConfig(this.config.inlineConfig);
|
|
@@ -1166,6 +1166,12 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1166
1166
|
* @returns A logger function
|
|
1167
1167
|
*/
|
|
1168
1168
|
extendLog: (name: string) => LogFn;
|
|
1169
|
+
/**
|
|
1170
|
+
* Generates a checksum representing the current context state
|
|
1171
|
+
*
|
|
1172
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
1173
|
+
*/
|
|
1174
|
+
generateChecksum: () => Promise<string>;
|
|
1169
1175
|
}
|
|
1170
1176
|
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
1171
1177
|
/**
|
|
@@ -1166,6 +1166,12 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1166
1166
|
* @returns A logger function
|
|
1167
1167
|
*/
|
|
1168
1168
|
extendLog: (name: string) => LogFn;
|
|
1169
|
+
/**
|
|
1170
|
+
* Generates a checksum representing the current context state
|
|
1171
|
+
*
|
|
1172
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
1173
|
+
*/
|
|
1174
|
+
generateChecksum: () => Promise<string>;
|
|
1169
1175
|
}
|
|
1170
1176
|
type Context<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = Omit<UnresolvedContext<TResolvedConfig>, "config"> & {
|
|
1171
1177
|
/**
|
package/dist/lib/config-file.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7JAGT5GC_cjs = require('./chunk-7JAGT5GC.cjs');
|
|
4
4
|
require('./chunk-USNT2KNT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "loadUserConfigFile", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk7JAGT5GC_cjs.loadUserConfigFile; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "loadWorkspaceConfig", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk7JAGT5GC_cjs.loadWorkspaceConfig; }
|
|
15
15
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-BnJpgcGr.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -43,6 +43,7 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
|
|
|
43
43
|
* Loads the user configuration file for the project.
|
|
44
44
|
*
|
|
45
45
|
* @param projectRoot - The root directory of the project.
|
|
46
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
46
47
|
* @param jiti - An instance of Jiti to resolve modules from
|
|
47
48
|
* @param command - The {@link PowerlinesCommand} string associated with the current running process
|
|
48
49
|
* @param mode - The mode in which the project is running (default is "production").
|
|
@@ -50,7 +51,7 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
|
|
|
50
51
|
* @param framework - The framework name to use for default configuration file names.
|
|
51
52
|
* @returns A promise that resolves to the resolved user configuration.
|
|
52
53
|
*/
|
|
53
|
-
declare function loadUserConfigFile(projectRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
|
|
54
|
+
declare function loadUserConfigFile(projectRoot: string, workspaceRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
|
|
54
55
|
declare type __ΩPartiallyResolvedContext = any[];
|
|
55
56
|
|
|
56
57
|
export { type PartiallyResolvedContext, type __ΩPartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-
|
|
2
|
+
import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-7Q2dBjJE.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -43,6 +43,7 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
|
|
|
43
43
|
* Loads the user configuration file for the project.
|
|
44
44
|
*
|
|
45
45
|
* @param projectRoot - The root directory of the project.
|
|
46
|
+
* @param workspaceRoot - The root directory of the workspace.
|
|
46
47
|
* @param jiti - An instance of Jiti to resolve modules from
|
|
47
48
|
* @param command - The {@link PowerlinesCommand} string associated with the current running process
|
|
48
49
|
* @param mode - The mode in which the project is running (default is "production").
|
|
@@ -50,7 +51,7 @@ declare function loadWorkspaceConfig(workspaceRoot: string, cwd: string): Promis
|
|
|
50
51
|
* @param framework - The framework name to use for default configuration file names.
|
|
51
52
|
* @returns A promise that resolves to the resolved user configuration.
|
|
52
53
|
*/
|
|
53
|
-
declare function loadUserConfigFile(projectRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
|
|
54
|
+
declare function loadUserConfigFile(projectRoot: string, workspaceRoot: string, jiti: Jiti, command?: PowerlinesCommand, mode?: string, configFile?: string, framework?: string): Promise<ParsedUserConfig>;
|
|
54
55
|
declare type __ΩPartiallyResolvedContext = any[];
|
|
55
56
|
|
|
56
57
|
export { type PartiallyResolvedContext, type __ΩPartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig };
|
package/dist/lib/config-file.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { loadUserConfigFile, loadWorkspaceConfig } from './chunk-
|
|
1
|
+
export { loadUserConfigFile, loadWorkspaceConfig } from './chunk-PVCAB6BZ.js';
|
|
2
2
|
import './chunk-SHUYVCID.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var chunkSMZ672RP_cjs = require('../chunk-SMZ672RP.cjs');
|
|
4
|
+
require('../chunk-B3DJ4CXY.cjs');
|
|
5
5
|
require('../chunk-B3EE3VHZ.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-LQEGZT5U.cjs');
|
|
7
7
|
require('../chunk-7XHBIYIN.cjs');
|
|
8
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-7JAGT5GC.cjs');
|
|
9
9
|
require('../chunk-JA4HSQRN.cjs');
|
|
10
10
|
require('../chunk-ISBHXSDH.cjs');
|
|
11
11
|
require('../chunk-USNT2KNT.cjs');
|
|
@@ -14,5 +14,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, "PowerlinesAPIContext", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSMZ672RP_cjs.PowerlinesAPIContext; }
|
|
18
18
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-
|
|
1
|
+
import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-BnJpgcGr.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,8 +28,8 @@ import '@stryke/types/array';
|
|
|
28
28
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
29
29
|
import '@stryke/types/tsconfig';
|
|
30
30
|
import 'typescript';
|
|
31
|
-
import '../internal-
|
|
32
|
-
import '../api-
|
|
31
|
+
import '../internal-BeR8fOB1.cjs';
|
|
32
|
+
import '../api-Cm51oVbC.cjs';
|
|
33
33
|
|
|
34
34
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
35
35
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-
|
|
1
|
+
import { m as ResolvedConfig, A as APIContext, I as InitialUserConfig, n as EnvironmentContext, L as LogFn, o as Plugin, p as PluginContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig } from '../config-7Q2dBjJE.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,8 +28,8 @@ import '@stryke/types/array';
|
|
|
28
28
|
import '../tsconfig-Bz-CiFqD.js';
|
|
29
29
|
import '@stryke/types/tsconfig';
|
|
30
30
|
import 'typescript';
|
|
31
|
-
import '../internal-
|
|
32
|
-
import '../api-
|
|
31
|
+
import '../internal-BEygquYh.js';
|
|
32
|
+
import '../api-mja4jirh.js';
|
|
33
33
|
|
|
34
34
|
declare class PowerlinesAPIContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements APIContext<TResolvedConfig> {
|
|
35
35
|
#private;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { PowerlinesAPIContext } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { PowerlinesAPIContext } from '../chunk-OI7EHXNE.js';
|
|
2
|
+
import '../chunk-AHONHQGB.js';
|
|
3
3
|
import '../chunk-KFJCWNVG.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-63MH3ERQ.js';
|
|
5
5
|
import '../chunk-YH5GOJS3.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-PVCAB6BZ.js';
|
|
7
7
|
import '../chunk-ENRLU4UR.js';
|
|
8
8
|
import '../chunk-XZFEHPYE.js';
|
|
9
9
|
import '../chunk-SHUYVCID.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLQEGZT5U_cjs = require('../chunk-LQEGZT5U.cjs');
|
|
4
4
|
require('../chunk-7XHBIYIN.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-7JAGT5GC.cjs');
|
|
6
6
|
require('../chunk-JA4HSQRN.cjs');
|
|
7
7
|
require('../chunk-ISBHXSDH.cjs');
|
|
8
8
|
require('../chunk-USNT2KNT.cjs');
|
|
@@ -11,5 +11,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "PowerlinesContext", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkLQEGZT5U_cjs.PowerlinesContext; }
|
|
15
15
|
});
|
|
@@ -2,8 +2,8 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
|
2
2
|
import { PackageJson } from '@stryke/types/package-json';
|
|
3
3
|
import { Range } from 'semver';
|
|
4
4
|
import { UnpluginMessage } from 'unplugin';
|
|
5
|
-
import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-
|
|
6
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
5
|
+
import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-BnJpgcGr.cjs';
|
|
6
|
+
import { a as UNSAFE_ContextInternal } from '../internal-BeR8fOB1.cjs';
|
|
7
7
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
|
|
8
8
|
import '@storm-software/build-tools/types';
|
|
9
9
|
import '@storm-software/config-tools/types';
|
|
@@ -26,7 +26,7 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
|
-
import '../api-
|
|
29
|
+
import '../api-Cm51oVbC.cjs';
|
|
30
30
|
import '@stryke/types/tsconfig';
|
|
31
31
|
import 'typescript';
|
|
32
32
|
|
|
@@ -243,6 +243,13 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
243
243
|
* A logger function specific to this context
|
|
244
244
|
*/
|
|
245
245
|
protected logFn: LogFn;
|
|
246
|
+
/**
|
|
247
|
+
* Generates a checksum representing the current context state
|
|
248
|
+
*
|
|
249
|
+
* @param root - The root directory of the project to generate the checksum for
|
|
250
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
251
|
+
*/
|
|
252
|
+
generateChecksum(root?: string): Promise<string>;
|
|
246
253
|
/**
|
|
247
254
|
* Initialize the context with the provided configuration options
|
|
248
255
|
*
|
|
@@ -2,8 +2,8 @@ import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
|
2
2
|
import { PackageJson } from '@stryke/types/package-json';
|
|
3
3
|
import { Range } from 'semver';
|
|
4
4
|
import { UnpluginMessage } from 'unplugin';
|
|
5
|
-
import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-
|
|
6
|
-
import { a as UNSAFE_ContextInternal } from '../internal-
|
|
5
|
+
import { m as ResolvedConfig, C as Context, I as InitialUserConfig, u as MetaInfo, v as Resolver, g as ResolvedEntryTypeDefinition, V as VirtualFileSystemInterface, L as LogFn, e as WorkspaceConfig, w as VirtualFile, x as PowerlinesWriteFileOptions, y as InitContextOptions } from '../config-7Q2dBjJE.js';
|
|
6
|
+
import { a as UNSAFE_ContextInternal } from '../internal-BEygquYh.js';
|
|
7
7
|
import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
|
|
8
8
|
import '@storm-software/build-tools/types';
|
|
9
9
|
import '@storm-software/config-tools/types';
|
|
@@ -26,7 +26,7 @@ import 'jiti';
|
|
|
26
26
|
import 'magic-string';
|
|
27
27
|
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
|
-
import '../api-
|
|
29
|
+
import '../api-mja4jirh.js';
|
|
30
30
|
import '@stryke/types/tsconfig';
|
|
31
31
|
import 'typescript';
|
|
32
32
|
|
|
@@ -243,6 +243,13 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
|
|
|
243
243
|
* A logger function specific to this context
|
|
244
244
|
*/
|
|
245
245
|
protected logFn: LogFn;
|
|
246
|
+
/**
|
|
247
|
+
* Generates a checksum representing the current context state
|
|
248
|
+
*
|
|
249
|
+
* @param root - The root directory of the project to generate the checksum for
|
|
250
|
+
* @returns A promise that resolves to a string representing the checksum
|
|
251
|
+
*/
|
|
252
|
+
generateChecksum(root?: string): Promise<string>;
|
|
246
253
|
/**
|
|
247
254
|
* Initialize the context with the provided configuration options
|
|
248
255
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { PowerlinesContext } from '../chunk-
|
|
1
|
+
export { PowerlinesContext } from '../chunk-63MH3ERQ.js';
|
|
2
2
|
import '../chunk-YH5GOJS3.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-PVCAB6BZ.js';
|
|
4
4
|
import '../chunk-ENRLU4UR.js';
|
|
5
5
|
import '../chunk-XZFEHPYE.js';
|
|
6
6
|
import '../chunk-SHUYVCID.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB3DJ4CXY_cjs = require('../chunk-B3DJ4CXY.cjs');
|
|
4
4
|
require('../chunk-B3EE3VHZ.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-LQEGZT5U.cjs');
|
|
6
6
|
require('../chunk-7XHBIYIN.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-7JAGT5GC.cjs');
|
|
8
8
|
require('../chunk-JA4HSQRN.cjs');
|
|
9
9
|
require('../chunk-ISBHXSDH.cjs');
|
|
10
10
|
require('../chunk-USNT2KNT.cjs');
|
|
@@ -13,5 +13,5 @@ require('../chunk-USNT2KNT.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkB3DJ4CXY_cjs.PowerlinesEnvironmentContext; }
|
|
17
17
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-
|
|
1
|
+
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-BnJpgcGr.cjs';
|
|
2
2
|
import { PowerlinesContext } from './context.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,8 +28,8 @@ import '@stryke/types/array';
|
|
|
28
28
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
29
29
|
import '@stryke/types/tsconfig';
|
|
30
30
|
import 'typescript';
|
|
31
|
-
import '../internal-
|
|
32
|
-
import '../api-
|
|
31
|
+
import '../internal-BeR8fOB1.cjs';
|
|
32
|
+
import '../api-Cm51oVbC.cjs';
|
|
33
33
|
|
|
34
34
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
35
35
|
#private;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-
|
|
1
|
+
import { m as ResolvedConfig, n as EnvironmentContext, e as WorkspaceConfig, q as EnvironmentResolvedConfig, r as EnvironmentContextPlugin, H as HooksList, p as PluginContext, o as Plugin, s as HookKeys, S as SelectHooksOptions, t as InferHookHandler } from '../config-7Q2dBjJE.js';
|
|
2
2
|
import { PowerlinesContext } from './context.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
@@ -28,8 +28,8 @@ import '@stryke/types/array';
|
|
|
28
28
|
import '../tsconfig-Bz-CiFqD.js';
|
|
29
29
|
import '@stryke/types/tsconfig';
|
|
30
30
|
import 'typescript';
|
|
31
|
-
import '../internal-
|
|
32
|
-
import '../api-
|
|
31
|
+
import '../internal-BEygquYh.js';
|
|
32
|
+
import '../api-mja4jirh.js';
|
|
33
33
|
|
|
34
34
|
declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
|
|
35
35
|
#private;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { PowerlinesEnvironmentContext } from '../chunk-
|
|
1
|
+
export { PowerlinesEnvironmentContext } from '../chunk-AHONHQGB.js';
|
|
2
2
|
import '../chunk-KFJCWNVG.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-63MH3ERQ.js';
|
|
4
4
|
import '../chunk-YH5GOJS3.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-PVCAB6BZ.js';
|
|
6
6
|
import '../chunk-ENRLU4UR.js';
|
|
7
7
|
import '../chunk-XZFEHPYE.js';
|
|
8
8
|
import '../chunk-SHUYVCID.js';
|