@visulima/package 3.0.7 → 3.0.9
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 +32 -0
- package/dist/error.cjs +1 -1
- package/dist/error.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/monorepo.mjs +1 -1
- package/dist/package-json.d.cts +1 -1
- package/dist/package-json.d.mts +1 -1
- package/dist/package-json.d.ts +1 -1
- package/dist/package-json.mjs +1 -1
- package/dist/package-manager.mjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/shared/PackageNotFoundError-BRtVciFa.cjs +1 -0
- package/dist/shared/PackageNotFoundError-DchpQZes.mjs +1 -0
- package/package.json +27 -10
- package/dist/shared/package.DvbNGF15.mjs +0 -1
- package/dist/shared/package.Xn4v2Y_g.cjs +0 -1
- /package/dist/shared/{package.CEeDTVje.d.cts → package-json-CEeDTVje.d.cts} +0 -0
- /package/dist/shared/{package.CEeDTVje.d.mts → package-json-CEeDTVje.d.mjs} +0 -0
- /package/dist/shared/{package.CEeDTVje.d.ts → package-json-CEeDTVje.d.mts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## @visulima/package [3.0.9](https://github.com/visulima/visulima/compare/@visulima/package@3.0.8...@visulima/package@3.0.9) (2024-09-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* added types support for node10 ([604583f](https://github.com/visulima/visulima/commit/604583fa3c24b950fafad45d17e7a1333040fd76))
|
|
6
|
+
|
|
7
|
+
### Styles
|
|
8
|
+
|
|
9
|
+
* cs fixes ([f5c4af7](https://github.com/visulima/visulima/commit/f5c4af7cfa9fc79b6d3fa60c1e48d88bffab5a08))
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* update dev dependencies ([0738f98](https://github.com/visulima/visulima/commit/0738f9810478bb215ce4b2571dc8874c4c503089))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* **@visulima/fs:** upgraded to 2.1.15
|
|
19
|
+
* **@visulima/path:** upgraded to 1.0.6
|
|
20
|
+
|
|
21
|
+
## @visulima/package [3.0.8](https://github.com/visulima/visulima/compare/@visulima/package@3.0.7...@visulima/package@3.0.8) (2024-08-30)
|
|
22
|
+
|
|
23
|
+
### Miscellaneous Chores
|
|
24
|
+
|
|
25
|
+
* updated dev dependencies ([45c2a76](https://github.com/visulima/visulima/commit/45c2a76bc974ecb2c6b172c3af03373d4cc6a5ce))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* **@visulima/fs:** upgraded to 2.1.14
|
|
31
|
+
* **@visulima/path:** upgraded to 1.0.5
|
|
32
|
+
|
|
1
33
|
## @visulima/package [3.0.7](https://github.com/visulima/visulima/compare/@visulima/package@3.0.6...@visulima/package@3.0.7) (2024-08-08)
|
|
2
34
|
|
|
3
35
|
### Miscellaneous Chores
|
package/dist/error.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/PackageNotFoundError-BRtVciFa.cjs");exports.PackageNotFoundError=r.u;
|
package/dist/error.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as a}from"./shared/
|
|
1
|
+
import{u as a}from"./shared/PackageNotFoundError-DchpQZes.mjs";export{a as PackageNotFoundError};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./shared/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./shared/PackageNotFoundError-BRtVciFa.cjs"),n=require("./monorepo.cjs"),o=require("./package.cjs"),e=require("./package-json.cjs"),a=require("./package-manager.cjs");exports.PackageNotFoundError=c.u;exports.findMonorepoRoot=n.findMonorepoRoot;exports.findMonorepoRootSync=n.findMonorepoRootSync;exports.findPackageRoot=o.findPackageRoot;exports.findPackageRootSync=o.findPackageRootSync;exports.findPackageJson=e.findPackageJson;exports.findPackageJsonSync=e.findPackageJsonSync;exports.parsePackageJson=e.parsePackageJson;exports.writePackageJson=e.writePackageJson;exports.writePackageJsonSync=e.writePackageJsonSync;exports.findLockFile=a.findLockFile;exports.findLockFileSync=a.findLockFileSync;exports.findPackageManager=a.findPackageManager;exports.findPackageManagerSync=a.findPackageManagerSync;exports.getPackageManagerVersion=a.getPackageManagerVersion;exports.identifyInitiatingPackageManager=a.identifyInitiatingPackageManager;
|
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 { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
4
|
+
export { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.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 { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
4
|
+
export { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.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 { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
4
|
+
export { c as NormalizedPackageJson, N as NormalizedReadResult, P as PackageJson, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.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';
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as n}from"./shared/
|
|
1
|
+
import{u as n}from"./shared/PackageNotFoundError-DchpQZes.mjs";import{f as r,a as s}from"./monorepo.mjs";import{f as i,a as f}from"./package.mjs";import{f as t,a as k,p as d,w as P,b as p}from"./package-json.mjs";import{f as M,a as S,b as m,c as x,g as J,i as R}from"./package-manager.mjs";export{n as PackageNotFoundError,M as findLockFile,S as findLockFileSync,r as findMonorepoRoot,s as findMonorepoRootSync,t as findPackageJson,k as findPackageJsonSync,m as findPackageManager,x as findPackageManagerSync,i as findPackageRoot,f as findPackageRootSync,J as getPackageManagerVersion,R as identifyInitiatingPackageManager,d as parsePackageJson,P as writePackageJson,p as writePackageJsonSync};
|
package/dist/monorepo.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m=Object.defineProperty;var c=(r,n)=>m(r,"name",{value:n,configurable:!0});import{existsSync as p,readFileSync as i}from"node:fs";import{findUp as y,readJson as g,findUpSync as l,readJsonSync as h}from"@visulima/fs";import{NotFoundError as f}from"@visulima/fs/error";import{dirname as d,join as t}from"@visulima/path";import{
|
|
1
|
+
var m=Object.defineProperty;var c=(r,n)=>m(r,"name",{value:n,configurable:!0});import{existsSync as p,readFileSync as i}from"node:fs";import{findUp as y,readJson as g,findUpSync as l,readJsonSync as h}from"@visulima/fs";import{NotFoundError as f}from"@visulima/fs/error";import{dirname as d,join as t}from"@visulima/path";import{b as w,c as k}from"./package-manager.mjs";var j=Object.defineProperty,u=c((r,n)=>j(r,"name",{value:n,configurable:!0}),"i");const E=u(async r=>{const n=await y(["lerna.json","turbo.json"],{type:"file",...r&&{cwd:r}});if(n?.endsWith("lerna.json")){const o=await g(n);if(o.useWorkspaces||o.packages)return{path:d(n),strategy:"lerna"}}const s=n?.endsWith("turbo.json");try{const{packageManager:o,path:a}=await w(r);if(["npm","yarn"].includes(o)){const e=t(a,"package.json");if(p(e)&&i(t(a,"package.json"),"utf8").includes("workspaces"))return{path:a,strategy:s?"turbo":o}}else if(o==="pnpm"){const e=t(a,"pnpm-workspace.yaml");if(p(e))return{path:a,strategy:s?"turbo":"pnpm"}}}catch(o){if(!(o instanceof f))throw o}throw new Error(`No monorepo root could be found upwards from the directory ${r} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRoot"),N=u(r=>{const n=l(["lerna.json","turbo.json"],{type:"file",...r&&{cwd:r}});if(n?.endsWith("lerna.json")){const o=h(n);if(o.useWorkspaces||o.packages)return{path:d(n),strategy:"lerna"}}const s=n?.endsWith("turbo.json");try{const{packageManager:o,path:a}=k(r);if(["npm","yarn"].includes(o)){const e=t(a,"package.json");if(p(e)&&i(t(a,"package.json"),"utf8").includes("workspaces"))return{path:a,strategy:s?"turbo":o}}else if(o==="pnpm"){const e=t(a,"pnpm-workspace.yaml");if(p(e))return{path:a,strategy:s?"turbo":"pnpm"}}}catch(o){if(!(o instanceof f))throw o}throw new Error(`No monorepo root could be found upwards from the directory ${r} using lerna, yarn, pnpm, or npm as indicators.`)},"findMonorepoRootSync");export{N as a,E as f};
|
package/dist/package-json.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
1
|
+
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.cjs';
|
|
2
2
|
import '@visulima/fs';
|
|
3
3
|
import 'normalize-package-data';
|
package/dist/package-json.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
1
|
+
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.mjs';
|
|
2
2
|
import '@visulima/fs';
|
|
3
3
|
import 'normalize-package-data';
|
package/dist/package-json.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package
|
|
1
|
+
export { N as NormalizedReadResult, f as findPackageJson, a as findPackageJsonSync, p as parsePackageJson, w as writePackageJson, b as writePackageJsonSync } from './shared/package-json-CEeDTVje.d.mjs';
|
|
2
2
|
import '@visulima/fs';
|
|
3
3
|
import 'normalize-package-data';
|
package/dist/package-json.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var h=Object.defineProperty;var p=(c
|
|
1
|
+
var h=Object.defineProperty;var p=(a,c)=>h(a,"name",{value:c,configurable:!0});import{existsSync as k}from"node:fs";import{findUp as J,readJson as u,findUpSync as l,readJsonSync as f,writeJson as m,writeJsonSync as P}from"@visulima/fs";import{NotFoundError as w}from"@visulima/fs/error";import{toPath as d,parseJson as j}from"@visulima/fs/utils";import{join as g}from"@visulima/path";import i from"normalize-package-data";var b=Object.defineProperty,s=p((a,c)=>b(a,"name",{value:c,configurable:!0}),"s");const y=new Map,U=s(async(a,c={})=>{const e={type:"file"};a&&(e.cwd=a);const n=await J("package.json",e);if(!n)throw new w("No such file or directory, for package.json found.");const o=c.cache&&typeof c.cache!="boolean"?c.cache:y;if(c.cache&&o.has(n))return o.get(n);const t=await u(n);i(t);const r={packageJson:t,path:n};return o.set(n,r),r},"findPackageJson"),C=s((a,c={})=>{const e={type:"file"};a&&(e.cwd=a);const n=l("package.json",e);if(!n)throw new w("No such file or directory, for package.json found.");const o=c.cache&&typeof c.cache!="boolean"?c.cache:y;if(c.cache&&o.has(n))return o.get(n);const t=f(n);i(t);const r={packageJson:t,path:n};return o.set(n,r),r},"findPackageJsonSync"),M=s(async(a,c={})=>{const{cwd:e,...n}=c,o=d(c.cwd??process.cwd());await m(g(o,"package.json"),a,n)},"writePackageJson"),O=s((a,c={})=>{const{cwd:e,...n}=c,o=d(c.cwd??process.cwd());P(g(o,"package.json"),a,n)},"writePackageJsonSync"),T=s(a=>{const c=a!==null&&typeof a=="object"&&!Array.isArray(a);if(!c&&typeof a!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");const e=c?structuredClone(a):k(a)?f(a):j(a);return i(e),e},"parsePackageJson");export{C as a,O as b,U as f,T as p,M as w};
|
package/dist/package-manager.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var u=Object.defineProperty;var g=(n,
|
|
1
|
+
var u=Object.defineProperty;var g=(n,a)=>u(n,"name",{value:a,configurable:!0});import{execSync as h}from"node:child_process";import{existsSync as p,readFileSync as y}from"node:fs";import{findUp as f,findUpSync as k}from"@visulima/fs";import{NotFoundError as s}from"@visulima/fs/error";import{join as c,dirname as i}from"@visulima/path";import{p as d}from"./package-json.mjs";var M=Object.defineProperty,r=g((n,a)=>M(n,"name",{value:a,configurable:!0}),"e");const o=["yarn.lock","package-lock.json","pnpm-lock.yaml","npm-shrinkwrap.json","bun.lockb"],l=r(n=>{let a;if(o.forEach(t=>{!a&&p(c(n,t))&&(a=c(n,t))}),a)return a;const e=c(n,"package.json");if(p(e)&&d(y(e,"utf8")).packageManager!==void 0)return e},"packageMangerFindUpMatcher"),m=r(n=>{if(!n)throw new s("Could not find a package manager");if(n.endsWith("package.json")){const a=d(n);if(a.packageManager){const e=["npm","yarn","pnpm","bun"].find(t=>a.packageManager.startsWith(t));if(e)return{packageManager:e,path:i(n)}}}if(n.endsWith("yarn.lock"))return{packageManager:"yarn",path:i(n)};if(n.endsWith("package-lock.json")||n.endsWith("npm-shrinkwrap.json"))return{packageManager:"npm",path:i(n)};if(n.endsWith("pnpm-lock.yaml"))return{packageManager:"pnpm",path:i(n)};if(n.endsWith("bun.lockb"))return{packageManager:"bun",path:i(n)};throw new s("Could not find a package manager")},"findPackageManagerOnFile"),W=r(async n=>{const a=await f(o,{type:"file",...n&&{cwd:n}});if(!a)throw new Error("Could not find lock file");return a},"findLockFile"),x=r(n=>{const a=k(o,{type:"file",...n&&{cwd:n}});if(!a)throw new Error("Could not find lock file");return a},"findLockFileSync"),_=r(async n=>{const a=await f(l,{...n&&{cwd:n}});return m(a)},"findPackageManager"),C=r(n=>{const a=k(l,{...n&&{cwd:n}});return m(a)},"findPackageManagerSync"),E=r(n=>h(`${n} --version`).toString("utf8").trim(),"getPackageManagerVersion"),L=r(async()=>{if(!process.env.npm_config_user_agent)return;const n=process.env.npm_config_user_agent.split(" ")[0],a=n.lastIndexOf("/"),e=n.slice(0,Math.max(0,a));return{name:e==="npminstall"?"cnpm":e,version:n.slice(Math.max(0,a+1))}},"identifyInitiatingPackageManager");export{x as a,_ as b,C as c,W as f,E as g,L as i};
|
package/dist/package.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty;var
|
|
1
|
+
var p=Object.defineProperty;var a=(n,o)=>p(n,"name",{value:o,configurable:!0});import{existsSync as y}from"node:fs";import{readJsonSync as g,findUp as c,findUpSync as f}from"@visulima/fs";import{join as s,dirname as r}from"@visulima/path";import{f as m,a as u}from"./package-manager.mjs";var w=Object.defineProperty,t=a((n,o)=>w(n,"name",{value:o,configurable:!0}),"i");const d=t(n=>{if(y(s(n,"package.json"))){const o=g(s(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 c(".git/config",{...n&&{cwd:n},type:"file"});if(o)return r(r(o));const e=await c(d,{...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(d,{...n&&{cwd:n},type:"file"});if(e)return r(e);throw new Error("Could not find root directory")},"findPackageRootSync");export{v as a,P as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var t=(a,e)=>o(a,"name",{value:e,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../package-manager.cjs");var c=Object.defineProperty,i=t((a,e)=>c(a,"name",{value:e,configurable:!0}),"t");class s extends Error{static{t(this,"u")}static{i(this,"PackageNotFoundError")}constructor(e,r){if(typeof e=="string"&&(e=[e]),e.length===0){super("Package was not found.");return}if(r===void 0)try{r=n.findPackageManagerSync().packageManager}catch{}r===void 0&&(r="npm"),super(`Package '${e.join(" ")}' was not found. Please install it using '${r} install ${e.join(" ")}'`)}get code(){return"PACKAGE_NOT_FOUND"}set code(e){throw new Error("Cannot overwrite code PACKAGE_NOT_FOUND")}get name(){return"PackageNotFoundError"}set name(e){throw new Error("Cannot overwrite name of PackageNotFoundError")}}exports.u=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var a=(o,e)=>t(o,"name",{value:e,configurable:!0});import{c as n}from"../package-manager.mjs";var c=Object.defineProperty,i=a((o,e)=>c(o,"name",{value:e,configurable:!0}),"t");class u extends Error{static{a(this,"u")}static{i(this,"PackageNotFoundError")}constructor(e,r){if(typeof e=="string"&&(e=[e]),e.length===0){super("Package was not found.");return}if(r===void 0)try{r=n().packageManager}catch{}r===void 0&&(r="npm"),super(`Package '${e.join(" ")}' was not found. Please install it using '${r} install ${e.join(" ")}'`)}get code(){return"PACKAGE_NOT_FOUND"}set code(e){throw new Error("Cannot overwrite code PACKAGE_NOT_FOUND")}get name(){return"PackageNotFoundError"}set name(e){throw new Error("Cannot overwrite name of PackageNotFoundError")}}export{u};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/package",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "One Package to rule them all, finds your root-dir, monorepo, or package manager.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -25,9 +25,12 @@
|
|
|
25
25
|
"visulima"
|
|
26
26
|
],
|
|
27
27
|
"homepage": "https://www.visulima.com/docs/package/package",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/visulima/visulima/issues"
|
|
30
|
+
},
|
|
28
31
|
"repository": {
|
|
29
32
|
"type": "git",
|
|
30
|
-
"url": "https://github.com/visulima/visulima.git",
|
|
33
|
+
"url": "git+https://github.com/visulima/visulima.git",
|
|
31
34
|
"directory": "packages/package"
|
|
32
35
|
},
|
|
33
36
|
"funding": [
|
|
@@ -113,6 +116,18 @@
|
|
|
113
116
|
"main": "dist/index.cjs",
|
|
114
117
|
"module": "dist/index.mjs",
|
|
115
118
|
"types": "dist/index.d.ts",
|
|
119
|
+
"typesVersions": {
|
|
120
|
+
"*": {
|
|
121
|
+
"*": [
|
|
122
|
+
"./dist/error.d.ts",
|
|
123
|
+
"./dist/index.d.ts",
|
|
124
|
+
"./dist/monorepo.d.ts",
|
|
125
|
+
"./dist/package-json.d.ts",
|
|
126
|
+
"./dist/package-manager.d.ts",
|
|
127
|
+
"./dist/package.d.ts"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
},
|
|
116
131
|
"files": [
|
|
117
132
|
"dist/**",
|
|
118
133
|
"README.md",
|
|
@@ -120,8 +135,8 @@
|
|
|
120
135
|
"LICENSE.md"
|
|
121
136
|
],
|
|
122
137
|
"dependencies": {
|
|
123
|
-
"@visulima/fs": "2.1.
|
|
124
|
-
"@visulima/path": "1.0.
|
|
138
|
+
"@visulima/fs": "2.1.15",
|
|
139
|
+
"@visulima/path": "1.0.6",
|
|
125
140
|
"normalize-package-data": "^6.0.2"
|
|
126
141
|
},
|
|
127
142
|
"devDependencies": {
|
|
@@ -129,13 +144,14 @@
|
|
|
129
144
|
"@anolilab/prettier-config": "^5.0.14",
|
|
130
145
|
"@anolilab/semantic-release-pnpm": "^1.1.3",
|
|
131
146
|
"@anolilab/semantic-release-preset": "^9.0.0",
|
|
147
|
+
"@arethetypeswrong/cli": "^0.15.4",
|
|
132
148
|
"@babel/core": "^7.25.2",
|
|
133
|
-
"@pnpm/exe": "^9.
|
|
149
|
+
"@pnpm/exe": "^9.9.0",
|
|
134
150
|
"@rushstack/eslint-plugin-security": "^0.8.2",
|
|
135
|
-
"@total-typescript/ts-reset": "^0.
|
|
151
|
+
"@total-typescript/ts-reset": "^0.6.1",
|
|
136
152
|
"@types/node": "18.19.15",
|
|
137
153
|
"@types/normalize-package-data": "^2.4.4",
|
|
138
|
-
"@visulima/packem": "^1.0.0-alpha.
|
|
154
|
+
"@visulima/packem": "^1.0.0-alpha.93",
|
|
139
155
|
"@vitest/coverage-v8": "^2.0.5",
|
|
140
156
|
"@vitest/ui": "^2.0.5",
|
|
141
157
|
"@yarnpkg/pnp": "4.0.6",
|
|
@@ -149,13 +165,13 @@
|
|
|
149
165
|
"eslint-plugin-mdx": "^3.1.5",
|
|
150
166
|
"eslint-plugin-vitest": "^0.4.1",
|
|
151
167
|
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
152
|
-
"execa": "^9.3.
|
|
153
|
-
"npm": "^10.8.
|
|
168
|
+
"execa": "^9.3.1",
|
|
169
|
+
"npm": "^10.8.3",
|
|
154
170
|
"prettier": "^3.3.3",
|
|
155
171
|
"rimraf": "5.0.9",
|
|
156
172
|
"semantic-release": "24.0.0",
|
|
157
173
|
"tempy": "^3.1.0",
|
|
158
|
-
"type-fest": "^4.
|
|
174
|
+
"type-fest": "^4.26.0",
|
|
159
175
|
"typescript": "5.4.5",
|
|
160
176
|
"vitest": "^2.0.5",
|
|
161
177
|
"which-pm-runs": "file:",
|
|
@@ -190,6 +206,7 @@
|
|
|
190
206
|
"build:prod": "cross-env NODE_ENV=production packem build",
|
|
191
207
|
"clean": "rimraf node_modules dist .eslintcache",
|
|
192
208
|
"dev": "cross-env NODE_ENV=development packem build --watch",
|
|
209
|
+
"lint:attw": "attw --pack",
|
|
193
210
|
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
194
211
|
"lint:eslint:fix": "pnpm run lint:eslint --fix",
|
|
195
212
|
"lint:package-json": "publint --strict",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var t=(o,e)=>a(o,"name",{value:e,configurable:!0});import{findPackageManagerSync as n}from"../package-manager.mjs";var c=Object.defineProperty,i=t((o,e)=>c(o,"name",{value:e,configurable:!0}),"t");class s extends Error{static{t(this,"u")}static{i(this,"PackageNotFoundError")}constructor(e,r){if(typeof e=="string"&&(e=[e]),e.length===0){super("Package was not found.");return}if(r===void 0)try{r=n().packageManager}catch{}r===void 0&&(r="npm"),super(`Package '${e.join(" ")}' was not found. Please install it using '${r} install ${e.join(" ")}'`)}get code(){return"PACKAGE_NOT_FOUND"}set code(e){throw new Error("Cannot overwrite code PACKAGE_NOT_FOUND")}get name(){return"PackageNotFoundError"}set name(e){throw new Error("Cannot overwrite name of PackageNotFoundError")}}const d=s;export{d as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var t=(a,e)=>o(a,"name",{value:e,configurable:!0});const n=require("../package-manager.cjs");var c=Object.defineProperty,s=t((a,e)=>c(a,"name",{value:e,configurable:!0}),"t");class i extends Error{static{t(this,"u")}static{s(this,"PackageNotFoundError")}constructor(e,r){if(typeof e=="string"&&(e=[e]),e.length===0){super("Package was not found.");return}if(r===void 0)try{r=n.findPackageManagerSync().packageManager}catch{}r===void 0&&(r="npm"),super(`Package '${e.join(" ")}' was not found. Please install it using '${r} install ${e.join(" ")}'`)}get code(){return"PACKAGE_NOT_FOUND"}set code(e){throw new Error("Cannot overwrite code PACKAGE_NOT_FOUND")}get name(){return"PackageNotFoundError"}set name(e){throw new Error("Cannot overwrite name of PackageNotFoundError")}}const u=i;exports.u=u;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|