@powerlines/plugin-tsc 0.2.245 → 0.2.247

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.
Files changed (46) hide show
  1. package/dist/helpers/index.cjs +3 -2
  2. package/dist/helpers/index.d.cts +2 -1
  3. package/dist/helpers/index.d.mts +2 -1
  4. package/dist/helpers/index.mjs +2 -1
  5. package/dist/helpers/type-check.cjs +2 -21
  6. package/dist/helpers/type-check.d.cts +1 -11
  7. package/dist/helpers/type-check.d.mts +1 -11
  8. package/dist/helpers/type-check.mjs +1 -19
  9. package/dist/helpers-B15z10jN.mjs +1 -0
  10. package/dist/helpers-LF26RHol.cjs +0 -0
  11. package/dist/index-9iG2qHLe.d.mts +1 -0
  12. package/dist/index-D-CYNcT9.d.mts +1 -0
  13. package/dist/index-D4ELpJXS.d.cts +1 -0
  14. package/dist/index-DLoAMD9J.d.cts +1 -0
  15. package/dist/index.cjs +36 -7
  16. package/dist/index.d.cts +6 -5
  17. package/dist/index.d.cts.map +1 -0
  18. package/dist/index.d.mts +6 -5
  19. package/dist/index.d.mts.map +1 -0
  20. package/dist/index.mjs +6 -3
  21. package/dist/index.mjs.map +1 -0
  22. package/dist/plugin-D5AazRsR.d.mts +38 -0
  23. package/dist/plugin-D5AazRsR.d.mts.map +1 -0
  24. package/dist/plugin-ifZVa20V.mjs +1 -0
  25. package/dist/plugin-pBKbb5K9.cjs +0 -0
  26. package/dist/plugin-zU_twvQg.d.cts +38 -0
  27. package/dist/plugin-zU_twvQg.d.cts.map +1 -0
  28. package/dist/type-check-BM6tW_xw.cjs +27 -0
  29. package/dist/type-check-Bkbb5EkH.mjs +22 -0
  30. package/dist/type-check-Bkbb5EkH.mjs.map +1 -0
  31. package/dist/type-check-C4fVDK_t.d.mts +13 -0
  32. package/dist/type-check-C4fVDK_t.d.mts.map +1 -0
  33. package/dist/type-check-CVbJ33fg.d.cts +13 -0
  34. package/dist/type-check-CVbJ33fg.d.cts.map +1 -0
  35. package/dist/types/index.cjs +2 -0
  36. package/dist/types/index.d.cts +2 -1
  37. package/dist/types/index.d.mts +2 -1
  38. package/dist/types/index.mjs +3 -0
  39. package/dist/types/plugin.cjs +1 -0
  40. package/dist/types/plugin.d.cts +1 -36
  41. package/dist/types/plugin.d.mts +1 -36
  42. package/dist/types/plugin.mjs +2 -0
  43. package/dist/types-U3zd8PTP.mjs +1 -0
  44. package/dist/types-o3zWarRp.cjs +0 -0
  45. package/package.json +4 -4
  46. package/dist/_virtual/rolldown_runtime.cjs +0 -29
@@ -1,3 +1,4 @@
1
- const require_helpers_type_check = require('./type-check.cjs');
1
+ const require_type_check = require('../type-check-BM6tW_xw.cjs');
2
+ require('../helpers-LF26RHol.cjs');
2
3
 
3
- exports.typeCheck = require_helpers_type_check.typeCheck;
4
+ exports.typeCheck = require_type_check.typeCheck;
@@ -1,2 +1,3 @@
1
- import { typeCheck } from "./type-check.cjs";
1
+ import { t as typeCheck } from "../type-check-CVbJ33fg.cjs";
2
+ import "../index-DLoAMD9J.cjs";
2
3
  export { typeCheck };
@@ -1,2 +1,3 @@
1
- import { typeCheck } from "./type-check.mjs";
1
+ import { t as typeCheck } from "../type-check-C4fVDK_t.mjs";
2
+ import "../index-D-CYNcT9.mjs";
2
3
  export { typeCheck };
@@ -1,3 +1,4 @@
1
- import { typeCheck } from "./type-check.mjs";
1
+ import { t as typeCheck } from "../type-check-Bkbb5EkH.mjs";
2
+ import "../helpers-B15z10jN.mjs";
2
3
 
3
4
  export { typeCheck };
@@ -1,22 +1,3 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let typescript = require("typescript");
1
+ const require_type_check = require('../type-check-BM6tW_xw.cjs');
3
2
 
