From 42503f845d2de2f09705bfb739b5503f99f7bb14 Mon Sep 17 00:00:00 2001 From: Frantisek Stanko Date: Wed, 8 Oct 2025 00:52:01 +0200 Subject: [PATCH] restore proper support for CommonJS --- CHANGELOG.md | 7 +++++++ eslint.config.ts | 1 - package-lock.json | 4 ++-- package.json | 5 +++-- tsconfig.json | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7355e3b..d256aad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.5.2] - 2025-10-08 + +### Changed + +- Restored proper support for CommonJS consumers + ## [0.5.1] - 2025-10-07 ### Changed @@ -81,6 +87,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Full test coverage with Jest - TypeScript declaration files +[0.5.2]: https://github.com/frantisekstanko/assertion/compare/v0.5.1...v0.5.2 [0.5.1]: https://github.com/frantisekstanko/assertion/compare/v0.5.0...v0.5.1 [0.5.0]: https://github.com/frantisekstanko/assertion/compare/v0.4.1...v0.5.0 [0.4.1]: https://github.com/frantisekstanko/assertion/compare/v0.4.0...v0.4.1 diff --git a/eslint.config.ts b/eslint.config.ts index 43eed04..fa45e3e 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -13,7 +13,6 @@ export default [ languageOptions: { parserOptions: { projectService: true, - tsconfigRootDir: import.meta.dirname, }, }, rules: { diff --git a/package-lock.json b/package-lock.json index b699092..fbec6ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@frantisekstanko/assertion", - "version": "0.5.1", + "version": "0.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@frantisekstanko/assertion", - "version": "0.5.1", + "version": "0.5.2", "license": "MIT", "devDependencies": { "@types/jest": "^30.0.0", diff --git a/package.json b/package.json index afcb9be..050cb35 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "@frantisekstanko/assertion", - "version": "0.5.1", + "version": "0.5.2", "description": "Type-safe assertion library for TypeScript", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.js" + "import": "./dist/index.js", + "require": "./dist/index.js" } }, "files": [ diff --git a/tsconfig.json b/tsconfig.json index fa0f2a0..8f6454f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES2022", - "module": "ES2022", + "module": "CommonJS", "lib": ["ES2022"], "declaration": true, "outDir": "./dist",