create-flow-os 0.0.1-dev.1771776083 → 0.0.1-dev.1771777456

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/bin/index.js CHANGED
@@ -817,6 +817,20 @@ function transformPackageJson(pkg, projectName, extraPackages = {}, useWorkspace
817
817
  }
818
818
  return out;
819
819
  }
820
+ function transformScriptsForCreatedProject(scripts) {
821
+ if (!scripts)
822
+ return scripts;
823
+ const out = {};
824
+ for (const [key, value] of Object.entries(scripts)) {
825
+ if (key === "release")
826
+ continue;
827
+ let s = value.replace(/packages\/([^/]+)\//g, "./node_modules/@flow.os/$1/");
828
+ if (/^bun\s+node_modules\//.test(s))
829
+ s = s.replace(/^bun\s+node_modules\//, "bun ./node_modules/");
830
+ out[key] = s;
831
+ }
832
+ return Object.keys(out).length ? out : undefined;
833
+ }
820
834
  async function copyWithExclude(srcDir, destDir, exclude) {
821
835
  const set = new Set(exclude.map((e2) => e2.toLowerCase()));
822
836
  async function w2(dir, rel) {
@@ -1043,13 +1057,7 @@ async function main() {
1043
1057
  await rm(projectPathNew, { recursive: true, force: true });
1044
1058
  const createSpinner = _2();
1045
1059
  createSpinner.start(c2.cyan(ICON.rocket + " Creating project\u2026"));
1046
- await copyWithExclude(profileDir, projectPathNew, ["node_modules", ".git"]);
1047
- for (const id of selected) {
1048
- const pkgDir = join2(DIR, "packages", id);
1049
- try {
1050
- await copyWithExclude(pkgDir, projectPathNew, []);
1051
- } catch {}
1052
- }
1060
+ await copyWithExclude(profileDir, projectPathNew, ["node_modules", ".git", "packages"]);
1053
1061
  createSpinner.stop(c2.cyan(ICON.rocket + " Project created"));
1054
1062
  const extraDeps = {};
1055
1063
  for (const id of selected) {
@@ -1070,6 +1078,9 @@ async function main() {
1070
1078
  }
1071
1079
  const finalPkg = await Bun.file(pkgPath).json();
1072
1080
  delete finalPkg.workspaces;
1081
+ const transformedScripts = transformScriptsForCreatedProject(finalPkg.scripts);
1082
+ if (transformedScripts)
1083
+ finalPkg.scripts = transformedScripts;
1073
1084
  if (finalPkg.dependencies) {
1074
1085
  const isDevFromRepo = await isDevFromRepoPromise;
1075
1086
  const flowKeys = Object.keys(finalPkg.dependencies).filter((k3) => k3 === "@flow.os" || k3.startsWith("@flow.os/"));
@@ -1097,11 +1108,6 @@ async function main() {
1097
1108
  finalPkg.dependencies = Object.fromEntries(Object.entries(finalPkg.dependencies).filter(([key]) => key !== "@flow.os"));
1098
1109
  }
1099
1110
  await Bun.write(pkgPath, JSON.stringify(finalPkg, null, 2));
1100
- if (useDevTag) {
1101
- try {
1102
- await rm(join2(projectPathNew, "packages"), { recursive: true, force: true });
1103
- } catch {}
1104
- }
1105
1111
  if (!noInstall) {
1106
1112
  const s = _2();
1107
1113
  s.start(c2.cyan(ICON.deps + " Installing dependencies\u2026"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-flow-os",
3
- "version": "0.0.1-dev.1771776083",
3
+ "version": "0.0.1-dev.1771777456",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-flow-os": "bin/index.js"
@@ -19,6 +19,7 @@
19
19
  "create": "bun index.ts",
20
20
  "build": "bun build ./index.ts --outdir=bin --target=bun",
21
21
  "publish:dev": "bun publish-dev.ts",
22
+ "version": "bun version.ts",
22
23
  "release": "bun publish.ts"
23
24
  },
24
25
  "dependencies": {
@@ -0,0 +1,28 @@
1
+ # Flow OS
2
+
3
+ ## Comandi
4
+
5
+ | Comando | Cosa fa |
6
+ |--------|---------|
7
+ | **dev** | Avvia il server di sviluppo (client + eventuale server). |
8
+ | **build** | Build di produzione del client. |
9
+ | **gen** | Rigenera `profiles/` e `packages/` da `config.json` e dai tag `// @flow: <id>` nei file. |
10
+ | **version** | Aggiorna la versione (patch/minor/major o valore esatto) nei package. Solo i package indicati, altrimenti tutti. |
11
+ | **release** | Pubblica su npm (tag `latest`). Solo i package indicati, altrimenti tutti. |
12
+ | **publish:dev** | Pubblica su npm con tag `dev` (versione `0.0.1-dev.<timestamp>`). |
13
+
14
+ **Esecuzione**
15
+
16
+ ```bash
17
+ bun run dev
18
+ bun run build
19
+ bun run gen
20
+
21
+ bun run version -- patch
22
+ bun run version -- patch @flow.os/client create-flow-os
23
+
24
+ bun run release
25
+ bun run release -- @flow.os/client create-flow-os
26
+
27
+ bun run publish:dev
28
+ ```
@@ -11,6 +11,7 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
+ "version": "bun run --cwd packages/create-flow version",
14
15
  "release": "bun run --cwd packages/create-flow release"
15
16
  },
16
17
  "dependencies": {
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/client",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -39,4 +40,4 @@
39
40
  "default": "./jsx.ts"
40
41
  }
41
42
  }
42
- }
43
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -12,4 +13,4 @@
12
13
  "default": "./index.ts"
13
14
  }
14
15
  }
15
- }
16
+ }
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
7
8
  "exports": {
8
- ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
9
+ ".": {
10
+ "types": "./index.ts",
11
+ "import": "./index.ts",
12
+ "default": "./index.ts"
13
+ }
9
14
  }
10
- }
15
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -11,4 +12,4 @@
11
12
  "default": "./index.ts"
12
13
  }
13
14
  }
14
- }
15
+ }
@@ -0,0 +1,28 @@
1
+ # Flow OS
2
+
3
+ ## Comandi
4
+
5
+ | Comando | Cosa fa |
6
+ |--------|---------|
7
+ | **dev** | Avvia il server di sviluppo (client + eventuale server). |
8
+ | **build** | Build di produzione del client. |
9
+ | **gen** | Rigenera `profiles/` e `packages/` da `config.json` e dai tag `// @flow: <id>` nei file. |
10
+ | **version** | Aggiorna la versione (patch/minor/major o valore esatto) nei package. Solo i package indicati, altrimenti tutti. |
11
+ | **release** | Pubblica su npm (tag `latest`). Solo i package indicati, altrimenti tutti. |
12
+ | **publish:dev** | Pubblica su npm con tag `dev` (versione `0.0.1-dev.<timestamp>`). |
13
+
14
+ **Esecuzione**
15
+
16
+ ```bash
17
+ bun run dev
18
+ bun run build
19
+ bun run gen
20
+
21
+ bun run version -- patch
22
+ bun run version -- patch @flow.os/client create-flow-os
23
+
24
+ bun run release
25
+ bun run release -- @flow.os/client create-flow-os
26
+
27
+ bun run publish:dev
28
+ ```
@@ -11,6 +11,7 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
+ "version": "bun run --cwd packages/create-flow version",
14
15
  "release": "bun run --cwd packages/create-flow release"
