@powerlines/plugin-deepkit 0.11.272 → 0.11.274
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 +3 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -30,7 +30,6 @@ require('./types/index.cjs');
|
|
|
30
30
|
let _powerlines_deepkit_transformer = require("@powerlines/deepkit/transformer");
|
|
31
31
|
let _powerlines_plugin_tsc = require("@powerlines/plugin-tsc");
|
|
32
32
|
_powerlines_plugin_tsc = __toESM(_powerlines_plugin_tsc);
|
|
33
|
-
let _stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
34
33
|
|
|
35
34
|
//#region src/index.ts
|
|
36
35
|
/**
|
|
@@ -47,6 +46,8 @@ const plugin = (options = {}) => {
|
|
|
47
46
|
deepkit: options ?? {},
|
|
48
47
|
resolve: { external: [
|
|
49
48
|
"@powerlines/deepkit/vendor/type-compiler",
|
|
49
|
+
"@powerlines/deepkit/vendor/type-compiler/compiler",
|
|
50
|
+
"@powerlines/deepkit/vendor/type-compiler/config",
|
|
50
51
|
"@powerlines/deepkit/vendor/type-spec",
|
|
51
52
|
"@powerlines/deepkit/vendor/type",
|
|
52
53
|
"@powerlines/deepkit/vendor/core"
|
|
@@ -57,12 +58,7 @@ const plugin = (options = {}) => {
|
|
|
57
58
|
order: "post",
|
|
58
59
|
async handler() {
|
|
59
60
|
const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
|
|
60
|
-
const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "
|
|
61
|
-
if (!this.tsconfig.tsconfigJson.reflection || !this.tsconfig.tsconfigJson.reflectionLevel) {
|
|
62
|
-
this.tsconfig.tsconfigJson.reflection ??= reflection;
|
|
63
|
-
this.tsconfig.tsconfigJson.reflectionLevel ??= reflectionLevel;
|
|
64
|
-
await this.fs.write(this.tsconfig.tsconfigFilePath, _stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
65
|
-
}
|
|
61
|
+
const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "normal";
|
|
66
62
|
this.config.tsc ??= {};
|
|
67
63
|
this.config.tsc.compilerOptions = {
|
|
68
64
|
...this.config.tsc.compilerOptions ?? {},
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA6BY,MAAA;IACR,OAAA,GAAU,oBAAA;EAAA;AAAA;;;;;;;cAUD,MAAA,oBACM,oBAAA,GAAuB,oBAAA,EAExC,OAAA,GAAS,oBAAA,KACR,MAAA,CAAO,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./types/index.mjs";
|
|
2
2
|
import { createDeclarationTransformer, createTransformer } from "@powerlines/deepkit/transformer";
|
|
3
3
|
import tsc from "@powerlines/plugin-tsc";
|
|
4
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
5
4
|
|
|
6
5
|
//#region src/index.ts
|
|
7
6
|
/**
|
|
@@ -18,6 +17,8 @@ const plugin = (options = {}) => {
|
|
|
18
17
|
deepkit: options ?? {},
|
|
19
18
|
resolve: { external: [
|
|
20
19
|
"@powerlines/deepkit/vendor/type-compiler",
|
|
20
|
+
"@powerlines/deepkit/vendor/type-compiler/compiler",
|
|
21
|
+
"@powerlines/deepkit/vendor/type-compiler/config",
|
|
21
22
|
"@powerlines/deepkit/vendor/type-spec",
|
|
22
23
|
"@powerlines/deepkit/vendor/type",
|
|
23
24
|
"@powerlines/deepkit/vendor/core"
|
|
@@ -28,12 +29,7 @@ const plugin = (options = {}) => {
|
|
|
28
29
|
order: "post",
|
|
29
30
|
async handler() {
|
|
30
31
|
const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
|
|
31
|
-
const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "
|
|
32
|
-
if (!this.tsconfig.tsconfigJson.reflection || !this.tsconfig.tsconfigJson.reflectionLevel) {
|
|
33
|
-
this.tsconfig.tsconfigJson.reflection ??= reflection;
|
|
34
|
-
this.tsconfig.tsconfigJson.reflectionLevel ??= reflectionLevel;
|
|
35
|
-
await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
|
|
36
|
-
}
|
|
32
|
+
const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "normal";
|
|
37
33
|
this.config.tsc ??= {};
|
|
38
34
|
this.config.tsc.compilerOptions = {
|
|
39
35
|
...this.config.tsc.compilerOptions ?? {},
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"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 {\n createDeclarationTransformer,\n createTransformer\n} from \"@powerlines/deepkit/transformer\";\nimport tsc from \"@powerlines/plugin-tsc\";\nimport {
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"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 {\n createDeclarationTransformer,\n createTransformer\n} from \"@powerlines/deepkit/transformer\";\nimport tsc from \"@powerlines/plugin-tsc\";\nimport { Plugin } from \"powerlines\";\nimport { DeepkitPluginContext, DeepkitPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n deepkit?: DeepkitPluginOptions;\n }\n}\n\n/**\n * Deepkit plugin for Powerlines.\n *\n * @param options - The Deepkit plugin user configuration options.\n * @returns A Powerlines plugin that integrates Deepkit transformations.\n */\nexport const plugin = <\n TContext extends DeepkitPluginContext = DeepkitPluginContext\n>(\n options: DeepkitPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n tsc(options),\n {\n name: \"deepkit\",\n config() {\n return {\n deepkit: options ?? {},\n resolve: {\n external: [\n \"@powerlines/deepkit/vendor/type-compiler\",\n \"@powerlines/deepkit/vendor/type-compiler/compiler\",\n \"@powerlines/deepkit/vendor/type-compiler/config\",\n \"@powerlines/deepkit/vendor/type-spec\",\n \"@powerlines/deepkit/vendor/type\",\n \"@powerlines/deepkit/vendor/core\"\n ]\n }\n };\n },\n configResolved: {\n order: \"post\",\n async handler() {\n const reflection =\n this.config.deepkit.reflection ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflection ||\n this.tsconfig.tsconfigJson.reflection ||\n \"default\";\n const reflectionLevel =\n this.config.deepkit.reflectionLevel ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ||\n this.tsconfig.tsconfigJson.reflectionLevel ||\n \"normal\";\n\n this.config.tsc ??= {} as TContext[\"config\"][\"tsc\"];\n this.config.tsc.compilerOptions = {\n ...(this.config.tsc.compilerOptions ?? {}),\n exclude: this.config.deepkit.exclude ?? [],\n reflection,\n reflectionLevel,\n configFilePath: this.tsconfig.tsconfigFilePath\n };\n\n this.config.tsc.transformers ??= {\n before: [],\n after: []\n };\n\n this.config.tsc.transformers.before!.push(\n createTransformer(this, this.config.deepkit)\n );\n this.config.tsc.transformers.after!.push(\n createDeclarationTransformer(this, this.config.deepkit)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;AAwCA,MAAa,UAGX,UAAgC,EAAE,KACX;AACvB,QAAO,CACL,IAAI,QAAQ,EACZ;EACE,MAAM;EACN,SAAS;AACP,UAAO;IACL,SAAS,WAAW,EAAE;IACtB,SAAS,EACP,UAAU;KACR;KACA;KACA;KACA;KACA;KACA;KACD,EACF;IACF;;EAEH,gBAAgB;GACd,OAAO;GACP,MAAM,UAAU;IACd,MAAM,aACJ,KAAK,OAAO,QAAQ,cACpB,KAAK,SAAS,aAAa,iBAAiB,cAC5C,KAAK,SAAS,aAAa,cAC3B;IACF,MAAM,kBACJ,KAAK,OAAO,QAAQ,mBACpB,KAAK,SAAS,aAAa,iBAAiB,mBAC5C,KAAK,SAAS,aAAa,mBAC3B;AAEF,SAAK,OAAO,QAAQ,EAAE;AACtB,SAAK,OAAO,IAAI,kBAAkB;KAChC,GAAI,KAAK,OAAO,IAAI,mBAAmB,EAAE;KACzC,SAAS,KAAK,OAAO,QAAQ,WAAW,EAAE;KAC1C;KACA;KACA,gBAAgB,KAAK,SAAS;KAC/B;AAED,SAAK,OAAO,IAAI,iBAAiB;KAC/B,QAAQ,EAAE;KACV,OAAO,EAAE;KACV;AAED,SAAK,OAAO,IAAI,aAAa,OAAQ,KACnC,kBAAkB,MAAM,KAAK,OAAO,QAAQ,CAC7C;AACD,SAAK,OAAO,IAAI,aAAa,MAAO,KAClC,6BAA6B,MAAM,KAAK,OAAO,QAAQ,CACxD;;GAEJ;EACF,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-deepkit",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.274",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
"files": ["dist/**/*"],
|
|
91
91
|
"keywords": ["deepkit", "powerlines", "storm-software", "powerlines-plugin"],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@powerlines/deepkit": "^0.7.
|
|
94
|
-
"@powerlines/plugin-tsc": "^0.2.
|
|
93
|
+
"@powerlines/deepkit": "^0.7.6",
|
|
94
|
+
"@powerlines/plugin-tsc": "^0.2.403",
|
|
95
95
|
"@stryke/json": "^0.14.12",
|
|
96
|
-
"powerlines": "^0.42.
|
|
96
|
+
"powerlines": "^0.42.36",
|
|
97
97
|
"typescript": "^5.9.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
100
|
+
"@powerlines/plugin-plugin": "^0.12.346",
|
|
101
101
|
"@types/node": "^25.6.0"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": { "access": "public" },
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "5c1cbac3bcb7d5cbb3e2f09accb0f5edc617f7a1"
|
|
105
105
|
}
|