4
- //#region src/helpers/type-check.ts
5
- /**
6
- * Perform type checks on the provided sources using TypeScript's compiler API.
7
- *
8
- * @param context - The build context containing information about the current build.
9
- */
10
- async function typeCheck(context) {
11
- const result = context.program.emitToMemory();
12
- const diagnosticMessages = [];
13
- result.getDiagnostics().forEach((diagnostic) => {
14
- if (diagnostic.getSourceFile()?.getBaseName()) diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${(0, typescript.flattenDiagnosticMessageText)(diagnostic.getMessageText().toString(), "\n")}`);
15
- else diagnosticMessages.push((0, typescript.flattenDiagnosticMessageText)(diagnostic.getMessageText().toString(), "\n"));
16
- });
17
- const diagnosticMessage = diagnosticMessages.join("\n");
18
- if (diagnosticMessage) throw new Error(`TypeScript compilation failed: \n\n${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
19
- }
20
-
21
- //#endregion
22
- exports.typeCheck = typeCheck;
3
+ exports.typeCheck = require_type_check.typeCheck;
@@ -1,12 +1,2 @@
1
- import { Context } from "powerlines/types/context";
2
-
3
- //#region src/helpers/type-check.d.ts
4
-
5
- /**
6
- * Perform type checks on the provided sources using TypeScript's compiler API.
7
- *
8
- * @param context - The build context containing information about the current build.
9
- */
10
- declare function typeCheck(context: Context): Promise<void>;
11
- //#endregion
1
+ import { t as typeCheck } from "../type-check-CVbJ33fg.cjs";
12
2
  export { typeCheck };
@@ -1,12 +1,2 @@
1
- import { Context } from "powerlines/types/context";
2
-
3
- //#region src/helpers/type-check.d.ts
4
-
5
- /**
6
- * Perform type checks on the provided sources using TypeScript's compiler API.
7
- *
8
- * @param context - The build context containing information about the current build.
9
- */
10
- declare function typeCheck(context: Context): Promise<void>;
11
- //#endregion
1
+ import { t as typeCheck } from "../type-check-C4fVDK_t.mjs";
12
2
  export { typeCheck };
@@ -1,21 +1,3 @@
1
- import { flattenDiagnosticMessageText } from "typescript";
1
+ import { t as typeCheck } from "../type-check-Bkbb5EkH.mjs";
2
2
 
3
- //#region src/helpers/type-check.ts
4
- /**
5
- * Perform type checks on the provided sources using TypeScript's compiler API.
6
- *
7
- * @param context - The build context containing information about the current build.
8
- */
9
- async function typeCheck(context) {
10
- const result = context.program.emitToMemory();
11
- const diagnosticMessages = [];
12
- result.getDiagnostics().forEach((diagnostic) => {
13
- if (diagnostic.getSourceFile()?.getBaseName()) diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n")}`);
14
- else diagnosticMessages.push(flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n"));
15
- });
16
- const diagnosticMessage = diagnosticMessages.join("\n");
17
- if (diagnosticMessage) throw new Error(`TypeScript compilation failed: \n\n${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
18
- }
19
-
20
- //#endregion
21
3
  export { typeCheck };
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,12 +1,40 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
3
- const require_helpers_type_check = require('./helpers/type-check.cjs');
4
- require('./helpers/index.cjs');
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
+ const require_type_check = require('./type-check-BM6tW_xw.cjs');
30
+ require('./helpers-LF26RHol.cjs');
31
+ require('./plugin-pBKbb5K9.cjs');
32
+ require('./types-o3zWarRp.cjs');
5
33
  let __stryke_path_find = require("@stryke/path/find");
6
34
  let defu = require("defu");
7
- defu = require_rolldown_runtime.__toESM(defu);
35
+ defu = __toESM(defu);
8
36
  let typescript = require("typescript");
9
- typescript = require_rolldown_runtime.__toESM(typescript);
37
+ typescript = __toESM(typescript);
10
38
 
11
39
  //#region src/index.ts
12
40
  /**
@@ -23,7 +51,7 @@ const plugin = (options = {}) => {
23
51
  return { transform: { tsc: (0, defu.default)(options ?? {}, { typeCheck: false }) } };
24
52
  },
25
53
  async lint() {
26
- if (this.config.transform.tsc.typeCheck) await require_helpers_type_check.typeCheck(this);
54
+ if (this.config.transform.tsc.typeCheck) await require_type_check.typeCheck(this);
27
55
  },
28
56
  async transform(code, id) {
29
57
  if ((0, __stryke_path_find.findFileExtensionSafe)(id).toLowerCase() !== "ts" || id.endsWith(".d.ts")) return {
@@ -54,6 +82,7 @@ const plugin = (options = {}) => {
54
82
  var src_default = plugin;
55
83
 
56
84
  //#endregion
85
+ exports.__toESM = __toESM;
57
86
  exports.default = src_default;
58
87
  exports.plugin = plugin;
59
- exports.typeCheck = require_helpers_type_check.typeCheck;
88
+ exports.typeCheck = require_type_check.typeCheck;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { typeCheck } from "./helpers/type-check.cjs";
2
- import "./helpers/index.cjs";
3
- import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./types/plugin.cjs";
4
- import "./types/index.cjs";
1
+ import { t as typeCheck } from "./type-check-CVbJ33fg.cjs";
2
+ import "./index-DLoAMD9J.cjs";
3
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "./plugin-zU_twvQg.cjs";
4
+ import "./index-D4ELpJXS.cjs";
5
5
  import { Plugin } from "powerlines/types/plugin";
6
6
 
7
7
  //#region src/index.d.ts
@@ -14,4 +14,5 @@ import { Plugin } from "powerlines/types/plugin";
14
14
  */
15
15
  declare const plugin: <TContext extends TypeScriptCompilerPluginContext = TypeScriptCompilerPluginContext>(options?: TypeScriptCompilerPluginOptions) => Plugin<TContext>;
16
16
  //#endregion
17
- export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig, plugin as default, plugin, typeCheck };
17
+ export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig, plugin as default, plugin, typeCheck };
18
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAqCA;;;AAIW,cAJE,MAIF,EAAA,CAAA,iBAHQ,+BAGR,GAFP,+BAEO,CAAA,CAAA,OAAA,CAAA,EAAA,+BAAA,EAAA,GACR,MADQ,CACD,QADC,CAAA"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { typeCheck } from "./helpers/type-check.mjs";
2
- import "./helpers/index.mjs";
3
- import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./types/plugin.mjs";
4
- import "./types/index.mjs";
1
+ import { t as typeCheck } from "./type-check-C4fVDK_t.mjs";
2
+ import "./index-D-CYNcT9.mjs";
3
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "./plugin-D5AazRsR.mjs";
4
+ import "./index-9iG2qHLe.mjs";
5
5
  import { Plugin } from "powerlines/types/plugin";
6
6
 
7
7
  //#region src/index.d.ts
@@ -14,4 +14,5 @@ import { Plugin } from "powerlines/types/plugin";
14
14
  */
15
15
  declare const plugin: <TContext extends TypeScriptCompilerPluginContext = TypeScriptCompilerPluginContext>(options?: TypeScriptCompilerPluginOptions) => Plugin<TContext>;
16
16
  //#endregion
17
- export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig, plugin as default, plugin, typeCheck };
17
+ export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig, plugin as default, plugin, typeCheck };
18
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;AAqCA;;;AAIW,cAJE,MAIF,EAAA,CAAA,iBAHQ,+BAGR,GAFP,+BAEO,CAAA,CAAA,OAAA,CAAA,EAAA,+BAAA,EAAA,GACR,MADQ,CACD,QADC,CAAA"}
package/dist/index.mjs CHANGED
@@ -1,5 +1,7 @@
1
- import { typeCheck } from "./helpers/type-check.mjs";
2
- import "./helpers/index.mjs";
1
+ import { t as typeCheck } from "./type-check-Bkbb5EkH.mjs";
2
+ import "./helpers-B15z10jN.mjs";
3
+ import "./plugin-ifZVa20V.mjs";
4
+ import "./types-U3zd8PTP.mjs";
3
5
  import { findFileExtensionSafe } from "@stryke/path/find";
4
6
  import defu from "defu";
5
7
  import ts from "typescript";
@@ -50,4 +52,5 @@ const plugin = (options = {}) => {
50
52
  var src_default = plugin;
51
53
 
52
54
  //#endregion
53
- export { src_default as default, plugin, typeCheck };
55
+ export { src_default as default, plugin, typeCheck };
56
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +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 { findFileExtensionSafe } from \"@stryke/path/find\";\nimport defu from \"defu\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport ts from \"typescript\";\nimport { typeCheck } from \"./helpers/type-check\";\nimport {\n TypeScriptCompilerPluginContext,\n TypeScriptCompilerPluginOptions\n} from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\n/**\n * TypeScript Compiler plugin for Powerlines.\n *\n * @param options - The TypeScript Compiler plugin user configuration options.\n * @returns A Powerlines plugin that integrates TypeScript Compiler transformations.\n */\nexport const plugin = <\n TContext extends TypeScriptCompilerPluginContext =\n TypeScriptCompilerPluginContext\n>(\n options: TypeScriptCompilerPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"tsc\",\n config() {\n this.trace(\"Merging TypeScript Compiler plugin configuration\");\n\n return {\n transform: {\n tsc: defu(options ?? {}, {\n typeCheck: false\n })\n }\n };\n },\n async lint() {\n if (this.config.transform.tsc.typeCheck) {\n await typeCheck(this);\n }\n },\n async transform(code: string, id: string) {\n if (\n findFileExtensionSafe(id).toLowerCase() !== \"ts\" ||\n id.endsWith(\".d.ts\")\n ) {\n return { code, id };\n }\n\n const result = ts.transpileModule(code, {\n ...this.config.transform.tsc,\n compilerOptions: {\n ...this.tsconfig.options,\n ...this.config.transform.tsc.compilerOptions\n },\n fileName: id\n });\n if (\n result.diagnostics &&\n result.diagnostics.length > 0 &&\n result.diagnostics?.some(\n diagnostic => diagnostic.category === ts.DiagnosticCategory.Error\n )\n ) {\n throw new Error(\n `TypeScript Compiler - TypeScript transpilation errors in file: ${id}\\n${ts.formatDiagnostics(\n result.diagnostics,\n {\n getCanonicalFileName: fileName =>\n ts.sys.useCaseSensitiveFileNames\n ? fileName\n : fileName.toLowerCase(),\n getCurrentDirectory: () => ts.sys.getCurrentDirectory(),\n getNewLine: () => ts.sys.newLine\n }\n )}`\n );\n }\n\n if (!result.outputText) {\n throw new Error(\n `TypeScript Compiler - No output generated for file during TypeScript transpilation: ${id}`\n );\n }\n\n return { code: result.outputText, id };\n }\n } as Plugin<TContext>;\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;AAqCA,MAAa,UAIX,UAA2C,EAAE,KACxB;AACrB,QAAO;EACL,MAAM;EACN,SAAS;AACP,QAAK,MAAM,mDAAmD;AAE9D,UAAO,EACL,WAAW,EACT,KAAK,KAAK,WAAW,EAAE,EAAE,EACvB,WAAW,OACZ,CAAC,EACH,EACF;;EAEH,MAAM,OAAO;AACX,OAAI,KAAK,OAAO,UAAU,IAAI,UAC5B,OAAM,UAAU,KAAK;;EAGzB,MAAM,UAAU,MAAc,IAAY;AACxC,OACE,sBAAsB,GAAG,CAAC,aAAa,KAAK,QAC5C,GAAG,SAAS,QAAQ,CAEpB,QAAO;IAAE;IAAM;IAAI;GAGrB,MAAM,SAAS,GAAG,gBAAgB,MAAM;IACtC,GAAG,KAAK,OAAO,UAAU;IACzB,iBAAiB;KACf,GAAG,KAAK,SAAS;KACjB,GAAG,KAAK,OAAO,UAAU,IAAI;KAC9B;IACD,UAAU;IACX,CAAC;AACF,OACE,OAAO,eACP,OAAO,YAAY,SAAS,KAC5B,OAAO,aAAa,MAClB,eAAc,WAAW,aAAa,GAAG,mBAAmB,MAC7D,CAED,OAAM,IAAI,MACR,kEAAkE,GAAG,IAAI,GAAG,kBAC1E,OAAO,aACP;IACE,uBAAsB,aACpB,GAAG,IAAI,4BACH,WACA,SAAS,aAAa;IAC5B,2BAA2B,GAAG,IAAI,qBAAqB;IACvD,kBAAkB,GAAG,IAAI;IAC1B,CACF,GACF;AAGH,OAAI,CAAC,OAAO,WACV,OAAM,IAAI,MACR,uFAAuF,KACxF;AAGH,UAAO;IAAE,MAAM,OAAO;IAAY;IAAI;;EAEzC;;AAGH,kBAAe"}
@@ -0,0 +1,38 @@
1
+ import ts from "typescript";
2
+ import { PluginContext } from "powerlines/types/context";
3
+ import { UserConfig } from "powerlines/types/config";
4
+ import { ResolvedConfig } from "powerlines/types/resolved";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
+ /**
9
+ * Whether to perform type checking during the `lint` task.
10
+ *
11
+ * @defaultValue false
12
+ */
13
+ typeCheck?: boolean;
14
+ };
15
+ interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
+ transform: {
17
+ /**
18
+ * TypeScript Compiler transformation options
19
+ */
20
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
+ };
22
+ }
23
+ interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
+ transform: {
25
+ /**
26
+ * Resolved TypeScript Compiler transformation options
27
+ */
28
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
+ };
30
+ }
31
+ type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
+ declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
+ declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
+ declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
+ declare type __ΩTypeScriptCompilerPluginContext = any[];
36
+ //#endregion
37
+ export { __ΩTypeScriptCompilerPluginContext as a, __ΩTypeScriptCompilerPluginUserConfig as c, TypeScriptCompilerPluginUserConfig as i, TypeScriptCompilerPluginOptions as n, __ΩTypeScriptCompilerPluginOptions as o, TypeScriptCompilerPluginResolvedConfig as r, __ΩTypeScriptCompilerPluginResolvedConfig as s, TypeScriptCompilerPluginContext as t };
38
+ //# sourceMappingURL=plugin-D5AazRsR.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-D5AazRsR.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,+BAAA,GAAkC,QAC5C,KAAK,EAAA,CAAG;;AADV;;;;EAAqD,SAAA,CAAA,EAAA,OAAA;AAWrD,CAAA;AAKsB,UALL,kCAAA,SAA2C,UAKtC,CAAA;EAAL,SAAA,EAAA;IAAR;;;IACH,GAAA,EADG,OACH,CADW,IACX,CADgB,+BAChB,EAAA,WAAA,CAAA,CAAA,GAAA,QAAA,CAAS,IAAT,CAAc,+BAAd,EAAA,WAAA,CAAA,CAAA;EANsD,CAAA;;AAU3C,UAAA,sCAAA,SAA+C,cAAR,CAAA;EAKlC,SAAA,EAAA;IAAL;;;IACF,GAAA,EADN,OACM,CADE,IACF,CADO,+BACP,EAAA,WAAA,CAAA,CAAA,GAAT,QAAS,CAAA,IAAA,CAAK,+BAAL,EAAA,WAAA,CAAA,CAAA;EAAT,CAAA;;AANwE,KAUlE,+BAVkE,CAAA,wBAWpD,sCAXoD,GAY1E,sCAZ0E,CAAA,GAa1E,aAb0E,CAa5D,eAb4D,CAAA;AAUlE,kDAA+B,GAAA,EAAA;AACjB,qDAAA,GAAA,EAAA;AACtB,yDAAA,GAAA,EAAA;AACc,kDAAA,GAAA,EAAA"}
@@ -0,0 +1 @@
1
+ export { };
File without changes
@@ -0,0 +1,38 @@
1
+ import { PluginContext } from "powerlines/types/context";
2
+ import { UserConfig } from "powerlines/types/config";
3
+ import { ResolvedConfig } from "powerlines/types/resolved";
4
+ import ts from "typescript";
5
+
6
+ //#region src/types/plugin.d.ts
7
+ type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
+ /**
9
+ * Whether to perform type checking during the `lint` task.
10
+ *
11
+ * @defaultValue false
12
+ */
13
+ typeCheck?: boolean;
14
+ };
15
+ interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
+ transform: {
17
+ /**
18
+ * TypeScript Compiler transformation options
19
+ */
20
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
+ };
22
+ }
23
+ interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
+ transform: {
25
+ /**
26
+ * Resolved TypeScript Compiler transformation options
27
+ */
28
+ tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
+ };
30
+ }
31
+ type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
+ declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
+ declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
+ declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
+ declare type __ΩTypeScriptCompilerPluginContext = any[];
36
+ //#endregion
37
+ export { __ΩTypeScriptCompilerPluginContext as a, __ΩTypeScriptCompilerPluginUserConfig as c, TypeScriptCompilerPluginUserConfig as i, TypeScriptCompilerPluginOptions as n, __ΩTypeScriptCompilerPluginOptions as o, TypeScriptCompilerPluginResolvedConfig as r, __ΩTypeScriptCompilerPluginResolvedConfig as s, TypeScriptCompilerPluginContext as t };
38
+ //# sourceMappingURL=plugin-zU_twvQg.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-zU_twvQg.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;KAuBY,+BAAA,GAAkC,QAC5C,KAAK,EAAA,CAAG;;AADV;;;;EAAqD,SAAA,CAAA,EAAA,OAAA;AAWrD,CAAA;AAKsB,UALL,kCAAA,SAA2C,UAKtC,CAAA;EAAL,SAAA,EAAA;IAAR;;;IACH,GAAA,EADG,OACH,CADW,IACX,CADgB,+BAChB,EAAA,WAAA,CAAA,CAAA,GAAA,QAAA,CAAS,IAAT,CAAc,+BAAd,EAAA,WAAA,CAAA,CAAA;EANsD,CAAA;;AAU3C,UAAA,sCAAA,SAA+C,cAAR,CAAA;EAKlC,SAAA,EAAA;IAAL;;;IACF,GAAA,EADN,OACM,CADE,IACF,CADO,+BACP,EAAA,WAAA,CAAA,CAAA,GAAT,QAAS,CAAA,IAAA,CAAK,+BAAL,EAAA,WAAA,CAAA,CAAA;EAAT,CAAA;;AANwE,KAUlE,+BAVkE,CAAA,wBAWpD,sCAXoD,GAY1E,sCAZ0E,CAAA,GAa1E,aAb0E,CAa5D,eAb4D,CAAA;AAUlE,kDAA+B,GAAA,EAAA;AACjB,qDAAA,GAAA,EAAA;AACtB,yDAAA,GAAA,EAAA;AACc,kDAAA,GAAA,EAAA"}
@@ -0,0 +1,27 @@
1
+ const require_index = require('./index.cjs');
2
+ let typescript = require("typescript");
3
+
4
+ //#region src/helpers/type-check.ts
5
+ /**
6
+ * Perform type checks on the provided sources using TypeScript's compiler API.
7
+ *
8
+ * @param context - The build context containing information about the current build.
9
+ */
10
+ async function typeCheck(context) {
11
+ const result = context.program.emitToMemory();
12
+ const diagnosticMessages = [];
13
+ result.getDiagnostics().forEach((diagnostic) => {
14
+ if (diagnostic.getSourceFile()?.getBaseName()) diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${(0, typescript.flattenDiagnosticMessageText)(diagnostic.getMessageText().toString(), "\n")}`);
15
+ else diagnosticMessages.push((0, typescript.flattenDiagnosticMessageText)(diagnostic.getMessageText().toString(), "\n"));
16
+ });
17
+ const diagnosticMessage = diagnosticMessages.join("\n");
18
+ if (diagnosticMessage) throw new Error(`TypeScript compilation failed: \n\n${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
19
+ }
20
+
21
+ //#endregion
22
+ Object.defineProperty(exports, 'typeCheck', {
23
+ enumerable: true,
24
+ get: function () {
25
+ return typeCheck;
26
+ }
27
+ });
@@ -0,0 +1,22 @@
1
+ import { flattenDiagnosticMessageText } from "typescript";
2
+
3
+ //#region src/helpers/type-check.ts
4
+ /**
5
+ * Perform type checks on the provided sources using TypeScript's compiler API.
6
+ *
7
+ * @param context - The build context containing information about the current build.
8
+ */
9
+ async function typeCheck(context) {
10
+ const result = context.program.emitToMemory();
11
+ const diagnosticMessages = [];
12
+ result.getDiagnostics().forEach((diagnostic) => {
13
+ if (diagnostic.getSourceFile()?.getBaseName()) diagnosticMessages.push(`${diagnostic.getSourceFile()?.getBaseName()} (${(diagnostic.getLineNumber() ?? 0) + 1}): ${flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n")}`);
14
+ else diagnosticMessages.push(flattenDiagnosticMessageText(diagnostic.getMessageText().toString(), "\n"));
15
+ });
16
+ const diagnosticMessage = diagnosticMessages.join("\n");
17
+ if (diagnosticMessage) throw new Error(`TypeScript compilation failed: \n\n${diagnosticMessage.length > 5e3 ? `${diagnosticMessage.slice(0, 5e3)}...` : diagnosticMessage}`);
18
+ }
19
+
20
+ //#endregion
21
+ export { typeCheck as t };
22
+ //# sourceMappingURL=type-check-Bkbb5EkH.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-check-Bkbb5EkH.mjs","names":["diagnosticMessages: string[]"],"sources":["../src/helpers/type-check.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 { Context } from \"powerlines/types/context\";\nimport { flattenDiagnosticMessageText } from \"typescript\";\n\n/**\n * Perform type checks on the provided sources using TypeScript's compiler API.\n *\n * @param context - The build context containing information about the current build.\n */\nexport async function typeCheck(context: Context): Promise<void> {\n const result = context.program.emitToMemory();\n\n const diagnosticMessages: string[] = [];\n result.getDiagnostics().forEach(diagnostic => {\n if (diagnostic.getSourceFile()?.getBaseName()) {\n diagnosticMessages.push(\n `${diagnostic.getSourceFile()?.getBaseName()} (${\n (diagnostic.getLineNumber() ?? 0) + 1\n }): ${flattenDiagnosticMessageText(\n diagnostic.getMessageText().toString(),\n \"\\n\"\n )}`\n );\n } else {\n diagnosticMessages.push(\n flattenDiagnosticMessageText(\n diagnostic.getMessageText().toString(),\n \"\\n\"\n )\n );\n }\n });\n\n const diagnosticMessage = diagnosticMessages.join(\"\\n\");\n if (diagnosticMessage) {\n throw new Error(\n `TypeScript compilation failed: \\n\\n${\n diagnosticMessage.length > 5000\n ? `${diagnosticMessage.slice(0, 5000)}...`\n : diagnosticMessage\n }`\n );\n }\n}\n"],"mappings":";;;;;;;;AA0BA,eAAsB,UAAU,SAAiC;CAC/D,MAAM,SAAS,QAAQ,QAAQ,cAAc;CAE7C,MAAMA,qBAA+B,EAAE;AACvC,QAAO,gBAAgB,CAAC,SAAQ,eAAc;AAC5C,MAAI,WAAW,eAAe,EAAE,aAAa,CAC3C,oBAAmB,KACjB,GAAG,WAAW,eAAe,EAAE,aAAa,CAAC,KAC1C,WAAW,eAAe,IAAI,KAAK,EACrC,KAAK,6BACJ,WAAW,gBAAgB,CAAC,UAAU,EACtC,KACD,GACF;MAED,oBAAmB,KACjB,6BACE,WAAW,gBAAgB,CAAC,UAAU,EACtC,KACD,CACF;GAEH;CAEF,MAAM,oBAAoB,mBAAmB,KAAK,KAAK;AACvD,KAAI,kBACF,OAAM,IAAI,MACR,sCACE,kBAAkB,SAAS,MACvB,GAAG,kBAAkB,MAAM,GAAG,IAAK,CAAC,OACpC,oBAEP"}
@@ -0,0 +1,13 @@
1
+ import { Context } from "powerlines/types/context";
2
+
3
+ //#region src/helpers/type-check.d.ts
4
+
5
+ /**
6
+ * Perform type checks on the provided sources using TypeScript's compiler API.
7
+ *
8
+ * @param context - The build context containing information about the current build.
9
+ */
10
+ declare function typeCheck(context: Context): Promise<void>;
11
+ //#endregion
12
+ export { typeCheck as t };
13
+ //# sourceMappingURL=type-check-C4fVDK_t.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-check-C4fVDK_t.d.mts","names":[],"sources":["../src/helpers/type-check.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;iBAAsB,SAAA,UAAmB,UAAU"}
@@ -0,0 +1,13 @@
1
+ import { Context } from "powerlines/types/context";
2
+
3
+ //#region src/helpers/type-check.d.ts
4
+
5
+ /**
6
+ * Perform type checks on the provided sources using TypeScript's compiler API.
7
+ *
8
+ * @param context - The build context containing information about the current build.
9
+ */
10
+ declare function typeCheck(context: Context): Promise<void>;
11
+ //#endregion
12
+ export { typeCheck as t };
13
+ //# sourceMappingURL=type-check-CVbJ33fg.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type-check-CVbJ33fg.d.cts","names":[],"sources":["../src/helpers/type-check.ts"],"sourcesContent":[],"mappings":";;;;;;AA0BA;;;iBAAsB,SAAA,UAAmB,UAAU"}
@@ -0,0 +1,2 @@
1
+ require('../plugin-pBKbb5K9.cjs');
2
+ require('../types-o3zWarRp.cjs');
@@ -1,2 +1,3 @@
1
- import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./plugin.cjs";
1
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-zU_twvQg.cjs";
2
+ import "../index-D4ELpJXS.cjs";
2
3
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1,2 +1,3 @@
1
- import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from "./plugin.mjs";
1
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-D5AazRsR.mjs";
2
+ import "../index-9iG2qHLe.mjs";
2
3
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1 +1,4 @@
1
+ import "../plugin-ifZVa20V.mjs";
2
+ import "../types-U3zd8PTP.mjs";
3
+
1
4
  export { };
@@ -0,0 +1 @@
1
+ require('../plugin-pBKbb5K9.cjs');
@@ -1,37 +1,2 @@
1
- import { PluginContext } from "powerlines/types/context";
2
- import { UserConfig } from "powerlines/types/config";
3
- import { ResolvedConfig } from "powerlines/types/resolved";
4
- import ts from "typescript";
5
-
6
- //#region src/types/plugin.d.ts
7
- type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
- /**
9
- * Whether to perform type checking during the `lint` task.
10
- *
11
- * @defaultValue false
12
- */
13
- typeCheck?: boolean;
14
- };
15
- interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
- transform: {
17
- /**
18
- * TypeScript Compiler transformation options
19
- */
20
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
- };
22
- }
23
- interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
- transform: {
25
- /**
26
- * Resolved TypeScript Compiler transformation options
27
- */
28
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
- };
30
- }
31
- type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
- declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
- declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
- declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
- declare type __ΩTypeScriptCompilerPluginContext = any[];
36
- //#endregion
1
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-zU_twvQg.cjs";
37
2
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1,37 +1,2 @@
1
- import ts from "typescript";
2
- import { PluginContext } from "powerlines/types/context";
3
- import { UserConfig } from "powerlines/types/config";
4
- import { ResolvedConfig } from "powerlines/types/resolved";
5
-
6
- //#region src/types/plugin.d.ts
7
- type TypeScriptCompilerPluginOptions = Partial<Omit<ts.TranspileOptions, "fileName">> & {
8
- /**
9
- * Whether to perform type checking during the `lint` task.
10
- *
11
- * @defaultValue false
12
- */
13
- typeCheck?: boolean;
14
- };
15
- interface TypeScriptCompilerPluginUserConfig extends UserConfig {
16
- transform: {
17
- /**
18
- * TypeScript Compiler transformation options
19
- */
20
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
21
- };
22
- }
23
- interface TypeScriptCompilerPluginResolvedConfig extends ResolvedConfig {
24
- transform: {
25
- /**
26
- * Resolved TypeScript Compiler transformation options
27
- */
28
- tsc: Partial<Omit<TypeScriptCompilerPluginOptions, "typeCheck">> & Required<Pick<TypeScriptCompilerPluginOptions, "typeCheck">>;
29
- };
30
- }
31
- type TypeScriptCompilerPluginContext<TResolvedConfig extends TypeScriptCompilerPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig> = PluginContext<TResolvedConfig>;
32
- declare type __ΩTypeScriptCompilerPluginOptions = any[];
33
- declare type __ΩTypeScriptCompilerPluginUserConfig = any[];
34
- declare type __ΩTypeScriptCompilerPluginResolvedConfig = any[];
35
- declare type __ΩTypeScriptCompilerPluginContext = any[];
36
- //#endregion
1
+ import { a as __ΩTypeScriptCompilerPluginContext, c as __ΩTypeScriptCompilerPluginUserConfig, i as TypeScriptCompilerPluginUserConfig, n as TypeScriptCompilerPluginOptions, o as __ΩTypeScriptCompilerPluginOptions, r as TypeScriptCompilerPluginResolvedConfig, s as __ΩTypeScriptCompilerPluginResolvedConfig, t as TypeScriptCompilerPluginContext } from "../plugin-D5AazRsR.mjs";
37
2
  export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig };
