You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 601be00
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+15-8Lines changed: 15 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,21 @@ Omit the option to enable every built-in tool. Pass an array such as
44
44
45
45
### Package Manager Configuration
46
46
47
-
When a local template contains `pnpm-workspace.yaml`, the file is only copied
48
-
if the project is created with pnpm. Templates loaded from third-party npm
49
-
packages are copied without this filtering.
50
-
51
-
The toolkit automatically passes the resolved `skipFiles` list to custom
52
-
`extraTools` actions. When an action uses `copyFolder` to copy a local tool
53
-
template, forward the received list so the same package-manager filtering is
54
-
applied:
47
+
Use `getPackageManager` to specify a package manager for a template:
48
+
49
+
```ts
50
+
create({
51
+
getPackageManager: ({ templateName }) =>
52
+
templateName==='turborepo'?'pnpm':undefined,
53
+
// ...other options
54
+
});
55
+
```
56
+
57
+
Return `undefined` to use the package manager detected from the user agent, falling back to npm.
58
+
59
+
When a local template contains `pnpm-workspace.yaml`, the file is only copied if the resolved package manager is pnpm. Templates loaded from third-party npm packages are copied without this filtering.
60
+
61
+
The toolkit automatically passes the resolved `skipFiles` list to custom `extraTools` actions. When an action uses `copyFolder` to copy a local tool template, forward the received list so the same package-manager filtering is applied:
0 commit comments