@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 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, package manager or tsconfig.json is built on top of
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
- [jsonc-parser](https://github.com/microsoft/node-jsonc-parser),
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 r=require("./shared/package.Xn4v2Y_g.cjs"),a=require("./find-cache-dir.cjs"),o=require("./monorepo.cjs"),c=require("./package.cjs"),i=require("./package-json.cjs"),e=require("./package-manager.cjs"),n=require("./shared/package.IUWQuIXW.cjs");exports.PackageNotFoundError=r.u;exports.findCacheDirectory=a.findCacheDirectory;exports.findCacheDirectorySync=a.findCacheDirectorySync;exports.findMonorepoRoot=o.findMonorepoRoot;exports.findMonorepoRootSync=o.findMonorepoRootSync;exports.findPackageRoot=c.findPackageRoot;exports.findPackageRootSync=c.findPackageRootSync;exports.findPackageJson=i.findPackageJson;exports.findPackageJsonSync=i.findPackageJsonSync;exports.parsePackageJson=i.parsePackageJson;exports.writePackageJson=i.writePackageJson;exports.writePackageJsonSync=i.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;exports.findTSConfig=n.findTSConfig;exports.findTsConfig=n.findTsConfig;exports.findTsConfigSync=n.findTsConfigSync;exports.implicitBaseUrlSymbol=n.implicitBaseUrlSymbol;exports.readTsConfig=n.readTsConfig;exports.writeTSConfig=n.writeTSConfig;exports.writeTsConfig=n.writeTsConfig;exports.writeTsConfigSync=n.writeTsConfigSync;
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;