@visulima/package 3.0.8 → 3.0.10
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.mjs +1 -1
- package/dist/monorepo.mjs +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-4CX3Vfcu.mjs +1 -0
- package/dist/shared/PackageNotFoundError-CY57YCot.cjs +1 -0
- package/package.json +23 -6
- package/dist/shared/PackageNotFoundError-BRtVciFa.cjs +0 -1
- package/dist/shared/PackageNotFoundError-DchpQZes.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
## @visulima/package [3.0.10](https://github.com/visulima/visulima/compare/@visulima/package@3.0.9...@visulima/package@3.0.10) (2024-09-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* fixed broken chunk splitting from packem ([1aaf277](https://github.com/visulima/visulima/commit/1aaf27779292d637923c5f8a220e18606e78caa2))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/fs:** upgraded to 2.1.16
|
|
11
|
+
* **@visulima/path:** upgraded to 1.0.7
|
|
12
|
+
|
|
13
|
+
## @visulima/package [3.0.9](https://github.com/visulima/visulima/compare/@visulima/package@3.0.8...@visulima/package@3.0.9) (2024-09-07)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* added types support for node10 ([604583f](https://github.com/visulima/visulima/commit/604583fa3c24b950fafad45d17e7a1333040fd76))
|
|
18
|
+
|
|
19
|
+
### Styles
|
|
20
|
+
|
|
21
|
+
* cs fixes ([f5c4af7](https://github.com/visulima/visulima/commit/f5c4af7cfa9fc79b6d3fa60c1e48d88bffab5a08))
|
|
22
|
+
|
|
23
|
+
### Miscellaneous Chores
|
|
24
|
+
|
|
25
|
+
* update dev dependencies ([0738f98](https://github.com/visulima/visulima/commit/0738f9810478bb215ce4b2571dc8874c4c503089))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Dependencies
|
|
29
|
+
|
|
30
|
+
* **@visulima/fs:** upgraded to 2.1.15
|
|
31
|
+
* **@visulima/path:** upgraded to 1.0.6
|
|
32
|
+
|
|
1
33
|
## @visulima/package [3.0.8](https://github.com/visulima/visulima/compare/@visulima/package@3.0.7...@visulima/package@3.0.8) (2024-08-30)
|
|
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/PackageNotFoundError-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./shared/PackageNotFoundError-CY57YCot.cjs");exports.PackageNotFoundError=r;
|
package/dist/error.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{default as a}from"./shared/PackageNotFoundError-4CX3Vfcu.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/PackageNotFoundError-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./shared/PackageNotFoundError-CY57YCot.cjs"),n=require("./monorepo.cjs"),o=require("./package.cjs"),e=require("./package-json.cjs"),a=require("./package-manager.cjs");exports.PackageNotFoundError=c;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.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{default as e}from"./shared/PackageNotFoundError-4CX3Vfcu.mjs";import{findMonorepoRoot as r,findMonorepoRootSync as c}from"./monorepo.mjs";import{findPackageRoot as g,findPackageRootSync as f}from"./package.mjs";import{findPackageJson as k,findPackageJsonSync as d,parsePackageJson as P,writePackageJson as p,writePackageJsonSync as s}from"./package-json.mjs";import{findLockFile as M,findLockFileSync as S,findPackageManager as m,findPackageManagerSync as x,getPackageManagerVersion as J,identifyInitiatingPackageManager as R}from"./package-manager.mjs";export{e as PackageNotFoundError,M as findLockFile,S as findLockFileSync,r as findMonorepoRoot,c as findMonorepoRootSync,k as findPackageJson,d as findPackageJsonSync,m as findPackageManager,x as findPackageManagerSync,g as findPackageRoot,f as findPackageRootSync,J as getPackageManagerVersion,R as identifyInitiatingPackageManager,P as parsePackageJson,p as writePackageJson,s 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{findPackageManager as w,findPackageManagerSync 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:e}=await w(r);if(["npm","yarn"].includes(o)){const a=t(e,"package.json");if(p(a)&&i(t(e,"package.json"),"utf8").includes("workspaces"))return{path:e,strategy:s?"turbo":o}}else if(o==="pnpm"){const a=t(e,"pnpm-workspace.yaml");if(p(a))return{path:e,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:e}=k(r);if(["npm","yarn"].includes(o)){const a=t(e,"package.json");if(p(a)&&i(t(e,"package.json"),"utf8").includes("workspaces"))return{path:e,strategy:s?"turbo":o}}else if(o==="pnpm"){const a=t(e,"pnpm-workspace.yaml");if(p(a))return{path:e,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{E as findMonorepoRoot,N as findMonorepoRootSync};
|
package/dist/package-json.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var h=Object.defineProperty;var p=(
|
|
1
|
+
var h=Object.defineProperty;var p=(c,n)=>h(c,"name",{value:n,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 d}from"@visulima/fs/error";import{toPath as g,parseJson as j}from"@visulima/fs/utils";import{join as w}from"@visulima/path";import i from"normalize-package-data";var S=Object.defineProperty,s=p((c,n)=>S(c,"name",{value:n,configurable:!0}),"s");const y=new Map,U=s(async(c,n={})=>{const e={type:"file"};c&&(e.cwd=c);const a=await J("package.json",e);if(!a)throw new d("No such file or directory, for package.json found.");const o=n.cache&&typeof n.cache!="boolean"?n.cache:y;if(n.cache&&o.has(a))return o.get(a);const t=await u(a);i(t);const r={packageJson:t,path:a};return o.set(a,r),r},"findPackageJson"),C=s((c,n={})=>{const e={type:"file"};c&&(e.cwd=c);const a=l("package.json",e);if(!a)throw new d("No such file or directory, for package.json found.");const o=n.cache&&typeof n.cache!="boolean"?n.cache:y;if(n.cache&&o.has(a))return o.get(a);const t=f(a);i(t);const r={packageJson:t,path:a};return o.set(a,r),r},"findPackageJsonSync"),M=s(async(c,n={})=>{const{cwd:e,...a}=n,o=g(n.cwd??process.cwd());await m(w(o,"package.json"),c,a)},"writePackageJson"),O=s((c,n={})=>{const{cwd:e,...a}=n,o=g(n.cwd??process.cwd());P(w(o,"package.json"),c,a)},"writePackageJsonSync"),T=s(c=>{const n=c!==null&&typeof c=="object"&&!Array.isArray(c);if(!n&&typeof c!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");const e=n?structuredClone(c):k(c)?f(c):j(c);return i(e),e},"parsePackageJson");export{U as findPackageJson,C as findPackageJsonSync,T as parsePackageJson,M as writePackageJson,O as writePackageJsonSync};
|
package/dist/package-manager.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var u=Object.defineProperty;var g=(n,
|
|
1
|
+
var u=Object.defineProperty;var g=(n,e)=>u(n,"name",{value:e,configurable:!0});import{execSync as h}from"node:child_process";import{existsSync as p,readFileSync as y}from"node:fs";import{findUp as s,findUpSync as k}from"@visulima/fs";import{NotFoundError as f}from"@visulima/fs/error";import{join as c,dirname as i}from"@visulima/path";import{parsePackageJson as d}from"./package-json.mjs";var M=Object.defineProperty,r=g((n,e)=>M(n,"name",{value:e,configurable:!0}),"e");const o=["yarn.lock","package-lock.json","pnpm-lock.yaml","npm-shrinkwrap.json","bun.lockb"],l=r(n=>{let e;if(o.forEach(t=>{!e&&p(c(n,t))&&(e=c(n,t))}),e)return e;const a=c(n,"package.json");if(p(a)&&d(y(a,"utf8")).packageManager!==void 0)return a},"packageMangerFindUpMatcher"),m=r(n=>{if(!n)throw new f("Could not find a package manager");if(n.endsWith("package.json")){const e=d(n);if(e.packageManager){const a=["npm","yarn","pnpm","bun"].find(t=>e.packageManager.startsWith(t));if(a)return{packageManager:a,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 f("Could not find a package manager")},"findPackageManagerOnFile"),W=r(async n=>{const e=await s(o,{type:"file",...n&&{cwd:n}});if(!e)throw new Error("Could not find lock file");return e},"findLockFile"),x=r(n=>{const e=k(o,{type:"file",...n&&{cwd:n}});if(!e)throw new Error("Could not find lock file");return e},"findLockFileSync"),_=r(async n=>{const e=await s(l,{...n&&{cwd:n}});return m(e)},"findPackageManager"),C=r(n=>{const e=k(l,{...n&&{cwd:n}});return m(e)},"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],e=n.lastIndexOf("/"),a=n.slice(0,Math.max(0,e));return{name:a==="npminstall"?"cnpm":a,version:n.slice(Math.max(0,e+1))}},"identifyInitiatingPackageManager");export{W as findLockFile,x as findLockFileSync,_ as findPackageManager,C as findPackageManagerSync,E as getPackageManagerVersion,L as identifyInitiatingPackageManager};
|
package/dist/package.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var p=Object.defineProperty;var
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=Object.defineProperty;var o=(a,e)=>t(a,"name",{value:e,configurable:!0});import{findPackageManagerSync as n}from"../package-manager.mjs";var c=Object.defineProperty,i=o((a,e)=>c(a,"name",{value:e,configurable:!0}),"t");class g extends Error{static{o(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{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
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")}}module.exports=i;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/package",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.10",
|
|
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.16",
|
|
139
|
+
"@visulima/path": "1.0.7",
|
|
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
149
|
"@pnpm/exe": "^9.9.0",
|
|
134
150
|
"@rushstack/eslint-plugin-security": "^0.8.2",
|
|
135
|
-
"@total-typescript/ts-reset": "^0.6.
|
|
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.95",
|
|
139
155
|
"@vitest/coverage-v8": "^2.0.5",
|
|
140
156
|
"@vitest/ui": "^2.0.5",
|
|
141
157
|
"@yarnpkg/pnp": "4.0.6",
|
|
@@ -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
|
-
"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;
|
|
@@ -1 +0,0 @@
|
|
|
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};
|