@powerlines/plugin-tsc 0.2.55 → 0.2.57

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 (63) hide show
  1. package/README.md +8 -2
  2. package/dist/context-BBq6jvlP.d.cts +1640 -0
  3. package/dist/context-BBq6jvlP.d.cts.map +1 -0
  4. package/dist/context-CNmesYFy.d.mts +1640 -0
  5. package/dist/context-CNmesYFy.d.mts.map +1 -0
  6. package/dist/helpers/index.cjs +1 -1
  7. package/dist/helpers/index.d.cts +4 -23
  8. package/dist/helpers/index.d.mts +4 -0
  9. package/dist/helpers/index.mjs +1 -0
  10. package/dist/helpers/type-check.cjs +1 -12
  11. package/dist/helpers/type-check.d.cts +3 -31
  12. package/dist/helpers/type-check.d.mts +3 -0
  13. package/dist/helpers/type-check.mjs +1 -0
  14. package/dist/helpers-CRPRhztf.mjs +1 -0
  15. package/dist/index-CUbWeWHc.d.mts +1 -0
  16. package/dist/index-D6CnpA_r.d.cts +1 -0
  17. package/dist/index-DL0uimUT.d.mts +1 -0
  18. package/dist/index-DWPDThxu.d.cts +1 -0
  19. package/dist/index.cjs +1 -8
  20. package/dist/index.d.cts +10 -27
  21. package/dist/index.d.cts.map +1 -0
  22. package/dist/index.d.mts +18 -0
  23. package/dist/index.d.mts.map +1 -0
  24. package/dist/index.mjs +2 -0
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/plugin-B43Fe7Cn.d.mts +36 -0
  27. package/dist/plugin-B43Fe7Cn.d.mts.map +1 -0
  28. package/dist/plugin-BjiGfRHE.mjs +1 -0
  29. package/dist/plugin-CEPWS2A4.d.cts +36 -0
  30. package/dist/plugin-CEPWS2A4.d.cts.map +1 -0
  31. package/dist/plugin-pBKbb5K9.cjs +0 -0
  32. package/dist/type-check-BKK0bXRZ.d.cts +13 -0
  33. package/dist/type-check-BKK0bXRZ.d.cts.map +1 -0
  34. package/dist/type-check-CbXMF6b-.cjs +4 -0
  35. package/dist/type-check-VZ8glHmD.mjs +5 -0
  36. package/dist/type-check-VZ8glHmD.mjs.map +1 -0
  37. package/dist/type-check-dwHDuxmy.d.mts +13 -0
  38. package/dist/type-check-dwHDuxmy.d.mts.map +1 -0
  39. package/dist/types/index.cjs +1 -1
  40. package/dist/types/index.d.cts +4 -23
  41. package/dist/types/index.d.mts +4 -0
  42. package/dist/types/index.mjs +1 -0
  43. package/dist/types/plugin.cjs +1 -1
  44. package/dist/types/plugin.d.cts +3 -54
  45. package/dist/types/plugin.d.mts +3 -0
  46. package/dist/types/plugin.mjs +1 -0
  47. package/dist/types-n6NgD0QK.mjs +1 -0
  48. package/dist/types-o3zWarRp.cjs +0 -0
  49. package/package.json +46 -28
  50. package/dist/chunk-FBBMZ4NC.cjs +0 -7
  51. package/dist/chunk-UCUR73HG.js +0 -7
  52. package/dist/helpers/index.d.ts +0 -23
  53. package/dist/helpers/index.js +0 -1
  54. package/dist/helpers/type-check.d.ts +0 -31
  55. package/dist/helpers/type-check.js +0 -12
  56. package/dist/index.d.ts +0 -35
  57. package/dist/index.js +0 -8
  58. package/dist/plugin-DxrO7vuN.d.cts +0 -1552
  59. package/dist/plugin-DxrO7vuN.d.ts +0 -1552
  60. package/dist/types/index.d.ts +0 -23
  61. package/dist/types/index.js +0 -1
  62. package/dist/types/plugin.d.ts +0 -54
  63. /package/dist/{types/plugin.js → helpers-LF26RHol.cjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsc",
3
- "version": "0.2.55",
3
+ "version": "0.2.57",
4
4
  "type": "module",
5
5
  "description": "A package containing the TypeScript compiler plugin for Powerlines.",
6
6
  "repository": {
@@ -39,102 +39,120 @@
39
39
  "license": "Apache-2.0",
40
40
  "private": false,
41
41
  "main": "dist/index.cjs",
42
- "module": "dist/index.js",
42
+ "module": "dist/index.mjs",
43
43
  "exports": {
44
44
  "./package.json": "./package.json",
45
45
  ".": {
46
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
46
+ "import": {
47
+ "types": "./dist/index.d.mts",
48
+ "default": "./dist/index.mjs"
49
+ },
47
50
  "require": {
48
51
  "types": "./dist/index.d.cts",
49
52
  "default": "./dist/index.cjs"
50
53
  },
51
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
54
+ "default": {
55
+ "types": "./dist/index.d.mts",
56
+ "default": "./dist/index.mjs"
57
+ }
52
58
  },
53
59
  "./index": {
54
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
60
+ "import": {
61
+ "types": "./dist/index.d.mts",
62
+ "default": "./dist/index.mjs"
63
+ },
55
64
  "require": {
56
65
  "types": "./dist/index.d.cts",
57
66
  "default": "./dist/index.cjs"
58
67
  },
59
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
68
+ "default": {
69
+ "types": "./dist/index.d.mts",
70
+ "default": "./dist/index.mjs"
71
+ }
60
72
  },
61
73
  "./plugin": {
62
- "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
74
+ "import": {
75
+ "types": "./dist/index.d.mts",
76
+ "default": "./dist/index.mjs"
77
+ },
63
78
  "require": {
64
79
  "types": "./dist/index.d.cts",
65
80
  "default": "./dist/index.cjs"
66
81
  },
67
- "default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
82
+ "default": {
83
+ "types": "./dist/index.d.mts",
84
+ "default": "./dist/index.mjs"
85
+ }
68
86
  },
69
87
  "./types": {
70
88
  "import": {
71
- "types": "./dist/types/index.d.ts",
72
- "default": "./dist/types/index.js"
89
+ "types": "./dist/types/index.d.mts",
90
+ "default": "./dist/types/index.mjs"
73
91
  },
74
92
  "require": {
75
93
  "types": "./dist/types/index.d.cts",
76
94
  "default": "./dist/types/index.cjs"
77
95
  },
78
96
  "default": {
79
- "types": "./dist/types/index.d.ts",
80
- "default": "./dist/types/index.js"
97
+ "types": "./dist/types/index.d.mts",
98
+ "default": "./dist/types/index.mjs"
81
99
  }
82
100
  },
83
101
  "./types/*": {
84
102
  "import": {
85
- "types": "./dist/types/*.d.ts",
86
- "default": "./dist/types/*.js"
103
+ "types": "./dist/types/*.d.mts",
104
+ "default": "./dist/types/*.mjs"
87
105
  },
88
106
  "require": {
89
107
  "types": "./dist/types/*.d.cts",
90
108
  "default": "./dist/types/*.cjs"
91
109
  },
92
110
  "default": {
93
- "types": "./dist/types/*.d.ts",
94
- "default": "./dist/types/*.js"
111
+ "types": "./dist/types/*.d.mts",
112
+ "default": "./dist/types/*.mjs"
95
113
  }
96
114
  },
97
115
  "./helpers": {
98
116
  "import": {
99
- "types": "./dist/helpers/index.d.ts",
100
- "default": "./dist/helpers/index.js"
117
+ "types": "./dist/helpers/index.d.mts",
118
+ "default": "./dist/helpers/index.mjs"
101
119
  },
102
120
  "require": {
103
121
  "types": "./dist/helpers/index.d.cts",
104
122
  "default": "./dist/helpers/index.cjs"
105
123
  },
106
124
  "default": {
107
- "types": "./dist/helpers/index.d.ts",
108
- "default": "./dist/helpers/index.js"
125
+ "types": "./dist/helpers/index.d.mts",
126
+ "default": "./dist/helpers/index.mjs"
109
127
  }
110
128
  },
111
129
  "./helpers/*": {
112
130
  "import": {
113
- "types": "./dist/helpers/*.d.ts",
114
- "default": "./dist/helpers/*.js"
131
+ "types": "./dist/helpers/*.d.mts",
132
+ "default": "./dist/helpers/*.mjs"
115
133
  },
116
134
  "require": {
117
135
  "types": "./dist/helpers/*.d.cts",
118
136
  "default": "./dist/helpers/*.cjs"
119
137
  },
120
138
  "default": {
121
- "types": "./dist/helpers/*.d.ts",
122
- "default": "./dist/helpers/*.js"
139
+ "types": "./dist/helpers/*.d.mts",
140
+ "default": "./dist/helpers/*.mjs"
123
141
  }
124
142
  }
125
143
  },
126
- "typings": "dist/index.d.ts",
144
+ "typings": "dist/index.d.mts",
127
145
  "files": ["dist/**/*"],
128
146
  "keywords": ["tsc", "powerlines", "storm-software", "powerlines-plugin"],
129
147
  "dependencies": {
130
148
  "defu": "^6.1.4",
131
- "powerlines": "^0.28.0",
149
+ "powerlines": "^0.30.0",
132
150
  "typescript": "^5.9.3"
133
151
  },
134
152
  "devDependencies": {
135
- "@powerlines/nx": "^0.10.47",
153
+ "@powerlines/nx": "^0.10.49",
136
154
  "@types/node": "^24.10.1"
137
155
  },
138
156
  "publishConfig": { "access": "public" },
139
- "gitHead": "3feaa815e117c46d827eee84c3521e54670abb9b"
157
+ "gitHead": "f0a4e1526773f5d4bfb63fd5ba1d02d5aa9bc771"
140
158
  }
@@ -1,7 +0,0 @@
1
- 'use strict';/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:true});exports.a=d;
@@ -1,7 +0,0 @@
1
- /*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:true});export{d as a};
@@ -1,23 +0,0 @@
1
- export { typeCheck } from './type-check.js';
2
- import '../plugin-DxrO7vuN.js';
3
- import '@stryke/types/base';
4
- import 'unplugin';
5
- import '@stryke/types/array';
6
- import '@storm-software/build-tools/types';
7
- import '@storm-software/config-tools/types';
8
- import '@storm-software/config/types';
9
- import '@stryke/types/configuration';
10
- import '@stryke/types/file';
11
- import 'vite';
12
- import '@stryke/env/get-env-paths';
13
- import '@stryke/http/fetch';
14
- import '@stryke/types/package-json';
15
- import 'jiti';
16
- import 'magic-string';
17
- import 'oxc-parser';
18
- import 'semver';
19
- import 'ts-morph';
20
- import 'undici';
21
- import '@stryke/fs/resolve';
22
- import '@stryke/types/tsconfig';
23
- import 'typescript';
@@ -1 +0,0 @@
1
- export*from'./type-check';
@@ -1,31 +0,0 @@
1
- import { C as Context } from '../plugin-DxrO7vuN.js';
2
- import '@stryke/types/base';
3
- import 'unplugin';
4
- import '@stryke/types/array';
5
- import '@storm-software/build-tools/types';
6
- import '@storm-software/config-tools/types';
7
- import '@storm-software/config/types';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/http/fetch';
13
- import '@stryke/types/package-json';
14
- import 'jiti';
15
- import 'magic-string';
16
- import 'oxc-parser';
17
- import 'semver';
18
- import 'ts-morph';
19
- import 'undici';
20
- import '@stryke/fs/resolve';
21
- import '@stryke/types/tsconfig';
22
- import 'typescript';
23
-
24
- /**
25
- * Perform type checks on the provided sources using TypeScript's compiler API.
26
- *
27
- * @param context - The build context containing information about the current build.
28
- */
29
- declare function typeCheck(context: Context): Promise<void>;
30
-
31
- export { typeCheck };
@@ -1,12 +0,0 @@
1
- import {a}from'../chunk-UCUR73HG.js';import {flattenDiagnosticMessageText}from'typescript';/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- async function l(r){const i=r.program.emitToMemory(),o=[];i.getDiagnostics().forEach(e=>{e.getSourceFile()?.getBaseName()?o.push(`${e.getSourceFile()?.getBaseName()} (${(e.getLineNumber()??0)+1}): ${flattenDiagnosticMessageText(e.getMessageText().toString(),`
8
- `)}`):o.push(flattenDiagnosticMessageText(e.getMessageText().toString(),`
9
- `));});const t=o.join(`
10
- `);if(t)throw new Error(`TypeScript compilation failed:
11
-
12
- ${t.length>5e3?`${t.slice(0,5e3)}...`:t}`)}a(l,"typeCheck");export{l as typeCheck};
package/dist/index.d.ts DELETED
@@ -1,35 +0,0 @@
1
- import { P as Plugin } from './plugin-DxrO7vuN.js';
2
- import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions } from './types/plugin.js';
3
- export { TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig, __ΩTypeScriptCompilerPluginContext, __ΩTypeScriptCompilerPluginOptions, __ΩTypeScriptCompilerPluginResolvedConfig, __ΩTypeScriptCompilerPluginUserConfig } from './types/plugin.js';
4
- export { typeCheck } from './helpers/type-check.js';
5
- import '@stryke/types/base';
6
- import 'unplugin';
7
- import '@stryke/types/array';
8
- import '@storm-software/build-tools/types';
9
- import '@storm-software/config-tools/types';
10
- import '@storm-software/config/types';
11
- import '@stryke/types/configuration';
12
- import '@stryke/types/file';
13
- import 'vite';
14
- import '@stryke/env/get-env-paths';
15
- import '@stryke/http/fetch';
16
- import '@stryke/types/package-json';
17
- import 'jiti';
18
- import 'magic-string';
19
- import 'oxc-parser';
20
- import 'semver';
21
- import 'ts-morph';
22
- import 'undici';
23
- import '@stryke/fs/resolve';
24
- import '@stryke/types/tsconfig';
25
- import 'typescript';
26
-
27
- /**
28
- * TypeScript Compiler plugin for Powerlines.
29
- *
30
- * @param options - The TypeScript Compiler plugin user configuration options.
31
- * @returns A Powerlines plugin that integrates TypeScript Compiler transformations.
32
- */
33
- declare const plugin: <TContext extends TypeScriptCompilerPluginContext = TypeScriptCompilerPluginContext>(options?: TypeScriptCompilerPluginOptions) => Plugin<TContext>;
34
-
35
- export { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, plugin as default, plugin };
package/dist/index.js DELETED
@@ -1,8 +0,0 @@
1
- import {a as a$1}from'./chunk-UCUR73HG.js';import p from'defu';import e from'typescript';import {typeCheck}from'./helpers/type-check';export*from'./helpers';export*from'./types';/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
6
-
7
- const a=a$1((n={})=>({name:"tsc",config(){return {transform:{tsc:p(n??{},{typeCheck:false})}}},async lint(){this.config.transform.tsc.typeCheck&&await typeCheck(this);},async transform(s,i){const t=e.transpileModule(s,{...this.config.transform.tsc,compilerOptions:{...this.tsconfig.options,...this.config.transform.tsc.compilerOptions},fileName:i});if(t.diagnostics&&t.diagnostics.length>0&&t.diagnostics?.some(o=>o.category===e.DiagnosticCategory.Error))throw new Error(`TypeScript Compiler - TypeScript transpilation errors in file: ${i}
8
- ${e.formatDiagnostics(t.diagnostics,{getCanonicalFileName:a$1(o=>e.sys.useCaseSensitiveFileNames?o:o.toLowerCase(),"getCanonicalFileName"),getCurrentDirectory:a$1(()=>e.sys.getCurrentDirectory(),"getCurrentDirectory"),getNewLine:a$1(()=>e.sys.newLine,"getNewLine")})}`);if(!t.outputText)throw new Error(`TypeScript Compiler - No output generated for file during TypeScript transpilation: ${i}`);return {code:t.outputText,id:i}}}),"plugin");var d=a;export{d as default,a as plugin};