@turbo/workspaces 0.0.2 → 1.8.6-canary.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/README.md +2 -2
- package/dist/cli.js +29 -29
- package/dist/index.d.ts +26 -4
- package/dist/index.js +39 -39
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ Commands:
|
|
|
24
24
|
Methods are also available via the Node API:
|
|
25
25
|
|
|
26
26
|
```js
|
|
27
|
-
import {
|
|
27
|
+
import { convert, getWorkspaceDetails } from "@turbo/workspaces";
|
|
28
28
|
|
|
29
29
|
// detect the package manager
|
|
30
30
|
const project = getWorkspaceDetails({
|
|
@@ -33,7 +33,7 @@ const project = getWorkspaceDetails({
|
|
|
33
33
|
|
|
34
34
|
// if the package manager is not pnpm, convert to pnpm
|
|
35
35
|
if (project.packageManager !== "pnpm") {
|
|
36
|
-
await
|
|
36
|
+
await convert({
|
|
37
37
|
root: process.cwd(),
|
|
38
38
|
to: "pnpm",
|
|
39
39
|
options: {
|