Skip to content

Commit

Permalink
release 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Nov 21, 2024
1 parent 1966153 commit a8a8349
Show file tree
Hide file tree
Showing 24 changed files with 2,192 additions and 2,670 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Logs

## 2024.11.21 v3.3.0

1. compatible for yarn workspaces.nohoist
2. Detect bun

## 2023.08.28 v3.2.0

1. fix bugs
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/monorepo",
"description": "Some simple utilities for nodejs",
"version": "3.2.0",
"version": "3.3.0",
"packageManager": "pnpm@8.6.12",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/extra/cp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/extra.cp",
"description": "Some shared extra utilities for nodejs build-in child_process modules",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/extra/fs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/extra.fs",
"description": "Some shared extra utilities for nodejs build-in fs modules",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/extra/path/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/extra.path",
"description": "Some shared extra utilities for nodejs build-in path modules",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/lerna-workspace-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/lerna-workspace-info",
"description": "A simple utility to get the lerna workspace information",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/lerna-workspace-root/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/lerna-workspace-root",
"description": "A simple utility to get the lerna workspace root",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/lerna-workspace-root/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export async function lernaWorkspaceRoot(cwd: string = process.cwd()): Promise<s
? join(workspaceManifestDirEnvVar, WORKSPACE_MANIFEST_FILENAME)
: await findUp(WORKSPACE_MANIFEST_FILENAME, {
cwd: await getRealPath(cwd)
})
})

return (workspaceManifestPath && dirname(workspaceManifestPath)) || null
}
Expand All @@ -36,7 +36,7 @@ export function lernaWorkspaceRootSync(cwd: string = process.cwd()): string | nu
? join(workspaceManifestDirEnvVar, WORKSPACE_MANIFEST_FILENAME)
: findUp.sync(WORKSPACE_MANIFEST_FILENAME, {
cwd: getRealPathSync(cwd)
})
})

return (workspaceManifestPath && dirname(workspaceManifestPath)) || null
}
2 changes: 1 addition & 1 deletion packages/monorepo-root/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "monorepo-root",
"description": "A simple utility to get the monorepo root",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/os-lang/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "os-lang",
"description": "Get the system lang",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pm-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pm-info",
"description": "A simple utility to get the package manager information which used in the project",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pnpm-workspace-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/pnpm-workspace-info",
"description": "A simple utility to get the pnpm workspace information",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/pnpm-workspace-root/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/pnpm-workspace-root",
"description": "A simple utility to get the pnpm workspace root",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/pnpm-workspace-root/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function pnpmWorkspaceRoot(cwd: string = process.cwd()): Promise<st
? join(workspaceManifestDirEnvVar, 'pnpm-workspace.yaml')
: await findUp([WORKSPACE_MANIFEST_FILENAME, 'pnpm-workspace.yml'], {
cwd: await getRealPath(cwd)
})
})
if (workspaceManifestPath?.endsWith('.yml')) {
throw new PnpmError(
'BAD_WORKSPACE_MANIFEST_NAME',
Expand All @@ -42,7 +42,7 @@ export function pnpmWorkspaceRootSync(cwd: string = process.cwd()): string | nul
? join(workspaceManifestDirEnvVar, 'pnpm-workspace.yaml')
: findUp.sync([WORKSPACE_MANIFEST_FILENAME, 'pnpm-workspace.yml'], {
cwd: getRealPathSync(cwd)
})
})
if (workspaceManifestPath?.endsWith('.yml')) {
throw new PnpmError(
'BAD_WORKSPACE_MANIFEST_NAME',
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/utils",
"description": "Some shared utilities",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/what-pm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "what-pm",
"description": "Detects what package manager was used for installation",
"version": "3.2.0",
"version": "3.3.0",
"bin": {
"what-pm": "./bin/index.mjs",
"whatpm": "./bin/index.mjs"
Expand Down
2 changes: 1 addition & 1 deletion packages/which-pm/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/which-pm",
"description": "A simple utility to get which package manager used in the project",
"version": "3.2.0",
"version": "3.3.0",
"bin": {
"which-pm": "./bin/index.mjs",
"whichpm": "./bin/index.mjs"
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/workspace-info",
"description": "A simple utility to get the workspace information",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-pkgs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace-pkgs",
"description": "A simple utility to get the workspace project list",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-projects/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace-projects",
"description": "A simple utility to get the workspace project list",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace-root/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "workspace-root",
"description": "A simple utility to get the workspace root",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/yarn-workspace-info/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/yarn-workspace-info",
"description": "A simple utility to get the yarn workspace information",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/yarn-workspace-root/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@node-kit/yarn-workspace-root",
"description": "A simple utility to get the yarn workspace root",
"version": "3.2.0",
"version": "3.3.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm-bundler.js",
"types": "dist/index.d.ts",
Expand Down
Loading

0 comments on commit a8a8349

Please sign in to comment.