@@ -1 +1,3 @@
1
+ import "../plugin-ifZVa20V.mjs";
2
+
1
3
  export { };
@@ -0,0 +1 @@
1
+ export { };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsc",
3
- "version": "0.2.245",
3
+ "version": "0.2.247",
4
4
  "type": "module",
5
5
  "description": "A package containing the TypeScript compiler plugin for Powerlines.",
6
6
  "repository": {
@@ -120,13 +120,13 @@
120
120
  "dependencies": {
121
121
  "@stryke/path": "^0.26.3",
122
122
  "defu": "^6.1.4",
123
- "powerlines": "^0.38.4",
123
+ "powerlines": "^0.38.6",
124
124
  "typescript": "^5.9.3"
125
125
  },
126
126
  "devDependencies": {
127
- "@powerlines/plugin-plugin": "^0.12.188",
127
+ "@powerlines/plugin-plugin": "^0.12.190",
128
128
  "@types/node": "^24.10.9"
129
129
  },
130
130
  "publishConfig": { "access": "public" },
131
- "gitHead": "6b0e05037adb26af85fec6f2aa30bcd3b1db4fe1"
131
+ "gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
132
132
  }
@@ -1,29 +0,0 @@
1
- //#region rolldown:runtime
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from === "object" || typeof from === "function") {
10
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
- key = keys[i];
12
- if (!__hasOwnProp.call(to, key) && key !== except) {
13
- __defProp(to, key, {
14
- get: ((k) => from[k]).bind(null, key),
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- }
19
- }
20
- return to;
21
- };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
- value: mod,
24
- enumerable: true
25
- }) : target, mod));
26
-
27
- //#endregion
28
-
29
- exports.__toESM = __toESM;