@powerlines/plugin-deepkit 0.10.135 → 0.10.137
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/index-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +45 -7
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +15 -4
- package/dist/plugin-BuwTR6h1.d.cts +1803 -0
- package/dist/plugin-CW8k-fOr.d.mts +1804 -0
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DNsqegEV.mjs +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -27
- package/dist/types/plugin.d.mts +1 -27
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-CpP_DWx6.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +3 -3
- package/dist/_virtual/rolldown_runtime.cjs +0 -37
- package/dist/_virtual/rolldown_runtime.mjs +0 -29
- package/dist/deepkit/src/transformer.cjs +0 -52
- package/dist/deepkit/src/transformer.mjs +0 -49
- package/dist/deepkit/src/vendor/type-compiler/config.d.cts +0 -7
- package/dist/deepkit/src/vendor/type-compiler/config.d.mts +0 -7
- package/dist/deepkit/src/vendor/type-compiler/index.cjs +0 -38
- package/dist/deepkit/src/vendor/type-compiler/index.mjs +0 -19
- package/dist/plugin-tsc/src/helpers/index.cjs +0 -1
- package/dist/plugin-tsc/src/helpers/index.mjs +0 -3
- package/dist/plugin-tsc/src/helpers/type-check.cjs +0 -22
- package/dist/plugin-tsc/src/helpers/type-check.mjs +0 -21
- package/dist/plugin-tsc/src/index.cjs +0 -50
- package/dist/plugin-tsc/src/index.mjs +0 -47
- package/dist/plugin-tsc/src/types/plugin.d.cts +0 -33
- package/dist/plugin-tsc/src/types/plugin.d.mts +0 -33
- package/dist/powerlines/src/types/build.d.cts +0 -145
- package/dist/powerlines/src/types/build.d.mts +0 -145
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -369
- package/dist/powerlines/src/types/config.d.mts +0 -369
- package/dist/powerlines/src/types/context.d.cts +0 -403
- package/dist/powerlines/src/types/context.d.mts +0 -405
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/plugin.d.cts +0 -231
- package/dist/powerlines/src/types/plugin.d.mts +0 -231
- package/dist/powerlines/src/types/resolved.d.cts +0 -81
- package/dist/powerlines/src/types/resolved.d.mts +0 -81
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,36 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
+
key = keys[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
24
|
+
value: mod,
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) : target, mod));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
require('./plugin-DHXHjv16.cjs');
|
|
30
|
+
require('./types-DHkg7xmX.cjs');
|
|
31
|
+
let __powerlines_deepkit_transformer = require("@powerlines/deepkit/transformer");
|
|
32
|
+
let __powerlines_plugin_tsc = require("@powerlines/plugin-tsc");
|
|
33
|
+
__powerlines_plugin_tsc = __toESM(__powerlines_plugin_tsc);
|
|
5
34
|
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
6
35
|
|
|
7
36
|
//#region src/index.ts
|
|
@@ -12,12 +41,21 @@ let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
|
12
41
|
* @returns A Powerlines plugin that integrates Deepkit transformations.
|
|
13
42
|
*/
|
|
14
43
|
const plugin = (options = {}) => {
|
|
15
|
-
return [
|
|
44
|
+
return [(0, __powerlines_plugin_tsc.default)(options), {
|
|
16
45
|
name: "deepkit",
|
|
17
46
|
config() {
|
|
18
47
|
return {
|
|
19
48
|
transform: { deepkit: options ?? {} },
|
|
20
|
-
build: {
|
|
49
|
+
build: {
|
|
50
|
+
unbundle: false,
|
|
51
|
+
skipNodeModulesBundle: false,
|
|
52
|
+
external: [
|
|
53
|
+
"@powerlines/deepkit/vendor/type-compiler",
|
|
54
|
+
"@powerlines/deepkit/vendor/type-spec",
|
|
55
|
+
"@powerlines/deepkit/vendor/type",
|
|
56
|
+
"@powerlines/deepkit/vendor/core"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
21
59
|
};
|
|
22
60
|
},
|
|
23
61
|
configResolved: {
|
|
@@ -41,8 +79,8 @@ const plugin = (options = {}) => {
|
|
|
41
79
|
before: [],
|
|
42
80
|
after: []
|
|
43
81
|
};
|
|
44
|
-
this.config.transform.tsc.transformers.before.push(
|
|
45
|
-
this.config.transform.tsc.transformers.after.push(
|
|
82
|
+
this.config.transform.tsc.transformers.before.push((0, __powerlines_deepkit_transformer.createTransformer)(this, this.config.transform.deepkit));
|
|
83
|
+
this.config.transform.tsc.transformers.after.push((0, __powerlines_deepkit_transformer.createDeclarationTransformer)(this, this.config.transform.deepkit));
|
|
46
84
|
}
|
|
47
85
|
}
|
|
48
86
|
}];
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import
|
|
1
|
+
import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, l as Plugin, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-BuwTR6h1.cjs";
|
|
2
|
+
import "./index-CEgs-Dz2.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./types/index.mjs";
|
|
1
|
+
import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, l as Plugin, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-CW8k-fOr.mjs";
|
|
2
|
+
import "./index-BgAdqTbb.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import "./plugin-DNsqegEV.mjs";
|
|
2
|
+
import "./types-CpP_DWx6.mjs";
|
|
3
|
+
import { createDeclarationTransformer, createTransformer } from "@powerlines/deepkit/transformer";
|
|
4
|
+
import tsc from "@powerlines/plugin-tsc";
|
|
3
5
|
import { StormJSON } from "@stryke/json/storm-json";
|
|
4
6
|
|
|
5
7
|
//#region src/index.ts
|
|
@@ -10,12 +12,21 @@ import { StormJSON } from "@stryke/json/storm-json";
|
|
|
10
12
|
* @returns A Powerlines plugin that integrates Deepkit transformations.
|
|
11
13
|
*/
|
|
12
14
|
const plugin = (options = {}) => {
|
|
13
|
-
return [
|
|
15
|
+
return [tsc(options), {
|
|
14
16
|
name: "deepkit",
|
|
15
17
|
config() {
|
|
16
18
|
return {
|
|
17
19
|
transform: { deepkit: options ?? {} },
|
|
18
|
-
build: {
|
|
20
|
+
build: {
|
|
21
|
+
unbundle: false,
|
|
22
|
+
skipNodeModulesBundle: false,
|
|
23
|
+
external: [
|
|
24
|
+
"@powerlines/deepkit/vendor/type-compiler",
|
|
25
|
+
"@powerlines/deepkit/vendor/type-spec",
|
|
26
|
+
"@powerlines/deepkit/vendor/type",
|
|
27
|
+
"@powerlines/deepkit/vendor/core"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
19
30
|
};
|
|
20
31
|
},
|
|
21
32
|
configResolved: {
|