@visulima/package 3.1.2 → 3.1.3

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,15 @@
1
+ ## @visulima/package [3.1.3](https://github.com/visulima/visulima/compare/@visulima/package@3.1.2...@visulima/package@3.1.3) (2024-10-05)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **package:** fixed typing of findup fn, update dev dependencies ([6f15edc](https://github.com/visulima/visulima/commit/6f15edceaade689df3eebc9b87dd12fd09d3bdfb))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/fs:** upgraded to 2.2.1
11
+ * **@visulima/path:** upgraded to 1.1.0
12
+
1
13
  ## @visulima/package [3.1.2](https://github.com/visulima/visulima/compare/@visulima/package@3.1.1...@visulima/package@3.1.2) (2024-09-29)
2
14
 
3
15
 
package/LICENSE.md CHANGED
@@ -23,14 +23,11 @@ SOFTWARE.
23
23
  <!-- DEPENDENCIES -->
24
24
 
25
25
  # Licenses of bundled dependencies
26
-
27
26
  The published @visulima/package artifact additionally contains code with the following licenses:
28
27
  MIT
29
28
 
30
29
  # Bundled dependencies:
31
-
32
30
  ## dot-prop
33
-
34
31
  License: MIT
35
32
  By: Sindre Sorhus
36
33
  Repository: sindresorhus/dot-prop
@@ -45,21 +42,18 @@ Repository: sindresorhus/dot-prop
45
42
  >
46
43
  > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47
44
 
48
- <!-- DEPENDENCIES -->
45
+ <!-- /DEPENDENCIES -->
49
46
 
50
47
  <!-- TYPE_DEPENDENCIES -->
51
48
 
52
49
  # Licenses of bundled types
53
-
54
50
  The published @visulima/package artifact additionally contains code with the following licenses:
55
51
  (MIT OR CC0-1.0)
56
52
 
57
53
  # Bundled types:
58
-
59
54
  ## type-fest
60
-
61
55
  License: (MIT OR CC0-1.0)
62
56
  By: Sindre Sorhus
63
57
  Repository: sindresorhus/type-fest
64
58
 
