From 3eea86ac6a3de2d9cd2167effc1c8968949b5959 Mon Sep 17 00:00:00 2001 From: saqqdy Date: Tue, 26 Nov 2024 18:34:22 +0800 Subject: [PATCH] release 3.3.1 --- .github/workflows/publish-test.yml | 2 +- .github/workflows/publish.yml | 4 ++-- CHANGELOG.md | 4 ++++ package.json | 2 +- packages/extra/cp/package.json | 2 +- packages/extra/fs/package.json | 2 +- packages/extra/path/package.json | 2 +- packages/lerna-workspace-info/package.json | 2 +- packages/lerna-workspace-root/package.json | 2 +- packages/monorepo-root/README.md | 6 +++--- packages/monorepo-root/package.json | 2 +- packages/os-lang/package.json | 2 +- packages/pm-info/README.md | 6 +++--- packages/pm-info/package.json | 2 +- packages/pnpm-workspace-info/package.json | 2 +- packages/pnpm-workspace-root/package.json | 2 +- packages/utils/package.json | 2 +- packages/what-pm/README.md | 6 +++--- packages/what-pm/package.json | 2 +- packages/which-pm/package.json | 2 +- packages/workspace-info/package.json | 2 +- packages/workspace-pkgs/README.md | 6 +++--- packages/workspace-pkgs/package.json | 2 +- packages/workspace-projects/README.md | 6 +++--- packages/workspace-projects/package.json | 2 +- packages/workspace-root/README.md | 6 +++--- packages/workspace-root/package.json | 2 +- packages/yarn-workspace-info/package.json | 2 +- packages/yarn-workspace-root/package.json | 2 +- 29 files changed, 45 insertions(+), 41 deletions(-) diff --git a/.github/workflows/publish-test.yml b/.github/workflows/publish-test.yml index 780cc0b..2757e00 100644 --- a/.github/workflows/publish-test.yml +++ b/.github/workflows/publish-test.yml @@ -80,7 +80,7 @@ jobs: - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/pnpm-workspace-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/yarn-workspace-info/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/yarn-workspace-root/sync" - - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-info/sync" + - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/workspace-info/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/monorepo-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-projects/sync" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 67c9461..f397066 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,9 +61,9 @@ jobs: - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/workspace-projects/.npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/workspace-pkgs/.npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/pm-info/.npmrc - - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/os-lang/.npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/which-pm/.npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/what-pm/.npmrc + - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./packages/os-lang/.npmrc - run: pnpm pub env: @@ -80,7 +80,7 @@ jobs: - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/pnpm-workspace-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/yarn-workspace-info/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/yarn-workspace-root/sync" - - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-info/sync" + - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/@node-kit/workspace-info/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/monorepo-root/sync" - run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/workspace-projects/sync" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c02901..ba7d22a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Logs +## 2024.11.26 v3.3.1 + +1. document work + ## 2024.11.21 v3.3.0 1. compatible for yarn workspaces.nohoist diff --git a/package.json b/package.json index 6e74094..51cd6d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/monorepo", "description": "Some simple utilities for nodejs", - "version": "3.3.0", + "version": "3.3.1", "packageManager": "pnpm@8.6.12", "main": "index.js", "files": [ diff --git a/packages/extra/cp/package.json b/packages/extra/cp/package.json index efcf2e6..89ace55 100644 --- a/packages/extra/cp/package.json +++ b/packages/extra/cp/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/extra.cp", "description": "Some shared extra utilities for nodejs build-in child_process modules", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/extra/fs/package.json b/packages/extra/fs/package.json index 76b3ee4..fd1ab2c 100644 --- a/packages/extra/fs/package.json +++ b/packages/extra/fs/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/extra.fs", "description": "Some shared extra utilities for nodejs build-in fs modules", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/extra/path/package.json b/packages/extra/path/package.json index 1bdf156..57860b7 100644 --- a/packages/extra/path/package.json +++ b/packages/extra/path/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/extra.path", "description": "Some shared extra utilities for nodejs build-in path modules", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/lerna-workspace-info/package.json b/packages/lerna-workspace-info/package.json index 3fee9fe..e7bdc67 100644 --- a/packages/lerna-workspace-info/package.json +++ b/packages/lerna-workspace-info/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/lerna-workspace-info", "description": "A simple utility to get the lerna workspace information", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/lerna-workspace-root/package.json b/packages/lerna-workspace-root/package.json index 465c155..4066cf6 100644 --- a/packages/lerna-workspace-root/package.json +++ b/packages/lerna-workspace-root/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/lerna-workspace-root", "description": "A simple utility to get the lerna workspace root", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/monorepo-root/README.md b/packages/monorepo-root/README.md index 919d986..58e202b 100644 --- a/packages/monorepo-root/README.md +++ b/packages/monorepo-root/README.md @@ -32,7 +32,7 @@ $ npm install -D monorepo-root use import ```js -import { monorepoRoot, monorepoRootSync } from '@node-kit/monorepo-root' +import { monorepoRoot, monorepoRootSync } from 'monorepo-root' monorepoRoot() // or @@ -42,7 +42,7 @@ monorepoRootSync() use require ```js -const { monorepoRoot, monorepoRootSync } = require('@node-kit/monorepo-root') +const { monorepoRoot, monorepoRootSync } = require('monorepo-root') monorepoRoot() // or @@ -75,7 +75,7 @@ declare function monorepoRootSync(cwd?: string): string | null 1. simple use ```ts -import { monorepoRoot, monorepoRootSync } from '@node-kit/monorepo-root' +import { monorepoRoot, monorepoRootSync } from 'monorepo-root' monorepoRoot().then(path => { console.log('The monorepo root is: ', path) // /Users/user/path/of/package/root or null diff --git a/packages/monorepo-root/package.json b/packages/monorepo-root/package.json index 8d6ae70..196d048 100644 --- a/packages/monorepo-root/package.json +++ b/packages/monorepo-root/package.json @@ -1,7 +1,7 @@ { "name": "monorepo-root", "description": "A simple utility to get the monorepo root", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/os-lang/package.json b/packages/os-lang/package.json index ad85ca4..1ce4542 100644 --- a/packages/os-lang/package.json +++ b/packages/os-lang/package.json @@ -1,7 +1,7 @@ { "name": "os-lang", "description": "Get the system lang", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/pm-info/README.md b/packages/pm-info/README.md index ecb2c9f..1bc5fa2 100644 --- a/packages/pm-info/README.md +++ b/packages/pm-info/README.md @@ -32,7 +32,7 @@ $ npm install -D pm-info use import ```js -import { pmInfo, pmInfoSync } from '@node-kit/pm-info' +import { pmInfo, pmInfoSync } from 'pm-info' pmInfo() // or @@ -42,7 +42,7 @@ pmInfoSync() use require ```js -const { pmInfo, pmInfoSync } = require('@node-kit/pm-info') +const { pmInfo, pmInfoSync } = require('pm-info') pmInfo() // or @@ -86,7 +86,7 @@ declare function pmInfoSync(cwd?: string): PackageManager | null 1. simple use ```ts -import { pmInfo, pmInfoSync } from '@node-kit/pm-info' +import { pmInfo, pmInfoSync } from 'pm-info' pmInfo().then(info => { console.log('The package manager is: ', info) // { name: 'pnpm', version: '7.26.1' } | null diff --git a/packages/pm-info/package.json b/packages/pm-info/package.json index 1eee723..39d6ba9 100644 --- a/packages/pm-info/package.json +++ b/packages/pm-info/package.json @@ -1,7 +1,7 @@ { "name": "pm-info", "description": "A simple utility to get the package manager information which used in the project", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/pnpm-workspace-info/package.json b/packages/pnpm-workspace-info/package.json index ec9de2e..be88dd5 100644 --- a/packages/pnpm-workspace-info/package.json +++ b/packages/pnpm-workspace-info/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/pnpm-workspace-info", "description": "A simple utility to get the pnpm workspace information", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/pnpm-workspace-root/package.json b/packages/pnpm-workspace-root/package.json index 8e517b6..2aeaaa5 100644 --- a/packages/pnpm-workspace-root/package.json +++ b/packages/pnpm-workspace-root/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/pnpm-workspace-root", "description": "A simple utility to get the pnpm workspace root", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/utils/package.json b/packages/utils/package.json index 4cbca65..77850a7 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/utils", "description": "Some shared utilities", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/what-pm/README.md b/packages/what-pm/README.md index 91138a2..1c521c9 100644 --- a/packages/what-pm/README.md +++ b/packages/what-pm/README.md @@ -42,7 +42,7 @@ npx whatpm use import ```js -import { whatPM, whatPMSync } from '@node-kit/what-pm' +import { whatPM, whatPMSync } from 'what-pm' whatPM() // or @@ -52,7 +52,7 @@ whatPMSync() use require ```js -const { whatPM, whatPMSync } = require('@node-kit/what-pm') +const { whatPM, whatPMSync } = require('what-pm') whatPM() // or @@ -91,7 +91,7 @@ declare function whatPMSync(pkgPath: string): WhatPMResult | null 1. simple use ```ts -import { whatPM, whatPMSync } from '@node-kit/what-pm' +import { whatPM, whatPMSync } from 'what-pm' whatPM().then(info => { console.log('The package manager is: ', info) // pnpm | null diff --git a/packages/what-pm/package.json b/packages/what-pm/package.json index 9c35f4b..883f525 100644 --- a/packages/what-pm/package.json +++ b/packages/what-pm/package.json @@ -1,7 +1,7 @@ { "name": "what-pm", "description": "Detects what package manager was used for installation", - "version": "3.3.0", + "version": "3.3.1", "bin": { "what-pm": "./bin/index.mjs", "whatpm": "./bin/index.mjs" diff --git a/packages/which-pm/package.json b/packages/which-pm/package.json index 0fb2da2..ae41a37 100644 --- a/packages/which-pm/package.json +++ b/packages/which-pm/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/which-pm", "description": "A simple utility to get which package manager used in the project", - "version": "3.3.0", + "version": "3.3.1", "bin": { "which-pm": "./bin/index.mjs", "whichpm": "./bin/index.mjs" diff --git a/packages/workspace-info/package.json b/packages/workspace-info/package.json index 4e23de6..72abe2a 100644 --- a/packages/workspace-info/package.json +++ b/packages/workspace-info/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/workspace-info", "description": "A simple utility to get the workspace information", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/workspace-pkgs/README.md b/packages/workspace-pkgs/README.md index 9302c5a..b3b248b 100644 --- a/packages/workspace-pkgs/README.md +++ b/packages/workspace-pkgs/README.md @@ -32,7 +32,7 @@ $ npm install -D workspace-pkgs use import ```js -import { workspacePkgs, workspacePkgsSync } from '@node-kit/workspace-pkgs' +import { workspacePkgs, workspacePkgsSync } from 'workspace-pkgs' workspacePkgs() // or @@ -42,7 +42,7 @@ workspacePkgsSync() use require ```js -const { workspacePkgs, workspacePkgsSync } = require('@node-kit/workspace-pkgs') +const { workspacePkgs, workspacePkgsSync } = require('workspace-pkgs') workspacePkgs() // or @@ -75,7 +75,7 @@ declare function workspacePkgsSync(cwd?: string): string[] | null 1. simple use ```ts -import { workspacePkgs, workspacePkgsSync } from '@node-kit/workspace-pkgs' +import { workspacePkgs, workspacePkgsSync } from 'workspace-pkgs' workspacePkgs().then(data => { console.log('The workspace projects is: ', data) // [ 'packages/utils', 'packages/monorepo-root' ] diff --git a/packages/workspace-pkgs/package.json b/packages/workspace-pkgs/package.json index 5dabaf1..435bb3e 100644 --- a/packages/workspace-pkgs/package.json +++ b/packages/workspace-pkgs/package.json @@ -1,7 +1,7 @@ { "name": "workspace-pkgs", "description": "A simple utility to get the workspace project list", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/workspace-projects/README.md b/packages/workspace-projects/README.md index 7773a5d..09f86f3 100644 --- a/packages/workspace-projects/README.md +++ b/packages/workspace-projects/README.md @@ -32,7 +32,7 @@ $ npm install -D workspace-projects use import ```js -import { workspaceProjects, workspaceProjectsSync } from '@node-kit/workspace-projects' +import { workspaceProjects, workspaceProjectsSync } from 'workspace-projects' workspaceProjects() // or @@ -42,7 +42,7 @@ workspaceProjectsSync() use require ```js -const { workspaceProjects, workspaceProjectsSync } = require('@node-kit/workspace-projects') +const { workspaceProjects, workspaceProjectsSync } = require('workspace-projects') workspaceProjects() // or @@ -75,7 +75,7 @@ declare function workspaceProjectsSync(cwd?: string): string[] | null 1. simple use ```ts -import { workspaceProjects, workspaceProjectsSync } from '@node-kit/workspace-projects' +import { workspaceProjects, workspaceProjectsSync } from 'workspace-projects' workspaceProjects().then(data => { console.log('The workspace projects is: ', data) // [ 'packages/utils', 'packages/monorepo-root' ] diff --git a/packages/workspace-projects/package.json b/packages/workspace-projects/package.json index 6731796..5b53601 100644 --- a/packages/workspace-projects/package.json +++ b/packages/workspace-projects/package.json @@ -1,7 +1,7 @@ { "name": "workspace-projects", "description": "A simple utility to get the workspace project list", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/workspace-root/README.md b/packages/workspace-root/README.md index d342129..f76c89d 100644 --- a/packages/workspace-root/README.md +++ b/packages/workspace-root/README.md @@ -32,7 +32,7 @@ $ npm install -D workspace-root use import ```js -import { workspaceRoot, workspaceRootSync } from '@node-kit/workspace-root' +import { workspaceRoot, workspaceRootSync } from 'workspace-root' workspaceRoot() // or @@ -42,7 +42,7 @@ workspaceRootSync() use require ```js -const { workspaceRoot, workspaceRootSync } = require('@node-kit/workspace-root') +const { workspaceRoot, workspaceRootSync } = require('workspace-root') workspaceRoot() // or @@ -75,7 +75,7 @@ declare function workspaceRootSync(cwd?: string): string | null 1. simple use ```ts -import { workspaceRoot, workspaceRootSync } from '@node-kit/workspace-root' +import { workspaceRoot, workspaceRootSync } from 'workspace-root' workspaceRoot().then(path => { console.log('The workspace root is: ', path) // /Users/user/path/of/package/root or null diff --git a/packages/workspace-root/package.json b/packages/workspace-root/package.json index 097afa8..f7fc6c7 100644 --- a/packages/workspace-root/package.json +++ b/packages/workspace-root/package.json @@ -1,7 +1,7 @@ { "name": "workspace-root", "description": "A simple utility to get the workspace root", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/yarn-workspace-info/package.json b/packages/yarn-workspace-info/package.json index 834f579..47bea1a 100644 --- a/packages/yarn-workspace-info/package.json +++ b/packages/yarn-workspace-info/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/yarn-workspace-info", "description": "A simple utility to get the yarn workspace information", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts", diff --git a/packages/yarn-workspace-root/package.json b/packages/yarn-workspace-root/package.json index d33ec70..682c05f 100644 --- a/packages/yarn-workspace-root/package.json +++ b/packages/yarn-workspace-root/package.json @@ -1,7 +1,7 @@ { "name": "@node-kit/yarn-workspace-root", "description": "A simple utility to get the yarn workspace root", - "version": "3.3.0", + "version": "3.3.1", "main": "dist/index.cjs.js", "module": "dist/index.esm-bundler.js", "types": "dist/index.d.ts",