@powerlines/plugin-deepkit 0.11.503 → 0.11.505
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.cjs +4 -16
- package/dist/index.mjs +4 -16
- package/dist/types/plugin.d.cts +2 -3
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts +2 -3
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
require('./types/index.cjs');
|
|
30
|
-
let
|
|
30
|
+
let _power_plant_schema_deepkit = require("@power-plant/schema/deepkit");
|
|
31
31
|
let _powerlines_plugin_tsc = require("@powerlines/plugin-tsc");
|
|
32
32
|
_powerlines_plugin_tsc = __toESM(_powerlines_plugin_tsc, 1);
|
|
33
33
|
let _stryke_path_append = require("@stryke/path/append");
|
|
@@ -48,35 +48,23 @@ const plugin = (options = {}) => {
|
|
|
48
48
|
config() {
|
|
49
49
|
return {
|
|
50
50
|
deepkit: options ?? {},
|
|
51
|
-
resolve: { external: [
|
|
52
|
-
"@powerlines/deepkit/vendor/type-compiler",
|
|
53
|
-
"@powerlines/deepkit/vendor/type-compiler/compiler",
|
|
54
|
-
"@powerlines/deepkit/vendor/type-compiler/config",
|
|
55
|
-
"@powerlines/deepkit/vendor/type-spec",
|
|
56
|
-
"@powerlines/deepkit/vendor/type",
|
|
57
|
-
"@powerlines/deepkit/vendor/core"
|
|
58
|
-
] }
|
|
51
|
+
resolve: { external: ["@power-plant/schema/deepkit"] }
|
|
59
52
|
};
|
|
60
53
|
},
|
|
61
54
|
configResolved: {
|
|
62
55
|
order: "post",
|
|
63
56
|
async handler() {
|
|
64
|
-
const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
|
|
65
|
-
const level = this.config.deepkit.level || this.tsconfig.tsconfigJson.compilerOptions?.level || this.tsconfig.tsconfigJson.level || "default";
|
|
66
57
|
this.config.tsc ??= {};
|
|
67
58
|
this.config.tsc.compilerOptions = {
|
|
68
59
|
...this.config.tsc.compilerOptions ?? {},
|
|
69
|
-
exclude: this.config.deepkit.exclude ?? [],
|
|
70
|
-
reflection,
|
|
71
|
-
level,
|
|
72
60
|
configFilePath: (0, _stryke_path_append.appendPath)(this.tsconfig.tsconfigFilePath, this.config.cwd)
|
|
73
61
|
};
|
|
74
62
|
this.config.tsc.transformers ??= {
|
|
75
63
|
before: [],
|
|
76
64
|
after: []
|
|
77
65
|
};
|
|
78
|
-
this.config.tsc.transformers.before.push(
|
|
79
|
-
this.config.tsc.transformers.after.push(
|
|
66
|
+
this.config.tsc.transformers.before.push(_power_plant_schema_deepkit.transformer);
|
|
67
|
+
this.config.tsc.transformers.after.push(_power_plant_schema_deepkit.declarationTransformer);
|
|
80
68
|
}
|
|
81
69
|
}
|
|
82
70
|
}];
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./types/index.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { declarationTransformer, transformer } from "@power-plant/schema/deepkit";
|
|
3
3
|
import tsc from "@powerlines/plugin-tsc";
|
|
4
4
|
import { appendPath } from "@stryke/path/append";
|
|
5
5
|
|
|
@@ -19,35 +19,23 @@ const plugin = (options = {}) => {
|
|
|
19
19
|
config() {
|
|
20
20
|
return {
|
|
21
21
|
deepkit: options ?? {},
|
|
22
|
-
resolve: { external: [
|
|
23
|
-
"@powerlines/deepkit/vendor/type-compiler",
|
|
24
|
-
"@powerlines/deepkit/vendor/type-compiler/compiler",
|
|
25
|
-
"@powerlines/deepkit/vendor/type-compiler/config",
|
|
26
|
-
"@powerlines/deepkit/vendor/type-spec",
|
|
27
|
-
"@powerlines/deepkit/vendor/type",
|
|
28
|
-
"@powerlines/deepkit/vendor/core"
|
|
29
|
-
] }
|
|
22
|
+
resolve: { external: ["@power-plant/schema/deepkit"] }
|
|
30
23
|
};
|
|
31
24
|
},
|
|
32
25
|
configResolved: {
|
|
33
26
|
order: "post",
|
|
34
27
|
async handler() {
|
|
35
|
-
const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
|
|
36
|
-
const level = this.config.deepkit.level || this.tsconfig.tsconfigJson.compilerOptions?.level || this.tsconfig.tsconfigJson.level || "default";
|
|
37
28
|
this.config.tsc ??= {};
|
|
38
29
|
this.config.tsc.compilerOptions = {
|
|
39
30
|
...this.config.tsc.compilerOptions ?? {},
|
|
40
|
-
exclude: this.config.deepkit.exclude ?? [],
|
|
41
|
-
reflection,
|
|
42
|
-
level,
|
|
43
31
|
configFilePath: appendPath(this.tsconfig.tsconfigFilePath, this.config.cwd)
|
|
44
32
|
};
|
|
45
33
|
this.config.tsc.transformers ??= {
|
|
46
34
|
before: [],
|
|
47
35
|
after: []
|
|
48
36
|
};
|
|
49
|
-
this.config.tsc.transformers.before.push(
|
|
50
|
-
this.config.tsc.transformers.after.push(
|
|
37
|
+
this.config.tsc.transformers.before.push(transformer);
|
|
38
|
+
this.config.tsc.transformers.after.push(declarationTransformer);
|
|
51
39
|
}
|
|
52
40
|
}
|
|
53
41
|
}];
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc/types/plugin";
|
|
1
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc";
|
|
3
2
|
//#region src/types/plugin.d.ts
|
|
4
|
-
type DeepkitPluginOptions =
|
|
3
|
+
type DeepkitPluginOptions = TypeScriptCompilerPluginOptions;
|
|
5
4
|
interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
|
|
6
5
|
/**
|
|
7
6
|
* Deepkit transformation options
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;KAyBY,uBAAuB;UAElB,gCAAgC;;;;EAI/C,SAAS;;UAGM,oCAAoC;;;;EAInD,SAAS,SAAS;;KAGR,qBACV,wBAAwB,8BACtB,+BACA,gCAAgC"}
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc/types/plugin";
|
|
1
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc";
|
|
3
2
|
//#region src/types/plugin.d.ts
|
|
4
|
-
type DeepkitPluginOptions =
|
|
3
|
+
type DeepkitPluginOptions = TypeScriptCompilerPluginOptions;
|
|
5
4
|
interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
|
|
6
5
|
/**
|
|
7
6
|
* Deepkit transformation options
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-deepkit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.505",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -90,17 +90,17 @@
|
|
|
90
90
|
"files": ["dist"],
|
|
91
91
|
"keywords": ["deepkit", "powerlines", "powerlines-plugin"],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@
|
|
94
|
-
"@powerlines/plugin-tsc": "^0.3.
|
|
93
|
+
"@power-plant/schema": "^0.0.41",
|
|
94
|
+
"@powerlines/plugin-tsc": "^0.3.159",
|
|
95
95
|
"@stryke/json": "^0.15.22",
|
|
96
96
|
"@stryke/path": "^0.29.25",
|
|
97
|
-
"powerlines": "^0.47.
|
|
97
|
+
"powerlines": "^0.47.162",
|
|
98
98
|
"typescript": "^6.0.3"
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
101
|
+
"@powerlines/plugin-plugin": "^0.12.574",
|
|
102
102
|
"@types/node": "^25.9.5"
|
|
103
103
|
},
|
|
104
104
|
"publishConfig": { "access": "public" },
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "9d7a99095d9907e5751917b9f00e98e9f3ffac53"
|
|
106
106
|
}
|