@visulima/package 1.10.2 → 2.0.0
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 +27 -0
- package/README.md +3 -27
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1199 -3
- package/dist/index.d.mts +1199 -3
- package/dist/index.d.ts +1199 -3
- package/dist/index.mjs +1 -1
- package/dist/package-json.d.cts +2 -21
- package/dist/package-json.d.mts +2 -21
- package/dist/package-json.d.ts +2 -21
- package/dist/shared/package.CEeDTVje.d.cts +786 -0
- package/dist/shared/package.CEeDTVje.d.mts +786 -0
- package/dist/shared/package.CEeDTVje.d.ts +786 -0
- package/package.json +5 -22
- package/dist/shared/package.CsOwsdKK.mjs +0 -1
- package/dist/shared/package.IUWQuIXW.cjs +0 -1
- package/dist/shared/package.SZmjOQBM.d.cts +0 -2076
- package/dist/shared/package.SZmjOQBM.d.mts +0 -2076
- package/dist/shared/package.SZmjOQBM.d.ts +0 -2076
- package/dist/tsconfig/index.cjs +0 -1
- package/dist/tsconfig/index.d.cts +0 -34
- package/dist/tsconfig/index.d.mts +0 -34
- package/dist/tsconfig/index.d.ts +0 -34
- package/dist/tsconfig/index.mjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## @visulima/package [2.0.0](https://github.com/visulima/visulima/compare/@visulima/package@1.10.3...@visulima/package@2.0.0) (2024-06-17)
|
|
2
|
+
|
|
3
|
+
### ⚠ BREAKING CHANGES
|
|
4
|
+
|
|
5
|
+
* **package:** You can find all ts-config function inside the new @visulima/tsconfig package
|
|
6
|
+
Signed-off-by: prisis <d.bannert@anolilab.de>
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **package:** moved all ts-config helpers into a new package ([17871de](https://github.com/visulima/visulima/commit/17871de99ca3e70a558141af78031f3f15c2186b))
|
|
11
|
+
* **tsconfig:** new package for tsconfig out of @visulima/package ([98f5e12](https://github.com/visulima/visulima/commit/98f5e12c43430a03f783e2e44692e431c9a1915a))
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **package:** removed not used package ([52b0cc2](https://github.com/visulima/visulima/commit/52b0cc2b142c0ce1b75debdff536fe196c7eb603))
|
|
16
|
+
|
|
17
|
+
## @visulima/package [1.10.3](https://github.com/visulima/visulima/compare/@visulima/package@1.10.2...@visulima/package@1.10.3) (2024-06-17)
|
|
18
|
+
|
|
19
|
+
### Miscellaneous Chores
|
|
20
|
+
|
|
21
|
+
* updated dev dependencies ([c889486](https://github.com/visulima/visulima/commit/c889486f8980741f459b993648c1b6d0815e3d66))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@visulima/fs:** upgraded to 2.1.7
|
|
27
|
+
|
|
1
28
|
## @visulima/package [1.10.2](https://github.com/visulima/visulima/compare/@visulima/package@1.10.1...@visulima/package@1.10.2) (2024-06-16)
|
|
2
29
|
|
|
3
30
|
### Styles
|
package/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<h3>Visulima package</h3>
|
|
3
3
|
<p>
|
|
4
|
-
One Package to rule them all, finds your root-dir, monorepo
|
|
4
|
+
One Package to rule them all, finds your root-dir, monorepo or package manager is built on top of
|
|
5
5
|
|
|
6
6
|
[@visulima/fs](https://github.com/visulima/visulima/tree/main/packages/fs),
|
|
7
|
-
[
|
|
7
|
+
[@visulima/path](https://github.com/visulima/visulima/tree/main/packages/path),
|
|
8
8
|
[normalize-package-data](https://github.com/npm/normalize-package-data),
|
|
9
|
-
[pathe](https://github.com/unjs/pathe),
|
|
10
|
-
[resolve-pkg-maps](https://github.com/privatenumber/resolve-pkg-maps) and
|
|
9
|
+
[pathe](https://github.com/unjs/pathe),and
|
|
11
10
|
[type-fest](https://github.com/sindresorhus/type-fest)
|
|
12
11
|
|
|
13
12
|
</p>
|
|
@@ -140,28 +139,6 @@ import { getPackageManagerVersion } from "@visulima/package";
|
|
|
140
139
|
const version = await getPackageManagerVersion("npm"); // => 7.5.4
|
|
141
140
|
```
|
|
142
141
|
|
|
143
|
-
### findTsConfig
|
|
144
|
-
|
|
145
|
-
Retrieves the TsConfig by searching for the "tsconfig.json" file from a given current working directory.
|
|
146
|
-
|
|
147
|
-
```ts
|
|
148
|
-
import { findTsConfig } from "@visulima/package";
|
|
149
|
-
// or import { findTsConfig } from '@visulima/package/tsconfig';
|
|
150
|
-
|
|
151
|
-
const tsconfig = await findTsConfig(); // => { path: "/Users/../Projects/visulima/packages/package/tsconfig.json", config: { compilerOptions: { ... } } }
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
### writeTsConfig
|
|
155
|
-
|
|
156
|
-
Writes the provided TypeScript configuration object to a tsconfig.json file.
|
|
157
|
-
|
|
158
|
-
```ts
|
|
159
|
-
import { writeTsConfig } from '@visulima/package';
|
|
160
|
-
// or import { writeTsConfig } from '@visulima/package/tsconfig';
|
|
161
|
-
|
|
162
|
-
writeTsConfig({ compilerOptions: { ... } }/* ,{ cwd: "./" }*/);
|
|
163
|
-
```
|
|
164
|
-
|
|
165
142
|
## Supported Node.js Versions
|
|
166
143
|
|
|
167
144
|
Libraries in this ecosystem make the best effort to track [Node.js’ release schedule](https://github.com/nodejs/release#release-schedule).
|
|
@@ -182,7 +159,6 @@ If you would like to help take a look at the [list of issues](https://github.com
|
|
|
182
159
|
|
|
183
160
|
### Related Projects
|
|
184
161
|
|
|
185
|
-
- [get-tsconfig](https://github.com/privatenumber/get-tsconfig) - Get the TypeScript configuration from a project.
|
|
186
162
|
- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a package.json file.
|
|
187
163
|
- [find-cache-dir](https://github.com/sindresorhus/find-cache-dir) - Find the cache directory.
|
|
188
164
|
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./shared/package.Xn4v2Y_g.cjs"),n=require("./find-cache-dir.cjs"),o=require("./monorepo.cjs"),c=require("./package.cjs"),a=require("./package-json.cjs"),e=require("./package-manager.cjs");exports.PackageNotFoundError=i.u;exports.findCacheDirectory=n.findCacheDirectory;exports.findCacheDirectorySync=n.findCacheDirectorySync;exports.findMonorepoRoot=o.findMonorepoRoot;exports.findMonorepoRootSync=o.findMonorepoRootSync;exports.findPackageRoot=c.findPackageRoot;exports.findPackageRootSync=c.findPackageRootSync;exports.findPackageJson=a.findPackageJson;exports.findPackageJsonSync=a.findPackageJsonSync;exports.parsePackageJson=a.parsePackageJson;exports.writePackageJson=a.writePackageJson;exports.writePackageJsonSync=a.writePackageJsonSync;exports.findLockFile=e.findLockFile;exports.findLockFileSync=e.findLockFileSync;exports.findPackageManager=e.findPackageManager;exports.findPackageManagerSync=e.findPackageManagerSync;exports.getPackageManagerVersion=e.getPackageManagerVersion;exports.identifyInitiatingPackageManager=e.identifyInitiatingPackageManager;
|