create-morax 2.0.5 → 2.0.6

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/dist/index.js CHANGED
@@ -1744,12 +1744,23 @@ async function generateWorkspaceConfig(name, directories, projectPath) {
1744
1744
  "@biomejs/biome",
1745
1745
  "oxlint",
1746
1746
  "lefthook",
1747
- "sharp"
1747
+ "sharp",
1748
+ "husky",
1749
+ "@tailwindcss/oxide",
1750
+ "@prisma/client",
1751
+ "prisma"
1748
1752
  ];
1749
1753
  const workspaceYamlContent = [
1750
1754
  "packages:",
1751
1755
  ...directories.map((dir) => ` - '${dir}/*'`),
1752
1756
  "",
1757
+ "# Allow build scripts for essential tooling and native binaries (pnpm v11+)",
1758
+ "allowBuilds:",
1759
+ ...defaultOnlyBuiltDeps.map(
1760
+ (dep) => dep.startsWith("@") ? ` '${dep}': true` : ` ${dep}: true`
1761
+ ),
1762
+ "",
1763
+ "# Legacy allowlist for pnpm v10 and below",
1753
1764
  "onlyBuiltDependencies:",
1754
1765
  ...defaultOnlyBuiltDeps.map(
1755
1766
  (dep) => dep.startsWith("@") ? ` - '${dep}'` : ` - ${dep}`
@@ -1768,6 +1779,10 @@ async function generateWorkspaceConfig(name, directories, projectPath) {
1768
1779
  pkg.name = name;
1769
1780
  pkg.description = "High-performance monorepo workspace generated by Morax";
1770
1781
  pkg.private = true;
1782
+ pkg.pnpm = {
1783
+ ...pkg.pnpm,
1784
+ onlyBuiltDependencies: defaultOnlyBuiltDeps
1785
+ };
1771
1786
  try {
1772
1787
  const { stdout } = await runCommand("pnpm --version", {
1773
1788
  cwd: projectPath,