@visulima/package 3.4.5 → 3.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,29 @@
1
+ ## @visulima/package [3.4.7](https://github.com/visulima/visulima/compare/@visulima/package@3.4.6...@visulima/package@3.4.7) (2025-01-25)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * updated all dev dependencies ([37fb298](https://github.com/visulima/visulima/commit/37fb298b2af7c63be64252024e54bb3af6ddabec))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/fs:** upgraded to 3.0.0
11
+
12
+ ## @visulima/package [3.4.6](https://github.com/visulima/visulima/compare/@visulima/package@3.4.5...@visulima/package@3.4.6) (2025-01-22)
13
+
14
+ ### Bug Fixes
15
+
16
+ * **package:** updated @inquirer/confirm to ^5.1.3 and all dev deps ([c8affca](https://github.com/visulima/visulima/commit/c8affca010f813d6690df281efa646b5c06c1b48))
17
+
18
+ ### Miscellaneous Chores
19
+
20
+ * lock file update, added dedupe lint command ([5ba7093](https://github.com/visulima/visulima/commit/5ba7093fefaca7ed2fce6b0cf6069a53c300456a))
21
+
22
+
23
+ ### Dependencies
24
+
25
+ * **@visulima/fs:** upgraded to 2.3.8
26
+
1
27
  ## @visulima/package [3.4.5](https://github.com/visulima/visulima/compare/@visulima/package@3.4.4...@visulima/package@3.4.5) (2025-01-16)
2
28
 
3
29
  ### Bug Fixes
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PackageNotFoundError } from './error.cjs';
2
2
  export { RootMonorepo, Strategy, findMonorepoRoot, findMonorepoRootSync } from './monorepo.cjs';
3
3
  export { findPackageRoot, findPackageRootSync } from './package.cjs';
4
- export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.cjs';
4
+ export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.cjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, generateMissingPackagesInstallMessage, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.cjs';
6
6
  import '@visulima/fs';
7
7
  import '@antfu/install-pkg';
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PackageNotFoundError } from './error.mjs';
2
2
  export { RootMonorepo, Strategy, findMonorepoRoot, findMonorepoRootSync } from './monorepo.mjs';
3
3
  export { findPackageRoot, findPackageRootSync } from './package.mjs';
4
- export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.mjs';
4
+ export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.mjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, generateMissingPackagesInstallMessage, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.mjs';
6
6
  import '@visulima/fs';
7
7
  import '@antfu/install-pkg';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { PackageNotFoundError } from './error.js';
2
2
  export { RootMonorepo, Strategy, findMonorepoRoot, findMonorepoRootSync } from './monorepo.js';
3
3
  export { findPackageRoot, findPackageRootSync } from './package.js';
4
- export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.d.mjs';
4
+ export { E as EnsurePackagesOptions, F as FindPackageJsonCache, d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.d.mjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, generateMissingPackagesInstallMessage, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.js';
6
6
  import '@visulima/fs';
7
7
  import '@antfu/install-pkg';
@@ -1,4 +1,4 @@
1
- export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.cjs';
1
+ export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.cjs';
2
2
  import '@visulima/fs';
3
3
  import '@antfu/install-pkg';
4
4
  import 'normalize-package-data';
@@ -1,4 +1,4 @@
1
- export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.mjs';
1
+ export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.mjs';
2
2
  import '@visulima/fs';
3
3
  import '@antfu/install-pkg';
4
4
  import 'normalize-package-data';
@@ -1,4 +1,4 @@
1
- export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-j0Ka-1GU.d.mjs';
1
+ export { F as FindPackageJsonCache, N as NormalizedReadResult, e as ensurePackages, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, h as hasPackageJsonAnyDependency, b as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, c as writePackageJsonSync } from './packem_shared/package-json-BRauYh0w.d.mjs';
2
2
  import '@visulima/fs';
3
3
  import '@antfu/install-pkg';
4
4
  import 'normalize-package-data';
@@ -417,9 +417,11 @@ If `<Fill>` is not provided, it will default to `unknown`.
417
417
 
418
418
  @link https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f
419
419
  */
420
- type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = T['length'] extends L
421
- ? T
422
- : BuildTuple<L, Fill, [...T, Fill]>;
420
+ type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = number extends L
421
+ ? Fill[]
422
+ : L extends T['length']
423
+ ? T
424
+ : BuildTuple<L, Fill, [...T, Fill]>;
423
425
 
424
426
  /**
425
427
  Returns the maximum value from a tuple of integers.
@@ -417,9 +417,11 @@ If `<Fill>` is not provided, it will default to `unknown`.
417
417
 
418
418
  @link https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f
419
419
  */
420
- type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = T['length'] extends L
421
- ? T
422
- : BuildTuple<L, Fill, [...T, Fill]>;
420
+ type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = number extends L
421
+ ? Fill[]
422
+ : L extends T['length']
423
+ ? T
424
+ : BuildTuple<L, Fill, [...T, Fill]>;
423
425
 
424
426
  /**
425
427
  Returns the maximum value from a tuple of integers.
@@ -417,9 +417,11 @@ If `<Fill>` is not provided, it will default to `unknown`.
417
417
 
418
418
  @link https://itnext.io/implementing-arithmetic-within-typescripts-type-system-a1ef140a6f6f
419
419
  */
420
- type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = T['length'] extends L
421
- ? T
422
- : BuildTuple<L, Fill, [...T, Fill]>;
420
+ type BuildTuple<L extends number, Fill = unknown, T extends readonly unknown[] = []> = number extends L
421
+ ? Fill[]
422
+ : L extends T['length']
423
+ ? T
424
+ : BuildTuple<L, Fill, [...T, Fill]>;
423
425
 
424
426
  /**
425
427
  Returns the maximum value from a tuple of integers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/package",
3
- "version": "3.4.5",
3
+ "version": "3.4.7",
4
4
  "description": "One Package to rule them all, finds your root-dir, monorepo, or package manager.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -145,51 +145,11 @@
145
145
  "LICENSE.md"
146
146
  ],
147
147
  "dependencies": {
148
- "@visulima/fs": "2.3.7",
148
+ "@antfu/install-pkg": "^1.0.0",
149
+ "@inquirer/confirm": "^5.1.3",
150
+ "@visulima/fs": "3.0.0",
149
151
  "@visulima/path": "1.3.3",
150
- "normalize-package-data": "^7.0.0",
151
- "@inquirer/confirm": "^5.1.2",
152
- "@antfu/install-pkg": "^1.0.0"
153
- },
154
- "devDependencies": {
155
- "@inquirer/core": "^10.1.3",
156
- "@inquirer/type": "^3.0.2",
157
- "@anolilab/eslint-config": "^15.0.3",
158
- "@anolilab/prettier-config": "^5.0.14",
159
- "@anolilab/semantic-release-pnpm": "^1.1.6",
160
- "@anolilab/semantic-release-preset": "^9.0.3",
161
- "@arethetypeswrong/cli": "^0.17.2",
162
- "@babel/core": "^7.26.0",
163
- "@pnpm/exe": "^9.15.3",
164
- "@rushstack/eslint-plugin-security": "^0.8.3",
165
- "@total-typescript/ts-reset": "^0.6.1",
166
- "@types/node": "18.19.15",
167
- "@types/normalize-package-data": "^2.4.4",
168
- "@visulima/packem": "1.10.7",
169
- "@vitest/coverage-v8": "^2.1.8",
170
- "@vitest/ui": "^2.1.8",
171
- "@yarnpkg/pnp": "4.0.8",
172
- "conventional-changelog-conventionalcommits": "8.0.0",
173
- "cross-env": "^7.0.3",
174
- "dot-prop": "^9.0.0",
175
- "esbuild": "0.24.2",
176
- "eslint": "8.57.0",
177
- "eslint-plugin-deprecation": "^3.0.0",
178
- "eslint-plugin-etc": "^2.0.3",
179
- "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
180
- "eslint-plugin-mdx": "^3.1.5",
181
- "eslint-plugin-vitest": "^0.4.1",
182
- "eslint-plugin-vitest-globals": "^1.5.0",
183
- "execa": "^9.5.2",
184
- "npm": "^11.0.0",
185
- "prettier": "^3.4.2",
186
- "rimraf": "6.0.1",
187
- "semantic-release": "24.2.1",
188
- "tempy": "^3.1.0",
189
- "type-fest": "^4.32.0",
190
- "typescript": "5.7.3",
191
- "vitest": "^2.1.8",
192
- "yarn": "^1.22.22"
152
+ "normalize-package-data": "^7.0.0"
193
153
  },
194
154
  "engines": {
195
155
  "node": ">=18.* <=23.*"
@@ -202,34 +162,5 @@
202
162
  "publishConfig": {
203
163
  "access": "public",
204
164
  "provenance": true
205
- },
206
- "anolilab": {
207
- "eslint-config": {
208
- "plugin": {
209
- "tsdoc": false
210
- },
211
- "warn_on_unsupported_typescript_version": false,
212
- "info_on_disabling_jsx_react_rule": false,
213
- "info_on_disabling_prettier_conflict_rule": false,
214
- "info_on_disabling_jsonc_sort_keys_rule": false,
215
- "info_on_disabling_etc_no_deprecated": false
216
- }
217
- },
218
- "scripts": {
219
- "build": "cross-env NODE_ENV=development packem build",
220
- "build:prod": "cross-env NODE_ENV=production packem build",
221
- "clean": "rimraf node_modules dist .eslintcache",
222
- "dev": "cross-env NODE_ENV=development packem build --watch",
223
- "lint:attw": "attw --pack",
224
- "lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
225
- "lint:eslint:fix": "pnpm run lint:eslint --fix",
226
- "lint:package-json": "publint --strict",
227
- "lint:prettier": "prettier --config=.prettierrc.cjs --check .",
228
- "lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
229
- "lint:types": "tsc --noEmit",
230
- "test": "vitest run",
231
- "test:coverage": "vitest run --coverage",
232
- "test:ui": "vitest --ui --coverage.enabled=true",
233
- "test:watch": "vitest"
234
165
  }
235
166
  }