65
- <!-- TYPE_DEPENDENCIES -->
59
+ <!-- /TYPE_DEPENDENCIES -->
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 { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.cjs';
4
+ export { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, 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-DH2MJseY.cjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.cjs';
6
6
  import '@visulima/fs';
7
7
  import 'normalize-package-data';
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 { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.mjs';
4
+ export { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, 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-DH2MJseY.mjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.mjs';
6
6
  import '@visulima/fs';
7
7
  import 'normalize-package-data';
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 { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.d.mjs';
4
+ export { d as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, 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-DH2MJseY.d.mjs';
5
5
  export { PackageManager, PackageManagerResult, findLockFile, findLockFileSync, findPackageManager, findPackageManagerSync, getPackageManagerVersion, identifyInitiatingPackageManager } from './package-manager.js';
6
6
  import '@visulima/fs';
7
7
  import 'normalize-package-data';
@@ -1,3 +1,3 @@
1
- export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.cjs';
1
+ export { N as NormalizedReadResult, 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-DH2MJseY.cjs';
2
2
  import '@visulima/fs';
3
3
  import 'normalize-package-data';
@@ -1,3 +1,3 @@
1
- export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.mjs';
1
+ export { N as NormalizedReadResult, 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-DH2MJseY.mjs';
2
2
  import '@visulima/fs';
3
3
  import 'normalize-package-data';
@@ -1,3 +1,3 @@
1
- export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, g as getPackageJsonProperty, c as hasPackageJsonAnyDependency, h as hasPackageJsonProperty, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './packem_shared/package-json-_iimUQ2e.d.mjs';
1
+ export { N as NormalizedReadResult, 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-DH2MJseY.d.mjs';
2
2
  import '@visulima/fs';
3
3
  import 'normalize-package-data';
package/dist/package.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var s=Object.defineProperty;var t=(n,e)=>s(n,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("node:fs"),o=require("@visulima/fs"),r=require("@visulima/path"),d=require("./package-manager.cjs");var y=Object.defineProperty,c=t((n,e)=>y(n,"name",{value:e,configurable:!0}),"i");const f=c(n=>{if(g.existsSync(r.join(n,"package.json"))){const e=o.readJsonSync(r.join(n,"package.json"));if(e.name&&e.private!==!0)return"package.json"}},"packageJsonMatcher"),u=c(async n=>{try{const a=await d.findLockFile(n);return r.dirname(a)}catch{}const e=await o.findUp(".git/config",{...n&&{cwd:n},type:"file"});if(e)return r.dirname(r.dirname(e));const i=await o.findUp(f,{...n&&{cwd:n},type:"file"});if(i)return r.dirname(i);throw new Error("Could not find root directory")},"findPackageRoot"),p=c(n=>{try{const a=d.findLockFileSync(n);return r.dirname(a)}catch{}const e=o.findUpSync(".git/config",{...n&&{cwd:n},type:"file"});if(e)return r.dirname(r.dirname(e));const i=o.findUpSync(f,{...n&&{cwd:n},type:"file"});if(i)return r.dirname(i);throw new Error("Could not find root directory")},"findPackageRootSync");exports.findPackageRoot=u;exports.findPackageRootSync=p;
1
+ "use strict";var s=Object.defineProperty;var t=(n,e)=>s(n,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("node:fs"),o=require("@visulima/fs"),r=require("@visulima/path"),d=require("./package-manager.cjs");var y=Object.defineProperty,c=t((n,e)=>y(n,"name",{value:e,configurable:!0}),"r");const f=c(n=>{if(g.existsSync(r.join(n,"package.json"))){const e=o.readJsonSync(r.join(n,"package.json"));if(e.name&&e.private!==!0)return"package.json"}},"packageJsonMatcher"),u=c(async n=>{try{const a=await d.findLockFile(n);return r.dirname(a)}catch{}const e=await o.findUp(".git/config",{...n&&{cwd:n},type:"file"});if(e)return r.dirname(r.dirname(e));const i=await o.findUp(f,{...n&&{cwd:n},type:"file"});if(i)return r.dirname(i);throw new Error("Could not find root directory")},"findPackageRoot"),p=c(n=>{try{const a=d.findLockFileSync(n);return r.dirname(a)}catch{}const e=o.findUpSync(".git/config",{...n&&{cwd:n},type:"file"});if(e)return r.dirname(r.dirname(e));const i=o.findUpSync(f,{...n&&{cwd:n},type:"file"});if(i)return r.dirname(i);throw new Error("Could not find root directory")},"findPackageRootSync");exports.findPackageRoot=u;exports.findPackageRootSync=p;
package/dist/package.mjs CHANGED
@@ -1 +1 @@
1
- var p=Object.defineProperty;var c=(n,o)=>p(n,"name",{value:o,configurable:!0});import{existsSync as y}from"node:fs";import{readJsonSync as g,findUp as a,findUpSync as f}from"@visulima/fs";import{join as d,dirname as r}from"@visulima/path";import{findLockFile as m,findLockFileSync as u}from"./package-manager.mjs";var w=Object.defineProperty,t=c((n,o)=>w(n,"name",{value:o,configurable:!0}),"i");const s=t(n=>{if(y(d(n,"package.json"))){const o=g(d(n,"package.json"));if(o.name&&o.private!==!0)return"package.json"}},"packageJsonMatcher"),P=t(async n=>{try{const i=await m(n);return r(i)}catch{}const o=await a(".git/config",{...n&&{cwd:n},type:"file"});if(o)return r(r(o));const e=await a(s,{...n&&{cwd:n},type:"file"});if(e)return r(e);throw new Error("Could not find root directory")},"findPackageRoot"),v=t(n=>{try{const i=u(n);return r(i)}catch{}const o=f(".git/config",{...n&&{cwd:n},type:"file"});if(o)return r(r(o));const e=f(s,{...n&&{cwd:n},type:"file"});if(e)return r(e);throw new Error("Could not find root directory")},"findPackageRootSync");export{P as findPackageRoot,v as findPackageRootSync};
1
+ var p=Object.defineProperty;var c=(n,o)=>p(n,"name",{value:o,configurable:!0});import{existsSync as y}from"node:fs";import{readJsonSync as g,findUp as a,findUpSync as f}from"@visulima/fs";import{join as d,dirname as r}from"@visulima/path";import{findLockFile as m,findLockFileSync as u}from"./package-manager.mjs";var w=Object.defineProperty,t=c((n,o)=>w(n,"name",{value:o,configurable:!0}),"r");const s=t(n=>{if(y(d(n,"package.json"))){const o=g(d(n,"package.json"));if(o.name&&o.private!==!0)return"package.json"}},"packageJsonMatcher"),P=t(async n=>{try{const i=await m(n);return r(i)}catch{}const o=await a(".git/config",{...n&&{cwd:n},type:"file"});if(o)return r(r(o));const e=await a(s,{...n&&{cwd:n},type:"file"});if(e)return r(e);throw new Error("Could not find root directory")},"findPackageRoot"),v=t(n=>{try{const i=u(n);return r(i)}catch{}const o=f(".git/config",{...n&&{cwd:n},type:"file"});if(o)return r(r(o));const e=f(s,{...n&&{cwd:n},type:"file"});if(e)return r(e);throw new Error("Could not find root directory")},"findPackageRootSync");export{P as findPackageRoot,v as findPackageRootSync};
@@ -1690,4 +1690,4 @@ declare const hasPackageJsonAnyDependency: (packageJson: NormalizedPackageJson,
1690
1690
  peerDeps?: boolean;
1691
1691
  }) => boolean;
1692
1692
 
1693
- export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, writePackageJsonSync as b, hasPackageJsonAnyDependency as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonProperty as h, parsePackageJson as p, writePackageJson as w };
1693
+ export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, hasPackageJsonProperty as b, writePackageJsonSync as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonAnyDependency as h, parsePackageJson as p, writePackageJson as w };
@@ -1690,4 +1690,4 @@ declare const hasPackageJsonAnyDependency: (packageJson: NormalizedPackageJson,
1690
1690
  peerDeps?: boolean;
1691
1691
  }) => boolean;
1692
1692
 
1693
- export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, writePackageJsonSync as b, hasPackageJsonAnyDependency as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonProperty as h, parsePackageJson as p, writePackageJson as w };
1693
+ export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, hasPackageJsonProperty as b, writePackageJsonSync as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonAnyDependency as h, parsePackageJson as p, writePackageJson as w };
@@ -1690,4 +1690,4 @@ declare const hasPackageJsonAnyDependency: (packageJson: NormalizedPackageJson,
1690
1690
  peerDeps?: boolean;
1691
1691
  }) => boolean;
1692
1692
 
1693
- export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, writePackageJsonSync as b, hasPackageJsonAnyDependency as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonProperty as h, parsePackageJson as p, writePackageJson as w };
1693
+ export { type NormalizedReadResult as N, type PackageJson as P, findPackageJsonSync as a, hasPackageJsonProperty as b, writePackageJsonSync as c, type NormalizedPackageJson as d, findPackageJson as f, getPackageJsonProperty as g, hasPackageJsonAnyDependency as h, parsePackageJson as p, writePackageJson as w };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/package",
3
- "version": "3.1.2",
3
+ "version": "3.1.3",
4
4
  "description": "One Package to rule them all, finds your root-dir, monorepo, or package manager.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -145,9 +145,9 @@
145
145
  "LICENSE.md"
146
146
  ],
147
147
  "dependencies": {
148
- "@visulima/fs": "2.2.0",
149
- "@visulima/path": "1.0.9",
150
- "normalize-package-data": "^6.0.2"
148
+ "@visulima/fs": "2.2.1",
149
+ "@visulima/path": "1.1.0",
150
+ "normalize-package-data": "^7.0.0"
151
151
  },
152
152
  "devDependencies": {
153
153
  "@anolilab/eslint-config": "^15.0.3",
@@ -155,15 +155,15 @@
155
155
  "@anolilab/semantic-release-pnpm": "^1.1.3",
156
156
  "@anolilab/semantic-release-preset": "^9.0.0",
157
157
  "@arethetypeswrong/cli": "^0.16.4",
158
- "@babel/core": "^7.25.2",
159
- "@pnpm/exe": "^9.11.0",
158
+ "@babel/core": "^7.25.7",
159
+ "@pnpm/exe": "^9.12.0",
160
160
  "@rushstack/eslint-plugin-security": "^0.8.3",
161
161
  "@total-typescript/ts-reset": "^0.6.1",
162
162
  "@types/node": "18.19.15",
163
163
  "@types/normalize-package-data": "^2.4.4",
164
- "@visulima/packem": "1.0.1",
165
- "@vitest/coverage-v8": "^2.1.1",
166
- "@vitest/ui": "^2.1.1",
164
+ "@visulima/packem": "1.0.7",
165
+ "@vitest/coverage-v8": "^2.1.2",
166
+ "@vitest/ui": "^2.1.2",
167
167
  "@yarnpkg/pnp": "4.0.6",
168
168
  "conventional-changelog-conventionalcommits": "8.0.0",
169
169
  "cross-env": "^7.0.3",
@@ -177,14 +177,14 @@
177
177
  "eslint-plugin-vitest": "^0.4.1",
178
178
  "eslint-plugin-vitest-globals": "^1.5.0",
179
179
  "execa": "^9.4.0",
180
- "npm": "^10.8.3",
180
+ "npm": "^10.9.0",
181
181
  "prettier": "^3.3.3",
182
182
  "rimraf": "5.0.9",
183
183
  "semantic-release": "24.0.0",
184
184
  "tempy": "^3.1.0",
185
185
  "type-fest": "^4.26.1",
186
186
  "typescript": "5.4.5",
187
- "vitest": "^2.1.1",
187
+ "vitest": "^2.1.2",
188
188
  "which-pm-runs": "file:",
189
189
  "yarn": "^1.22.22"
190
190
  },