create-forgeon 0.1.21 → 0.1.22

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 CHANGED
@@ -1,8 +1,14 @@
1
- # create-forgeon
2
-
3
- CLI package for generating Forgeon fullstack monorepo projects.
4
-
5
- ## Usage
1
+ # create-forgeon
2
+
3
+ CLI package for generating Forgeon fullstack monorepo projects.
4
+
5
+ > [!WARNING]
6
+ > **Pre-release package. Do not use in production before `1.0.0`.**
7
+ > The project is under active development: each patch can add changes and may introduce breaking regressions.
8
+ >
9
+ > ![warning](https://img.shields.io/badge/STATUS-PRE--RELEASE%20DO%20NOT%20USE-red)
10
+
11
+ ## Usage
6
12
 
7
13
  ```bash
8
14
  npx create-forgeon@latest my-app --i18n true --proxy caddy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-forgeon",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Forgeon project generator CLI",
5
5
  "license": "MIT",
6
6
  "author": "Forgeon",
@@ -198,8 +198,6 @@ describe('addModule', () => {
198
198
  assert.match(rootPackage, /"i18n:sync"/);
199
199
  assert.match(rootPackage, /"i18n:check"/);
200
200
  assert.match(rootPackage, /"i18n:types"/);
201
- assert.match(rootPackage, /postinstall/);
202
- assert.match(rootPackage, /pnpm i18n:sync/);
203
201
 
204
202
  const caddyDockerfile = fs.readFileSync(
205
203
  path.join(projectRoot, 'infra', 'docker', 'caddy.Dockerfile'),
@@ -34,24 +34,6 @@ function ensureScript(packageJson, name, command) {
34
34
  packageJson.scripts[name] = command;
35
35
  }
36
36
 
37
- function ensurePostinstallStep(packageJson, command) {
38
- if (!packageJson.scripts) {
39
- packageJson.scripts = {};
40
- }
41
-
42
- const current = packageJson.scripts.postinstall;
43
- if (!current) {
44
- packageJson.scripts.postinstall = command;
45
- return;
46
- }
47
-
48
- if (current.includes(command)) {
49
- return;
50
- }
51
-
52
- packageJson.scripts.postinstall = `${current} && ${command}`;
53
- }
54
-
55
37
  function upsertEnvLines(filePath, lines) {
56
38
  let content = '';
57
39
  if (fs.existsSync(filePath)) {
@@ -312,7 +294,6 @@ function patchRootPackage(targetRoot) {
312
294
  'i18n:types',
313
295
  'pnpm --filter @forgeon/i18n-contracts i18n:types',
314
296
  );
315
- ensurePostinstallStep(packageJson, 'pnpm i18n:sync');
316
297
  writeJson(packagePath, packageJson);
317
298
  }
318
299