From faee6a16986aa6c42e7adace931bbd4e5565469e Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Thu, 30 Apr 2026 12:59:00 +0000 Subject: [PATCH] fix(package): correct package entry point extension and align test scripts with pnpm --- changelog.md | 6 ++++++ package.json | 6 +++--- test | 1 - ts/00_commitinfo_data.ts | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) delete mode 160000 test diff --git a/changelog.md b/changelog.md index 55be167..d142c5b 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-04-30 - 2.14.2 - fix(package) +correct package entry point extension and align test scripts with pnpm + +- Change the package main field from dist_ts/index.ts to dist_ts/index.js for the built CLI entry point. +- Update test and testBuild scripts to use pnpm run instead of npm run for consistent package manager usage. + ## 2026-04-16 - 2.14.1 - fix(repo) no changes to commit diff --git a/package.json b/package.json index c4e9950..80b74e5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "private": false, "version": "2.14.1", "description": "A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.", - "main": "dist_ts/index.ts", + "main": "dist_ts/index.js", "typings": "dist_ts/index.d.ts", "type": "module", "bin": { @@ -11,11 +11,11 @@ "gzone": "./cli.js" }, "scripts": { - "test": "(npm run clean && npm run prepareTest && npm run testCli && npm run testFormat && npm run testCommit && npm run testDeprecate && npm run testVersion && npm run testReadme && npm run testUpdate && npm run testTemplateNpm && npm run testTemplateLit) && rm -rf test", + "test": "(pnpm run clean && pnpm run prepareTest && pnpm run testCli && pnpm run testFormat && pnpm run testCommit && pnpm run testDeprecate && pnpm run testVersion && pnpm run testReadme && pnpm run testUpdate && pnpm run testTemplateNpm && pnpm run testTemplateLit) && rm -rf test", "build": "tsbuild tsfolders", "clean": "(rm -rf test/)", "prepareTest": "(git clone https://gitlab.com/sandboxzone/sandbox-npmts.git test/)", - "testBuild": "npm run build && rm -r dist/", + "testBuild": "pnpm run build && rm -r dist/", "testCli": "(cd test && node ../cli.ts.js)", "testCommit": "(cd test && node ../cli.ts.js commit)", "testDeprecate": "(cd test && node ../cli.ts.js deprecate)", diff --git a/test b/test deleted file mode 160000 index 0b89443..0000000 --- a/test +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0b89443584ecd3a5948baacea665327165f102b5 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 53acae9..6091268 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/cli', - version: '2.14.1', + version: '2.14.2', description: 'A comprehensive CLI tool for enhancing and managing local development workflows with gitzone utilities, focusing on project setup, version control, code formatting, and template management.' }