From f714925b9f5b6c54f1bb60175ffb0cb9ec687e7f Mon Sep 17 00:00:00 2001 From: Fabio Gaming Date: Tue, 26 May 2026 22:27:02 +0200 Subject: [PATCH 1/3] chore: finalize package.json and package-lock.json for publish - Updated license from ISC to MIT in package-lock.json - Adjusted React and React-DOM versions to 19.2.0 in package-lock.json - Enhanced package.json with detailed metadata including description, repository, and funding information - Updated Node engine requirement to >=20 in package.json - Added build script to package.json --- package-lock.json | 10 ++++---- package.json | 63 ++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 57 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0d84ebc..368604d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "": { "name": "@fabi-dev/jsx-utils", "version": "1.0.0", - "license": "ISC", + "license": "MIT", "devDependencies": { "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.2", @@ -16,17 +16,17 @@ "jsdom": "^29.1.1", "prettier": "^3.8.3", "publint": "^0.3.21", - "react": "^19.2.6", - "react-dom": "^19.2.6", + "react": "^19.2.0", + "react-dom": "^19.2.0", "tsup": "^8.5.1", "typescript": "^6.0.3", "vitest": "^4.1.7" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24.0.0" + "node": ">=20" }, "peerDependencies": { - "react": ">=16.8.0" + "react": ">=17.0.0" } }, "node_modules/@adobe/css-tools": { diff --git a/package.json b/package.json index f787a7f..dbbee7a 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,59 @@ { "name": "@fabi-dev/jsx-utils", "version": "1.0.0", - "description": "", - "main": "index.js", + "description": "SolidJS-inspired JSX control flow utilities for React ecosystems", + "license": "MIT", + "author": "FabioTheFox@Fabidev", + "type": "module", + "main": "./dist/index.cjs", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" + } + }, + "files": [ + "dist" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/FabioGaming/jsx-utils.git" + }, + "homepage": "https://github.com/FabioGaming/jsx-utils#readme", + "bugs": { + "url": "https://github.com/FabioGaming/jsx-utils/issues" + }, + "keywords": [ + "react", + "react-native", + "nextjs", + "tsx", + "jsx", + "solidjs", + "solid", + "control-flow", + "show", + "switch", + "match", + "for", + "typescript", + "utility" + ], + "funding": { + "type": "github", + "url": "https://github.com/sponsors/FabioGaming" + }, + "sideEffects": false, "scripts": { + "build": "tsup", "test": "vitest", "test:run": "vitest run", - "build": "tsup", "format:check": "prettier src/ --check", "format:write": "prettier src/ --write" }, - "keywords": [], - "author": "", - "license": "ISC", - "type": "commonjs", "peerDependencies": { "react": ">=17.0.0" }, @@ -25,13 +65,14 @@ "jsdom": "^29.1.1", "prettier": "^3.8.3", "publint": "^0.3.21", - "react": "^19.2.6", - "react-dom": "^19.2.6", + "react": "^19.2.0", + "react-dom": "^19.2.0", "tsup": "^8.5.1", "typescript": "^6.0.3", "vitest": "^4.1.7" }, "engines": { - "node": "^20.19.0 || ^22.13.0 || >=24.0.0" - } + "node": ">=20" + }, + "packageManager": "npm@11.6.2" } From 802eba287b4429bbe36c743cfd505f0673f8d61f Mon Sep 17 00:00:00 2001 From: Fabio Gaming Date: Tue, 26 May 2026 22:31:09 +0200 Subject: [PATCH 2/3] chore: add publishConfig to package.json - Set access to public for package publishing --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index dbbee7a..15a78d4 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,9 @@ "url": "https://github.com/sponsors/FabioGaming" }, "sideEffects": false, + "publishConfig": { + "access": "public" + }, "scripts": { "build": "tsup", "test": "vitest", From de857a0ef5c6a1e59ee9f3b5807e65f231c5c18a Mon Sep 17 00:00:00 2001 From: Fabio Gaming Date: Tue, 26 May 2026 22:31:56 +0200 Subject: [PATCH 3/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15a78d4..85ad652 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "vitest": "^4.1.7" }, "engines": { - "node": ">=20" + "node": "^20.19.0 || >=22.12.0" }, "packageManager": "npm@11.6.2" }