powerlines 0.13.0 → 0.14.0
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/lib/build/esbuild.d.cts +13 -13
- package/dist/lib/build/esbuild.d.ts +13 -13
- package/dist/lib/build/index.cjs +18 -18
- package/dist/lib/build/index.d.cts +14 -14
- package/dist/lib/build/index.d.ts +14 -14
- package/dist/lib/build/index.js +3 -3
- package/dist/lib/build/rolldown.d.cts +13 -13
- package/dist/lib/build/rolldown.d.ts +13 -13
- package/dist/lib/build/rollup.d.cts +13 -13
- package/dist/lib/build/rollup.d.ts +13 -13
- package/dist/lib/build/rspack.d.cts +13 -13
- package/dist/lib/build/rspack.d.ts +13 -13
- package/dist/lib/build/tsup.d.cts +12 -12
- package/dist/lib/build/tsup.d.ts +12 -12
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +14 -14
- package/dist/lib/build/unbuild.d.ts +14 -14
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.d.cts +13 -13
- package/dist/lib/build/vite.d.ts +13 -13
- package/dist/lib/build/webpack.d.cts +13 -13
- package/dist/lib/build/webpack.d.ts +13 -13
- package/dist/lib/chunk-5PNLONNN.cjs +30 -0
- package/dist/lib/chunk-5PNLONNN.cjs.map +1 -0
- package/dist/lib/{chunk-2625RJNJ.cjs → chunk-7LLECRBP.cjs} +2 -2
- package/dist/lib/chunk-7LLECRBP.cjs.map +1 -0
- package/dist/lib/{chunk-S4TGQD45.js → chunk-CAPN4FSS.js} +3 -3
- package/dist/lib/{chunk-S4TGQD45.js.map → chunk-CAPN4FSS.js.map} +1 -1
- package/dist/lib/chunk-HJWJNSSZ.js +3 -0
- package/dist/lib/{chunk-CLOW34EQ.js.map → chunk-HJWJNSSZ.js.map} +1 -1
- package/dist/lib/chunk-LEIOWD2W.js +28 -0
- package/dist/lib/chunk-LEIOWD2W.js.map +1 -0
- package/dist/lib/{chunk-GTQZYDA7.js → chunk-ODJBZ6PS.js} +2 -2
- package/dist/lib/chunk-ODJBZ6PS.js.map +1 -0
- package/dist/lib/chunk-XQMVE2NH.cjs +4 -0
- package/dist/lib/{chunk-UYDY7RRQ.cjs.map → chunk-XQMVE2NH.cjs.map} +1 -1
- package/dist/lib/{chunk-BAC4AJEP.cjs → chunk-YVDJCVE5.cjs} +3 -3
- package/dist/lib/{chunk-BAC4AJEP.cjs.map → chunk-YVDJCVE5.cjs.map} +1 -1
- package/dist/lib/{context-CyvlnBhJ.d.ts → config-DnifzkPt.d.ts} +555 -555
- package/dist/lib/{context-C2kRqM7P.d.cts → config-Ro14HmyO.d.cts} +555 -555
- package/dist/lib/config-file.d.cts +12 -12
- package/dist/lib/config-file.d.ts +12 -12
- package/dist/lib/create-program.d.cts +13 -13
- package/dist/lib/create-program.d.ts +13 -13
- package/dist/lib/entry.d.cts +13 -13
- package/dist/lib/entry.d.ts +13 -13
- package/dist/lib/{hooks-CzUm_Tex.d.cts → hooks-B6Ow5MtE.d.ts} +1 -1
- package/dist/lib/{hooks-DC-ktHnL.d.ts → hooks-CM-BbMzz.d.cts} +1 -1
- package/dist/lib/index.cjs +16 -11
- package/dist/lib/index.d.cts +16 -15
- package/dist/lib/index.d.ts +16 -15
- package/dist/lib/index.js +4 -3
- package/dist/lib/logger.d.cts +12 -12
- package/dist/lib/logger.d.ts +12 -12
- package/dist/lib/typescript/compiler-host.d.cts +13 -13
- package/dist/lib/typescript/compiler-host.d.ts +13 -13
- package/dist/lib/typescript/import-transformer.d.cts +13 -13
- package/dist/lib/typescript/import-transformer.d.ts +13 -13
- package/dist/lib/typescript/index.d.cts +13 -13
- package/dist/lib/typescript/index.d.ts +13 -13
- package/dist/lib/typescript/program.d.cts +13 -13
- package/dist/lib/typescript/program.d.ts +13 -13
- package/dist/lib/unplugin/factory.d.cts +13 -13
- package/dist/lib/unplugin/factory.d.ts +13 -13
- package/dist/lib/unplugin/index.d.cts +13 -13
- package/dist/lib/unplugin/index.d.ts +13 -13
- package/dist/lib/unplugin/plugin.d.cts +12 -12
- package/dist/lib/unplugin/plugin.d.ts +12 -12
- package/dist/lib/unplugin/resolve-id.d.cts +12 -12
- package/dist/lib/unplugin/resolve-id.d.ts +12 -12
- package/dist/lib/utilities/bundle.cjs +16 -0
- package/dist/lib/{bundle.d.cts → utilities/bundle.d.cts} +14 -14
- package/dist/lib/{bundle.d.ts → utilities/bundle.d.ts} +14 -14
- package/dist/lib/utilities/bundle.js +7 -0
- package/dist/lib/utilities/file-header.d.cts +13 -13
- package/dist/lib/utilities/file-header.d.ts +13 -13
- package/dist/lib/utilities/index.cjs +18 -6
- package/dist/lib/utilities/index.d.cts +18 -16
- package/dist/lib/utilities/index.d.ts +18 -16
- package/dist/lib/utilities/index.js +6 -2
- package/dist/lib/utilities/meta.d.cts +13 -13
- package/dist/lib/utilities/meta.d.ts +13 -13
- package/dist/lib/utilities/plugin-helpers.d.cts +12 -12
- package/dist/lib/utilities/plugin-helpers.d.ts +12 -12
- package/dist/lib/utilities/resolve-path.d.cts +13 -13
- package/dist/lib/utilities/resolve-path.d.ts +13 -13
- package/dist/lib/utilities/resolve.cjs +17 -0
- package/dist/lib/utilities/resolve.cjs.map +1 -0
- package/dist/lib/utilities/resolve.d.cts +44 -0
- package/dist/lib/utilities/resolve.d.ts +44 -0
- package/dist/lib/utilities/resolve.js +8 -0
- package/dist/lib/utilities/resolve.js.map +1 -0
- package/dist/lib/utilities/worker.d.cts +12 -12
- package/dist/lib/utilities/worker.d.ts +12 -12
- package/dist/lib/utilities/write-file.d.cts +13 -13
- package/dist/lib/utilities/write-file.d.ts +13 -13
- package/package.json +2 -2
- package/dist/lib/bundle.cjs +0 -16
- package/dist/lib/bundle.js +0 -7
- package/dist/lib/chunk-2625RJNJ.cjs.map +0 -1
- package/dist/lib/chunk-CLOW34EQ.js +0 -3
- package/dist/lib/chunk-GTQZYDA7.js.map +0 -1
- package/dist/lib/chunk-UYDY7RRQ.cjs +0 -4
- /package/dist/lib/{bundle.cjs.map → utilities/bundle.cjs.map} +0 -0
- /package/dist/lib/{bundle.js.map → utilities/bundle.js.map} +0 -0
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { C as Context } from '../
|
|
2
|
-
import '@
|
|
3
|
-
import '@
|
|
4
|
-
import '
|
|
5
|
-
import 'jiti';
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
1
|
+
import { C as Context } from '../config-Ro14HmyO.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
9
5
|
import '@stryke/types/base';
|
|
10
6
|
import '@stryke/types/configuration';
|
|
11
7
|
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
12
9
|
import 'vite';
|
|
13
10
|
import '@farmfe/core';
|
|
14
11
|
import '@rspack/core';
|
|
@@ -18,14 +15,17 @@ import 'esbuild';
|
|
|
18
15
|
import 'rolldown';
|
|
19
16
|
import 'rollup';
|
|
20
17
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { C as Context } from '../
|
|
2
|
-
import '@
|
|
3
|
-
import '@
|
|
4
|
-
import '
|
|
5
|
-
import 'jiti';
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
1
|
+
import { C as Context } from '../config-DnifzkPt.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
9
5
|
import '@stryke/types/base';
|
|
10
6
|
import '@stryke/types/configuration';
|
|
11
7
|
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
12
9
|
import 'vite';
|
|
13
10
|
import '@farmfe/core';
|
|
14
11
|
import '@rspack/core';
|
|
@@ -18,14 +15,17 @@ import 'esbuild';
|
|
|
18
15
|
import 'rolldown';
|
|
19
16
|
import 'rollup';
|
|
20
17
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.js';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5PNLONNN_cjs = require('../chunk-5PNLONNN.cjs');
|
|
4
|
+
require('../chunk-7LLECRBP.cjs');
|
|
5
|
+
require('../chunk-4XUVP2LL.cjs');
|
|
6
|
+
require('../chunk-GJNFAFKR.cjs');
|
|
7
|
+
require('../chunk-BEKLDCTV.cjs');
|
|
8
|
+
require('../chunk-PK6SKIKE.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Object.defineProperty(exports, "resolve", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunk5PNLONNN_cjs.resolve; }
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=resolve.cjs.map
|
|
17
|
+
//# sourceMappingURL=resolve.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"resolve.cjs"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
+
import { C as Context, E as ESBuildResolvedBuildConfig } from '../config-Ro14HmyO.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@farmfe/core';
|
|
11
|
+
import '@rspack/core';
|
|
12
|
+
import '@storm-software/esbuild/types';
|
|
13
|
+
import '@storm-software/unbuild/types';
|
|
14
|
+
import 'esbuild';
|
|
15
|
+
import 'rolldown';
|
|
16
|
+
import 'rollup';
|
|
17
|
+
import 'webpack';
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
26
|
+
import '../tsconfig-Bz-CiFqD.cjs';
|
|
27
|
+
import '@stryke/types/tsconfig';
|
|
28
|
+
import 'typescript';
|
|
29
|
+
import '@stryke/json/types';
|
|
30
|
+
import 'memfs';
|
|
31
|
+
import 'node:fs';
|
|
32
|
+
import 'unionfs';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Compiles a type definition to a module.
|
|
36
|
+
*
|
|
37
|
+
* @param context - The context object containing the environment paths.
|
|
38
|
+
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
39
|
+
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
40
|
+
* @returns A promise that resolves to the compiled module.
|
|
41
|
+
*/
|
|
42
|
+
declare function resolve<TResult = any>(context: Context, type: TypeDefinitionParameter, overrides?: Partial<ESBuildResolvedBuildConfig>): Promise<TResult>;
|
|
43
|
+
|
|
44
|
+
export { resolve };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { TypeDefinitionParameter } from '@stryke/types/configuration';
|
|
2
|
+
import { C as Context, E as ESBuildResolvedBuildConfig } from '../config-DnifzkPt.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@farmfe/core';
|
|
11
|
+
import '@rspack/core';
|
|
12
|
+
import '@storm-software/esbuild/types';
|
|
13
|
+
import '@storm-software/unbuild/types';
|
|
14
|
+
import 'esbuild';
|
|
15
|
+
import 'rolldown';
|
|
16
|
+
import 'rollup';
|
|
17
|
+
import 'webpack';
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
26
|
+
import '../tsconfig-Bz-CiFqD.js';
|
|
27
|
+
import '@stryke/types/tsconfig';
|
|
28
|
+
import 'typescript';
|
|
29
|
+
import '@stryke/json/types';
|
|
30
|
+
import 'memfs';
|
|
31
|
+
import 'node:fs';
|
|
32
|
+
import 'unionfs';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Compiles a type definition to a module.
|
|
36
|
+
*
|
|
37
|
+
* @param context - The context object containing the environment paths.
|
|
38
|
+
* @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
|
|
39
|
+
* @param overrides - Optional overrides for the ESBuild configuration.
|
|
40
|
+
* @returns A promise that resolves to the compiled module.
|
|
41
|
+
*/
|
|
42
|
+
declare function resolve<TResult = any>(context: Context, type: TypeDefinitionParameter, overrides?: Partial<ESBuildResolvedBuildConfig>): Promise<TResult>;
|
|
43
|
+
|
|
44
|
+
export { resolve };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { resolve } from '../chunk-LEIOWD2W.js';
|
|
2
|
+
import '../chunk-ODJBZ6PS.js';
|
|
3
|
+
import '../chunk-RXQWNSZX.js';
|
|
4
|
+
import '../chunk-3I2YOM2E.js';
|
|
5
|
+
import '../chunk-STAKGAWR.js';
|
|
6
|
+
import '../chunk-7QVYU63E.js';
|
|
7
|
+
//# sourceMappingURL=resolve.js.map
|
|
8
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"resolve.js"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Worker as Worker$1 } from 'jest-worker';
|
|
2
|
-
import { q as WorkerProcess } from '../
|
|
3
|
-
import '@
|
|
4
|
-
import '@
|
|
5
|
-
import '
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
2
|
+
import { q as WorkerProcess } from '../config-Ro14HmyO.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
9
6
|
import '@stryke/types/base';
|
|
10
7
|
import '@stryke/types/configuration';
|
|
11
8
|
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
12
10
|
import 'vite';
|
|
13
11
|
import '@farmfe/core';
|
|
14
12
|
import '@rspack/core';
|
|
@@ -18,14 +16,16 @@ import 'esbuild';
|
|
|
18
16
|
import 'rolldown';
|
|
19
17
|
import 'rollup';
|
|
20
18
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Worker as Worker$1 } from 'jest-worker';
|
|
2
|
-
import { q as WorkerProcess } from '../
|
|
3
|
-
import '@
|
|
4
|
-
import '@
|
|
5
|
-
import '
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
2
|
+
import { q as WorkerProcess } from '../config-DnifzkPt.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
9
6
|
import '@stryke/types/base';
|
|
10
7
|
import '@stryke/types/configuration';
|
|
11
8
|
import '@stryke/types/file';
|
|
9
|
+
import 'c12';
|
|
12
10
|
import 'vite';
|
|
13
11
|
import '@farmfe/core';
|
|
14
12
|
import '@rspack/core';
|
|
@@ -18,14 +16,16 @@ import 'esbuild';
|
|
|
18
16
|
import 'rolldown';
|
|
19
17
|
import 'rollup';
|
|
20
18
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
19
|
+
import '@stryke/env/get-env-paths';
|
|
20
|
+
import '@stryke/types/package-json';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.js';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { L as LogFn } from '../
|
|
2
|
-
import '@
|
|
3
|
-
import '@
|
|
4
|
-
import '
|
|
5
|
-
import 'jiti';
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
1
|
+
import { L as LogFn } from '../config-Ro14HmyO.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
9
5
|
import '@stryke/types/base';
|
|
10
6
|
import '@stryke/types/configuration';
|
|
11
7
|
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
12
9
|
import 'vite';
|
|
13
10
|
import '@farmfe/core';
|
|
14
11
|
import '@rspack/core';
|
|
@@ -18,14 +15,17 @@ import 'esbuild';
|
|
|
18
15
|
import 'rolldown';
|
|
19
16
|
import 'rollup';
|
|
20
17
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.cjs';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { L as LogFn } from '../
|
|
2
|
-
import '@
|
|
3
|
-
import '@
|
|
4
|
-
import '
|
|
5
|
-
import 'jiti';
|
|
6
|
-
import 'oxc-parser';
|
|
7
|
-
import 'semver';
|
|
8
|
-
import 'unplugin';
|
|
1
|
+
import { L as LogFn } from '../config-DnifzkPt.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
9
5
|
import '@stryke/types/base';
|
|
10
6
|
import '@stryke/types/configuration';
|
|
11
7
|
import '@stryke/types/file';
|
|
8
|
+
import 'c12';
|
|
12
9
|
import 'vite';
|
|
13
10
|
import '@farmfe/core';
|
|
14
11
|
import '@rspack/core';
|
|
@@ -18,14 +15,17 @@ import 'esbuild';
|
|
|
18
15
|
import 'rolldown';
|
|
19
16
|
import 'rollup';
|
|
20
17
|
import 'webpack';
|
|
21
|
-
import '@
|
|
22
|
-
import '@
|
|
23
|
-
import '
|
|
24
|
-
import '
|
|
18
|
+
import '@stryke/env/get-env-paths';
|
|
19
|
+
import '@stryke/types/package-json';
|
|
20
|
+
import 'jest-worker';
|
|
21
|
+
import 'jiti';
|
|
22
|
+
import 'oxc-parser';
|
|
23
|
+
import 'semver';
|
|
24
|
+
import 'unplugin';
|
|
25
|
+
import '@stryke/types/array';
|
|
25
26
|
import '../tsconfig-Bz-CiFqD.js';
|
|
26
27
|
import '@stryke/types/tsconfig';
|
|
27
28
|
import 'typescript';
|
|
28
|
-
import '@stryke/types/array';
|
|
29
29
|
import '@stryke/json/types';
|
|
30
30
|
import 'memfs';
|
|
31
31
|
import 'node:fs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The \"any framework\" framework that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"repository": {
|
|
@@ -530,5 +530,5 @@
|
|
|
530
530
|
"typescript": "^5.9.3"
|
|
531
531
|
},
|
|
532
532
|
"publishConfig": { "access": "public" },
|
|
533
|
-
"gitHead": "
|
|
533
|
+
"gitHead": "0a52d44907f8131de4cb120b2e17a98905349f24"
|
|
534
534
|
}
|
package/dist/lib/bundle.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk2625RJNJ_cjs = require('./chunk-2625RJNJ.cjs');
|
|
4
|
-
require('./chunk-4XUVP2LL.cjs');
|
|
5
|
-
require('./chunk-GJNFAFKR.cjs');
|
|
6
|
-
require('./chunk-BEKLDCTV.cjs');
|
|
7
|
-
require('./chunk-PK6SKIKE.cjs');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Object.defineProperty(exports, "bundle", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function () { return chunk2625RJNJ_cjs.bundle; }
|
|
14
|
-
});
|
|
15
|
-
//# sourceMappingURL=bundle.cjs.map
|
|
16
|
-
//# sourceMappingURL=bundle.cjs.map
|
package/dist/lib/bundle.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/bundle.ts"],"names":["bundle","context","file","overrides","path","resolvePath","fs","existsSync","Error","result","build","extractESBuildConfig","entry","write","sourcemap","splitting","treeShaking","errors","length","map","error","text","join","warnings","log","LogLevelLabel","WARN","warning","outputFiles","filter","Boolean"],"mappings":";;;;;;;;AAiCA,eAAsBA,MAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,MAAMC,IAAAA,GAAO,MAAMC,6BAAAA,CAAYJ,OAAAA,EAASC,IAAAA,CAAAA;AACxC,EAAA,IAAI,CAACE,IAAAA,IAAQ,CAACH,QAAQK,EAAAA,CAAGC,UAAAA,CAAWH,IAAAA,CAAAA,EAAO;AACzC,IAAA,MAAM,IAAII,KAAAA,CACR,CAAA,mBAAA,EAAsBN,IAAAA,CAAAA,uCAAAA,CAA6C,CAAA;AAEvE,EAAA;AAEA,EAAA,MAAMO,MAAAA,GAAS,MAAMC,aAAAA,CAAM;AACzB,IAAA,GAAGC,uCAAqBV,OAAAA,CAAAA;IACxBW,KAAAA,EAAO;AAACR,MAAAA;;IACRS,KAAAA,EAAO,KAAA;IACPC,SAAAA,EAAW,KAAA;IACXC,SAAAA,EAAW,KAAA;IACXC,WAAAA,EAAa,KAAA;IACbhB,MAAAA,EAAQ,IAAA;IACR,GAAGG;GACL,CAAA;AACA,EAAA,IAAIM,MAAAA,CAAOQ,MAAAA,CAAOC,MAAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,MAAM,IAAIV,KAAAA,CACR,CAAA,oBAAA,EAAuBN,IAAAA,CAAAA,EAAAA,EAASO,OAAOQ,MAAAA,CACpCE,GAAAA,CAAIC,CAAAA,KAAAA,KAASA,MAAMC,IAAI,CAAA,CACvBC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAIb,MAAAA,CAAOc,QAAAA,CAASL,MAAAA,GAAS,CAAA,EAAG;AAC9BjB,IAAAA,OAAAA,CAAQuB,IACNC,mBAAAA,CAAcC,IAAAA,EACd,CAAA,2BAAA,EAA8BxB,IAAAA,KAASO,MAAAA,CAAOc,QAAAA,CAC3CJ,GAAAA,CAAIQ,CAAAA,YAAWA,OAAAA,CAAQN,IAAI,EAC3BC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAI,CAACb,OAAOmB,WAAAA,IAAenB,MAAAA,CAAOmB,YAAYC,MAAAA,CAAOC,OAAAA,CAAAA,CAASZ,MAAAA,KAAW,CAAA,EAAG;AAC1E,IAAA,MAAM,IAAIV,KAAAA,CACR,CAAA,8BAAA,EACEN,IAAAA,CAAAA,+CAAAA,CAC+C,CAAA;AAErD,EAAA;AAEA,EAAA,OAAOO,MAAAA,CAAOmB,WAAAA,CAAYC,MAAAA,CAAOC,OAAAA,EAAS,CAAA,CAAA;AAC5C;AA9CsB9B,wBAAAA,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA","file":"chunk-2625RJNJ.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { build, BuildOptions, OutputFile } from \"esbuild\";\nimport { ESBuildResolvedBuildConfig } from \"powerlines/types/build\";\nimport { Context } from \"../types/context\";\nimport { extractESBuildConfig } from \"./build/esbuild\";\nimport { resolvePath } from \"./utilities/resolve-path\";\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle(\n context: Context,\n file: string,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<OutputFile> {\n const path = await resolvePath(context, file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build({\n ...extractESBuildConfig(context),\n entry: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: false,\n bundle: true,\n ...overrides\n } as BuildOptions);\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to transpile ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.log(\n LogLevelLabel.WARN,\n `Warnings while transpiling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/lib/bundle.ts"],"names":["bundle","context","file","overrides","path","resolvePath","fs","existsSync","Error","result","build","extractESBuildConfig","entry","write","sourcemap","splitting","treeShaking","errors","length","map","error","text","join","warnings","log","LogLevelLabel","WARN","warning","outputFiles","filter","Boolean"],"mappings":";;;;;;AAiCA,eAAsBA,MAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,MAAMC,IAAAA,GAAO,MAAMC,WAAAA,CAAYJ,OAAAA,EAASC,IAAAA,CAAAA;AACxC,EAAA,IAAI,CAACE,IAAAA,IAAQ,CAACH,QAAQK,EAAAA,CAAGC,UAAAA,CAAWH,IAAAA,CAAAA,EAAO;AACzC,IAAA,MAAM,IAAII,KAAAA,CACR,CAAA,mBAAA,EAAsBN,IAAAA,CAAAA,uCAAAA,CAA6C,CAAA;AAEvE,EAAA;AAEA,EAAA,MAAMO,MAAAA,GAAS,MAAMC,KAAAA,CAAM;AACzB,IAAA,GAAGC,qBAAqBV,OAAAA,CAAAA;IACxBW,KAAAA,EAAO;AAACR,MAAAA;;IACRS,KAAAA,EAAO,KAAA;IACPC,SAAAA,EAAW,KAAA;IACXC,SAAAA,EAAW,KAAA;IACXC,WAAAA,EAAa,KAAA;IACbhB,MAAAA,EAAQ,IAAA;IACR,GAAGG;GACL,CAAA;AACA,EAAA,IAAIM,MAAAA,CAAOQ,MAAAA,CAAOC,MAAAA,GAAS,CAAA,EAAG;AAC5B,IAAA,MAAM,IAAIV,KAAAA,CACR,CAAA,oBAAA,EAAuBN,IAAAA,CAAAA,EAAAA,EAASO,OAAOQ,MAAAA,CACpCE,GAAAA,CAAIC,CAAAA,KAAAA,KAASA,MAAMC,IAAI,CAAA,CACvBC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAIb,MAAAA,CAAOc,QAAAA,CAASL,MAAAA,GAAS,CAAA,EAAG;AAC9BjB,IAAAA,OAAAA,CAAQuB,IACNC,aAAAA,CAAcC,IAAAA,EACd,CAAA,2BAAA,EAA8BxB,IAAAA,KAASO,MAAAA,CAAOc,QAAAA,CAC3CJ,GAAAA,CAAIQ,CAAAA,YAAWA,OAAAA,CAAQN,IAAI,EAC3BC,IAAAA,CAAK,IAAA,CAAA,CAAA,CAAO,CAAA;AAEnB,EAAA;AACA,EAAA,IAAI,CAACb,OAAOmB,WAAAA,IAAenB,MAAAA,CAAOmB,YAAYC,MAAAA,CAAOC,OAAAA,CAAAA,CAASZ,MAAAA,KAAW,CAAA,EAAG;AAC1E,IAAA,MAAM,IAAIV,KAAAA,CACR,CAAA,8BAAA,EACEN,IAAAA,CAAAA,+CAAAA,CAC+C,CAAA;AAErD,EAAA;AAEA,EAAA,OAAOO,MAAAA,CAAOmB,WAAAA,CAAYC,MAAAA,CAAOC,OAAAA,EAAS,CAAA,CAAA;AAC5C;AA9CsB9B,MAAAA,CAAAA,MAAAA,EAAAA,QAAAA,CAAAA","file":"chunk-GTQZYDA7.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { build, BuildOptions, OutputFile } from \"esbuild\";\nimport { ESBuildResolvedBuildConfig } from \"powerlines/types/build\";\nimport { Context } from \"../types/context\";\nimport { extractESBuildConfig } from \"./build/esbuild\";\nimport { resolvePath } from \"./utilities/resolve-path\";\n\n/**\n * Bundle a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param file - The file path to bundle.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the bundled module.\n */\nexport async function bundle(\n context: Context,\n file: string,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<OutputFile> {\n const path = await resolvePath(context, file);\n if (!path || !context.fs.existsSync(path)) {\n throw new Error(\n `Module not found: \"${file}\". Please check the path and try again.`\n );\n }\n\n const result = await build({\n ...extractESBuildConfig(context),\n entry: [path],\n write: false,\n sourcemap: false,\n splitting: false,\n treeShaking: false,\n bundle: true,\n ...overrides\n } as BuildOptions);\n if (result.errors.length > 0) {\n throw new Error(\n `Failed to transpile ${file}: ${result.errors\n .map(error => error.text)\n .join(\", \")}`\n );\n }\n if (result.warnings.length > 0) {\n context.log(\n LogLevelLabel.WARN,\n `Warnings while transpiling ${file}: ${result.warnings\n .map(warning => warning.text)\n .join(\", \")}`\n );\n }\n if (!result.outputFiles || result.outputFiles.filter(Boolean).length === 0) {\n throw new Error(\n `No output files generated for ${\n file\n }. Please check the configuration and try again.`\n );\n }\n\n return result.outputFiles.filter(Boolean)[0]!;\n}\n"]}
|
|
File without changes
|
|
File without changes
|