From 75acc4b768e1df4b471a67d50967a70db9b07805 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Tue, 29 Jul 2025 17:46:28 +0000 Subject: [PATCH] feat(exports): modernize package exports and expose watcher class --- changelog.md | 6 ++++++ package.json | 7 ++++--- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 2 ++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 6c4a857..2a48197 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2025-07-29 - 2.2.0 - feat(exports) +Modernize package exports and expose watcher class + +- Updated package.json to use modern exports field instead of main/typings +- Exposed TsWatch watcher class through index exports + ## 2025-07-29 - 2.1.3 - fix(documentation) Update and align documentation with internal CLI and project structure diff --git a/package.json b/package.json index e545651..5b0b62c 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "@git.zone/tswatch", - "version": "2.1.5", + "version": "2.2.0", "private": false, "description": "A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.", - "main": "dist_ts/index.js", - "typings": "dist_ts/index.d.ts", + "exports": { + "./": "./dist_ts/index.js" + }, "type": "module", "author": "Lossless GmbH", "license": "MIT", diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 27f42f6..26d8bcc 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tswatch', - version: '2.1.3', + version: '2.2.0', description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.' } diff --git a/ts/index.ts b/ts/index.ts index 55b54eb..0ddbd67 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -3,3 +3,5 @@ early.start('tswatch'); export * from './tswatch.classes.tswatch.js'; export * from './tswatch.cli.js'; early.stop(); + +export * from './tswatch.classes.watcher.js'; \ No newline at end of file