create-fumapress 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -10
  2. package/package.json +5 -2
package/dist/index.mjs CHANGED
@@ -11,22 +11,22 @@ var dependencies = {
11
11
  "fumadocs-mdx": "^15.4.0",
12
12
  "fumadocs-ui": "npm:@fumadocs/base-ui@^16.15.7",
13
13
  "fumapress": "workspace:*",
14
- "react": "^19.2.8",
15
- "react-dom": "^19.2.8"
14
+ "react": "^19.3.0",
15
+ "react-dom": "^19.3.0"
16
16
  };
17
17
  var devDependencies = {
18
18
  "@tailwindcss/vite": "^4.3.3",
19
19
  "@types/mdx": "^2.0.14",
20
20
  "@types/node": "^26.4.1",
21
- "@types/react": "^19.2.18",
22
- "@types/react-dom": "^19.2.7",
21
+ "@types/react": "^19.3.0",
22
+ "@types/react-dom": "^19.3.0",
23
23
  "tailwindcss": "^4.3.3",
24
24
  "typescript": "^7.0.2",
25
25
  "vite": "^8.2.2"
26
26
  };
27
27
  //#endregion
28
28
  //#region ../core/package.json
29
- var version = "1.3.2";
29
+ var version = "1.4.0";
30
30
  //#endregion
31
31
  //#region src/index.ts
32
32
  const packageManagers = [
@@ -52,7 +52,7 @@ async function create(directory, options) {
52
52
  const root = path.resolve(projectDirectory);
53
53
  const name = toPackageName(path.basename(root));
54
54
  await assertCanInitialize(root, Boolean(options.force));
55
- await writeProject(root, name);
55
+ await writeProject(root, name, packageManager);
56
56
  log.success(`Created ${path.relative(process.cwd(), root) || "."}`);
57
57
  if (shouldInstall) await installDependencies(root, packageManager);
58
58
  printNextSteps(root, packageManager, shouldInstall);
@@ -107,15 +107,15 @@ async function assertCanInitialize(root, force) {
107
107
  process.exit(1);
108
108
  }
109
109
  }
110
- async function writeProject(root, name) {
111
- await Promise.all(Object.entries(getFiles(name)).map(async ([file, content]) => {
110
+ async function writeProject(root, name, packageManager) {
111
+ await Promise.all(Object.entries(getFiles(name, packageManager)).map(async ([file, content]) => {
112
112
  const target = path.join(root, file);
113
113
  await mkdir(path.dirname(target), { recursive: true });
114
114
  await writeFile(target, content);
115
115
  }));
116
116
  }
117
- function getFiles(name) {
118
- return {
117
+ function getFiles(name, packageManager) {
118
+ const files = {
119
119
  ".gitignore": `.DS_Store
120
120
  /node_modules/
121
121
 
@@ -210,6 +210,10 @@ export default defineConfig({
210
210
  });
211
211
  `
212
212
  };
213
+ if (packageManager === "pnpm") files["pnpm-workspace.yaml"] = `allowBuilds:
214
+ esbuild: false
215
+ `;
216
+ return files;
213
217
  }
214
218
  function getPackageJson(name) {
215
219
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fumapress",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Initialize a Fumapress app",
5
5
  "keywords": [
6
6
  "Docs",
@@ -9,7 +9,10 @@
9
9
  "homepage": "https://press.fumadocs.dev",
10
10
  "license": "MIT",
11
11
  "author": "Fuma Nama",
12
- "repository": "github:fuma-nama/fumapress",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "github:fuma-nama/fumapress"
15
+ },
13
16
  "bin": {
14
17
  "create-fumapress": "./dist/index.mjs"
15
18
  },