tailwind-typescript-plugin 0.0.2-beta.9 → 1.0.0
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/CHANGELOG.md +47 -0
- package/README.md +6 -0
- package/lib/index.d.ts +0 -58
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/plugin/TailwindTypescriptPlugin.d.ts +0 -16
- package/lib/plugin/TailwindTypescriptPlugin.d.ts.map +1 -1
- package/lib/plugin/TailwindTypescriptPlugin.js +0 -16
- package/lib/plugin/TailwindTypescriptPlugin.js.map +1 -1
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
+
## 1.0.0 (2025-11-25)
|
|
2
|
+
|
|
3
|
+
### ✨ Features
|
|
4
|
+
|
|
5
|
+
* add class variance authority ([fa0f6c6](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/fa0f6c685f8ee9119403fc17dfdf29de037ac068))
|
|
6
|
+
* add expression paranthesized ([a671a8c](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/a671a8c36c75dd13eb262ed404d4c52b6d9a1235))
|
|
7
|
+
* add initial scaffolding ([007a762](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/007a762bfafac69a9e2b2ffe2448b2501e65f3b3))
|
|
8
|
+
* add release actions ([09b24ca](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/09b24ca938afd67d19eaeb06b2c78a0354a1757f))
|
|
9
|
+
* add semantic releases ([0146d7f](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/0146d7f56c4e4899fc91a9ded0307082fe772d31))
|
|
10
|
+
* add string literal interpolation ([7b1c73b](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/7b1c73bfa14597c5c8da0da4ac7fc5d5f04772df))
|
|
11
|
+
* add template literal with condition ([3a8903e](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/3a8903eabb84a054726e0b9979f5e5c988d1dc60))
|
|
12
|
+
* allow all possible usecases for variants ([2489ade](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/2489ade5d17cbb2987a2d8c94ef4c130679201d7))
|
|
13
|
+
* allow custom classes ([0e331f2](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/0e331f2c329dac9fdf9650a4751b758f35c7d299))
|
|
14
|
+
* implement array use case ([6933035](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/6933035e84b47298f7a139b4146b98b7ab6aa423))
|
|
15
|
+
* implement array use case ([86efd2b](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/86efd2b75dc0157311ddbf2a07ca5b7558c676ff))
|
|
16
|
+
* implement expresion binary and espresion ternary ([76c4681](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/76c46814c8d4db63f78a6c1d773f0f8fd8369ac9))
|
|
17
|
+
* implement function binary test cases ([e4c9fc4](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/e4c9fc4ce7e0c2e5f32d3a5963672971960f8882))
|
|
18
|
+
* implement function static use case ([cc14e2d](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/cc14e2dc636af0efdc2ed4b8c9f0c72215e9682b))
|
|
19
|
+
* implement function ternary test cases ([2103f22](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/2103f225f9119fd21d96a701a1a0b5926a5d51da))
|
|
20
|
+
* implement JSX expresion string literal ([f9e6e7b](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/f9e6e7b3e2ac68380d6ca3ffa4116d74e6e671d6))
|
|
21
|
+
* implement object static ([fddb6ba](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/fddb6bac02b90b29dddd0df2cde0b34cf587d44f))
|
|
22
|
+
* implement tailwind-variants class validation ([9ed7210](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/9ed721079bb35814133eb038eabd6e72b3e13f44))
|
|
23
|
+
* implement template binary use case ([e1a1a8e](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/e1a1a8e39407ac05a520f1b0e6d92226f78dd63e))
|
|
24
|
+
* implement validation for string literal clases ([fac1d68](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/fac1d6804602e207a1ed20649102f600eb016b49))
|
|
25
|
+
* support tailwind-variants lite import ([74f522f](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/74f522f65d6151d8079d51dfa0a2df98100dc8ac))
|
|
26
|
+
|
|
27
|
+
### 🐛 Bug Fixes
|
|
28
|
+
|
|
29
|
+
* beta-release version ([c419cee](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/c419cee1fe47b2cbdcd533c39d48d91ae7e3ae92))
|
|
30
|
+
* filter npm output noise from benchmark report ([2a7817d](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/2a7817dd535731d2ecf00bb1acef88668cf828a8))
|
|
31
|
+
* properly restructure performance workflow to avoid YAML parsing issues ([9214294](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/92142941e77a2e1114ed494d544f2d934b8b24bc))
|
|
32
|
+
* release comments ([e60db41](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/e60db416f91316650c4bebdff124ebd9bcdccb94))
|
|
33
|
+
* YAML syntax error in performance workflow ([b7fb1b7](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/b7fb1b7148fed0961abb71e4f140aeeda78ca93a))
|
|
34
|
+
|
|
35
|
+
### 🔧 Chores
|
|
36
|
+
|
|
37
|
+
* add css variables test ([10566cb](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/10566cb9d0590e925d6ae4cb1162038e6c519ba6))
|
|
38
|
+
* add status on readme ([e75b4e5](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/e75b4e5dba2e12e45193713c2765471fb552352e))
|
|
39
|
+
* architect plugin to make it more extensible ([86c861c](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/86c861c21ffcbd3b84fd7abd468528b4117f8418))
|
|
40
|
+
* improve performance ([b6716e7](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/b6716e7c8c8b5c63c8d067e7f3689fe82d7f9630))
|
|
41
|
+
* improve test execution ([c80796f](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/c80796f11684dda5fb0cdd74079f6e77b78589a2))
|
|
42
|
+
* log into ts language server ([4802802](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/48028021383c709421b424080ff4b308889e29f8))
|
|
43
|
+
* trigger benchmark workflow with new table format ([c39a6c5](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/c39a6c5637bd4d5922c5916d8220760a2a45e8cf))
|
|
44
|
+
* update plugin documentation ([2f3bddf](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/2f3bddffba8db2af4f0b56a3f6a26078f6ca726a))
|
|
45
|
+
* update repo structure and dev workflow ([8b28c44](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/8b28c44ca4f82564252242a8c13ee4f71d797c9e))
|
|
46
|
+
* use trusted publisher ([f853a6e](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/commit/f853a6e9cf46721d5b3915846f73b910285d6712))
|
|
47
|
+
|
|
1
48
|
# Changelog
|
|
2
49
|
|
|
3
50
|
All notable changes to this project will be documented in this file.
|
package/README.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Tailwind TypeScript Plugin
|
|
2
2
|
|
|
3
|
+
[](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/tailwind-typescript-plugin)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.typescriptlang.org/)
|
|
7
|
+
[](https://github.com/IvanRodriCalleja/tailwind-typescript-plugin/blob/main/CONTRIBUTING.md)
|
|
8
|
+
|
|
3
9
|
A TypeScript Language Service plugin that catches **typos and invalid Tailwind CSS class names** in your JSX/TSX files. When you write a class name that doesn't exist in Tailwind, it won't apply any styles—this plugin detects those mistakes and shows errors directly in your editor before you ship broken styles.
|
|
4
10
|
|
|
5
11
|
## What does this plugin do?
|
package/lib/index.d.ts
CHANGED
|
@@ -1,63 +1,5 @@
|
|
|
1
1
|
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
2
|
import { TailwindTypescriptPlugin } from './plugin/TailwindTypescriptPlugin';
|
|
3
|
-
/**
|
|
4
|
-
* Main entry point for the TypeScript Language Service Plugin
|
|
5
|
-
*
|
|
6
|
-
* REFACTORED ARCHITECTURE:
|
|
7
|
-
*
|
|
8
|
-
* This plugin now follows Clean Architecture and SOLID principles:
|
|
9
|
-
*
|
|
10
|
-
* 1. Core Layer (src/core/):
|
|
11
|
-
* - types.ts: Domain types (ClassNameInfo, ExtractionContext, etc.)
|
|
12
|
-
* - interfaces.ts: Contracts (IClassNameExtractor, IClassNameValidator, etc.)
|
|
13
|
-
*
|
|
14
|
-
* 2. Extractors Layer (src/extractors/):
|
|
15
|
-
* - BaseExtractor: Abstract base with common functionality
|
|
16
|
-
* - StringLiteralExtractor: Handles string literals
|
|
17
|
-
* - TemplateExpressionExtractor: Handles template strings
|
|
18
|
-
* - ExpressionExtractor: Handles all expression types (ternary, binary, etc.)
|
|
19
|
-
* - JsxAttributeExtractor: Main orchestrator for JSX className attributes
|
|
20
|
-
*
|
|
21
|
-
* 3. Services Layer (src/services/):
|
|
22
|
-
* - ClassNameExtractionService: Orchestrates AST traversal and extraction
|
|
23
|
-
* - DiagnosticService: Creates TypeScript diagnostics
|
|
24
|
-
* - ValidationService: Validates classes and creates diagnostics
|
|
25
|
-
* - PluginConfigService: Manages plugin configuration
|
|
26
|
-
* - PerformanceCache: LRU cache for performance optimization
|
|
27
|
-
*
|
|
28
|
-
* 4. Plugin Layer (src/plugin/):
|
|
29
|
-
* - TailwindTypescriptPlugin: Thin adapter to TypeScript API
|
|
30
|
-
*
|
|
31
|
-
* 5. Infrastructure Layer:
|
|
32
|
-
* - TailwindValidator: Validates against Tailwind CSS design system
|
|
33
|
-
* - Logger: Logging abstraction
|
|
34
|
-
*
|
|
35
|
-
* SOLID PRINCIPLES APPLIED:
|
|
36
|
-
*
|
|
37
|
-
* - Single Responsibility: Each class has one clear purpose
|
|
38
|
-
* - Open/Closed: Easy to add new extractors without modifying existing code
|
|
39
|
-
* - Liskov Substitution: All extractors implement the same interface
|
|
40
|
-
* - Interface Segregation: Small, focused interfaces
|
|
41
|
-
* - Dependency Inversion: Depends on abstractions (IClassNameValidator, etc.)
|
|
42
|
-
*
|
|
43
|
-
* EXTENSIBILITY:
|
|
44
|
-
*
|
|
45
|
-
* To add a new extraction pattern:
|
|
46
|
-
* 1. Create a new extractor class extending BaseExtractor
|
|
47
|
-
* 2. Implement canHandle() and extract() methods
|
|
48
|
-
* 3. Add it to ClassNameExtractionService.extractors array
|
|
49
|
-
*
|
|
50
|
-
* To use the TypeScript type checker:
|
|
51
|
-
* The type checker is obtained fresh for each file validation from the current program.
|
|
52
|
-
* It's available in the ExtractionContext passed to extractors for type-based features.
|
|
53
|
-
*
|
|
54
|
-
* PERFORMANCE OPTIMIZATIONS:
|
|
55
|
-
*
|
|
56
|
-
* - LRU cache for validation results (2000 entries)
|
|
57
|
-
* - Lazy initialization of design system
|
|
58
|
-
* - Fresh type checker per-file (always accurate, no staleness)
|
|
59
|
-
* - Fast path for static class validation
|
|
60
|
-
*/
|
|
61
3
|
declare const _default: (mod: {
|
|
62
4
|
typescript: typeof ts;
|
|
63
5
|
}) => TailwindTypescriptPlugin;
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAErD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;yBAEnE,KAAK;IAAE,UAAU,EAAE,OAAO,EAAE,CAAA;CAAE;AAAxC,kBAA0F"}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,gFAA6E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,gFAA6E;AAE7E,iBAAS,CAAC,GAA8B,EAAE,EAAE,CAAC,IAAI,mDAAwB,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
1
|
import * as ts from 'typescript/lib/tsserverlibrary';
|
|
2
|
-
/**
|
|
3
|
-
* Main plugin class - Refactored with clean architecture and SOLID principles
|
|
4
|
-
*
|
|
5
|
-
* Architecture layers:
|
|
6
|
-
* 1. Core Domain - Types and interfaces (src/core)
|
|
7
|
-
* 2. Extractors - Strategy pattern for class extraction (src/extractors)
|
|
8
|
-
* 3. Services - Business logic orchestration (src/services)
|
|
9
|
-
* 4. Plugin - Thin adapter to TypeScript API (this file)
|
|
10
|
-
*
|
|
11
|
-
* Key improvements:
|
|
12
|
-
* - Single Responsibility: Each class has one clear purpose
|
|
13
|
-
* - Open/Closed: Easy to add new extractors without modifying existing code
|
|
14
|
-
* - Dependency Inversion: Depends on abstractions (interfaces) not concretions
|
|
15
|
-
* - Separation of Concerns: Clear boundaries between layers
|
|
16
|
-
* - Testability: All components can be tested in isolation
|
|
17
|
-
*/
|
|
18
2
|
export declare class TailwindTypescriptPlugin {
|
|
19
3
|
private readonly typescript;
|
|
20
4
|
private logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindTypescriptPlugin.d.ts","sourceRoot":"","sources":["../../src/plugin/TailwindTypescriptPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAYrD
|
|
1
|
+
{"version":3,"file":"TailwindTypescriptPlugin.d.ts","sourceRoot":"","sources":["../../src/plugin/TailwindTypescriptPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAYrD,qBAAa,wBAAwB;IAQxB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAPvC,OAAO,CAAC,MAAM,CAAU;IACxB,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,iBAAiB,CAAqB;IAC9C,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,eAAe,CAAuB;IAC9C,OAAO,CAAC,qBAAqB,CAA8B;gBAE9B,UAAU,EAAE,OAAO,EAAE;IAElD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,gBAAgB,GAAG,EAAE,CAAC,eAAe;IAmB5D;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAgD3B;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAgBlC;;;OAGG;IACH,OAAO,CAAC,4BAA4B,CA+CjC;IAEH;;OAEG;IACH,OAAO,CAAC,kBAAkB;IAe1B;;OAEG;IACH,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CAGhD"}
|
|
@@ -13,22 +13,6 @@ const FileDiagnosticCache_1 = require("../services/FileDiagnosticCache");
|
|
|
13
13
|
const PluginConfigService_1 = require("../services/PluginConfigService");
|
|
14
14
|
const ValidationService_1 = require("../services/ValidationService");
|
|
15
15
|
const Logger_1 = require("../utils/Logger");
|
|
16
|
-
/**
|
|
17
|
-
* Main plugin class - Refactored with clean architecture and SOLID principles
|
|
18
|
-
*
|
|
19
|
-
* Architecture layers:
|
|
20
|
-
* 1. Core Domain - Types and interfaces (src/core)
|
|
21
|
-
* 2. Extractors - Strategy pattern for class extraction (src/extractors)
|
|
22
|
-
* 3. Services - Business logic orchestration (src/services)
|
|
23
|
-
* 4. Plugin - Thin adapter to TypeScript API (this file)
|
|
24
|
-
*
|
|
25
|
-
* Key improvements:
|
|
26
|
-
* - Single Responsibility: Each class has one clear purpose
|
|
27
|
-
* - Open/Closed: Easy to add new extractors without modifying existing code
|
|
28
|
-
* - Dependency Inversion: Depends on abstractions (interfaces) not concretions
|
|
29
|
-
* - Separation of Concerns: Clear boundaries between layers
|
|
30
|
-
* - Testability: All components can be tested in isolation
|
|
31
|
-
*/
|
|
32
16
|
class TailwindTypescriptPlugin {
|
|
33
17
|
constructor(typescript) {
|
|
34
18
|
this.typescript = typescript;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindTypescriptPlugin.js","sourceRoot":"","sources":["../../src/plugin/TailwindTypescriptPlugin.ts"],"names":[],"mappings":";;;;;;AACA,4CAAoB;AACpB,gDAAwB;AAExB,2EAAwE;AACxE,uFAAoF;AACpF,qEAAkE;AAClE,yEAAsE;AACtE,yEAAsE;AACtE,qEAAkE;AAClE,4CAAiE;AAEjE
|
|
1
|
+
{"version":3,"file":"TailwindTypescriptPlugin.js","sourceRoot":"","sources":["../../src/plugin/TailwindTypescriptPlugin.ts"],"names":[],"mappings":";;;;;;AACA,4CAAoB;AACpB,gDAAwB;AAExB,2EAAwE;AACxE,uFAAoF;AACpF,qEAAkE;AAClE,yEAAsE;AACtE,yEAAsE;AACtE,qEAAkE;AAClE,4CAAiE;AAEjE,MAAa,wBAAwB;IAQpC,YAA6B,UAAqB;QAArB,eAAU,GAAV,UAAU,CAAW;QAF1C,0BAAqB,GAAyB,IAAI,CAAC;QAiG3D;;;WAGG;QACK,iCAA4B,GACnC,CAAC,IAAgC,EAAE,EAAE,CACrC,CAAC,QAAgB,EAAmB,EAAE;YACrC,IAAI,CAAC,MAAM,CAAC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2
2
|
"name": "tailwind-typescript-plugin",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "TypeScript Language Service plugin that validates Tailwind CSS class names in JSX/TSX files. Catches typos and invalid classes in real-time with support for tailwind-variants and class-variance-authority.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
"lint": "eslint src --ext .ts,.tsx,.json --quiet --cache",
|
|
18
18
|
"tsc": "tsc --noEmit",
|
|
19
19
|
"prepare": "npm run build",
|
|
20
|
-
"benchmark": "npm run build && node --expose-gc $(which npx) ts-node performance/run-benchmark.ts"
|
|
21
|
-
"benchmark:report": "npx ts-node performance/format-benchmark-report.ts"
|
|
20
|
+
"benchmark": "npm run build && node --expose-gc $(which npx) ts-node performance/run-benchmark.ts"
|
|
22
21
|
},
|
|
23
22
|
"keywords": [
|
|
24
23
|
"typescript",
|
|
@@ -58,9 +57,12 @@
|
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@eslint/compat": "^1.2.9",
|
|
60
59
|
"@eslint/eslintrc": "^3",
|
|
60
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
61
|
+
"@semantic-release/git": "^10.0.1",
|
|
61
62
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
62
63
|
"@types/jest": "^29.5.0",
|
|
63
64
|
"@types/node": "^24.10.1",
|
|
65
|
+
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
64
66
|
"eslint": "^9",
|
|
65
67
|
"eslint-config-next": "15.3.3",
|
|
66
68
|
"eslint-config-prettier": "^10.1.5",
|
|
@@ -71,6 +73,7 @@
|
|
|
71
73
|
"eslint-plugin-storybook": "^9.0.16",
|
|
72
74
|
"jest": "^29.7.0",
|
|
73
75
|
"prettier": "^3.5.3",
|
|
76
|
+
"semantic-release": "^24.2.9",
|
|
74
77
|
"ts-jest": "^29.4.5",
|
|
75
78
|
"ts-node": "^10.9.2",
|
|
76
79
|
"typescript": "^5.7.2"
|