15
16
  },
16
17
  "dependencies": {
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/client",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -39,4 +40,4 @@
39
40
  "default": "./jsx.ts"
40
41
  }
41
42
  }
42
- }
43
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -12,4 +13,4 @@
12
13
  "default": "./index.ts"
13
14
  }
14
15
  }
15
- }
16
+ }
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
7
8
  "exports": {
8
- ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
9
+ ".": {
10
+ "types": "./index.ts",
11
+ "import": "./index.ts",
12
+ "default": "./index.ts"
13
+ }
9
14
  }
10
- }
15
+ }
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@flow.os/server",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
7
- "bin": "./start.ts",
8
+ "bin": {
9
+ "server": "./start.ts"
10
+ },
8
11
  "dependencies": {},
9
12
  "peerDependencies": {
10
13
  "vite": ">=5.0.0"
@@ -26,4 +29,4 @@
26
29
  "default": "./production.ts"
27
30
  }
28
31
  }
29
- }
32
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -11,4 +12,4 @@
11
12
  "default": "./index.ts"
12
13
  }
13
14
  }
14
- }
15
+ }
@@ -0,0 +1,28 @@
1
+ # Flow OS
2
+
3
+ ## Comandi
4
+
5
+ | Comando | Cosa fa |
6
+ |--------|---------|
7
+ | **dev** | Avvia il server di sviluppo (client + eventuale server). |
8
+ | **build** | Build di produzione del client. |
9
+ | **gen** | Rigenera `profiles/` e `packages/` da `config.json` e dai tag `// @flow: <id>` nei file. |
10
+ | **version** | Aggiorna la versione (patch/minor/major o valore esatto) nei package. Solo i package indicati, altrimenti tutti. |
11
+ | **release** | Pubblica su npm (tag `latest`). Solo i package indicati, altrimenti tutti. |
12
+ | **publish:dev** | Pubblica su npm con tag `dev` (versione `0.0.1-dev.<timestamp>`). |
13
+
14
+ **Esecuzione**
15
+
16
+ ```bash
17
+ bun run dev
18
+ bun run build
19
+ bun run gen
20
+
21
+ bun run version -- patch
22
+ bun run version -- patch @flow.os/client create-flow-os
23
+
24
+ bun run release
25
+ bun run release -- @flow.os/client create-flow-os
26
+
27
+ bun run publish:dev
28
+ ```
@@ -11,6 +11,7 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
+ "version": "bun run --cwd packages/create-flow version",
14
15
  "release": "bun run --cwd packages/create-flow release"
15
16
  },
16
17
  "dependencies": {
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -12,4 +13,4 @@
12
13
  "default": "./index.ts"
13
14
  }
14
15
  }
15
- }
16
+ }
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
7
8
  "exports": {
8
- ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
9
+ ".": {
10
+ "types": "./index.ts",
11
+ "import": "./index.ts",
12
+ "default": "./index.ts"
13
+ }
9
14
  }
10
- }
15
+ }
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@flow.os/server",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
7
- "bin": "./start.ts",
8
+ "bin": {
9
+ "server": "./start.ts"
10
+ },
8
11
  "dependencies": {},
9
12
  "peerDependencies": {
10
13
  "vite": ">=5.0.0"
@@ -26,4 +29,4 @@
26
29
  "default": "./production.ts"
27
30
  }
28
31
  }
29
- }
32
+ }
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
+ "license": "PolyForm-Shield-1.0.0",
4
5
  "type": "module",
5
6
  "main": "./index.ts",
6
7
  "types": "./index.ts",
@@ -11,4 +12,4 @@
11
12
  "default": "./index.ts"
12
13
  }
13
14
  }
14
- }
15
+ }