create-flow-os 0.0.1-dev.1771777269 → 0.0.1

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,17 +817,6 @@ 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
- out[key] = value.replace(/packages\/([^/]+)\//g, "node_modules/@flow.os/$1/");
828
- }
829
- return Object.keys(out).length ? out : undefined;
830
- }
831
820
  async function copyWithExclude(srcDir, destDir, exclude) {
832
821
  const set = new Set(exclude.map((e2) => e2.toLowerCase()));
833
822
  async function w2(dir, rel) {
@@ -1054,7 +1043,13 @@ async function main() {
1054
1043
  await rm(projectPathNew, { recursive: true, force: true });
1055
1044
  const createSpinner = _2();
1056
1045
  createSpinner.start(c2.cyan(ICON.rocket + " Creating project\u2026"));
1057
- await copyWithExclude(profileDir, projectPathNew, ["node_modules", ".git", "packages"]);
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
+ }
1058
1053
  createSpinner.stop(c2.cyan(ICON.rocket + " Project created"));
1059
1054
  const extraDeps = {};
1060
1055
  for (const id of selected) {
@@ -1075,9 +1070,6 @@ async function main() {
1075
1070
  }
1076
1071
  const finalPkg = await Bun.file(pkgPath).json();
1077
1072
  delete finalPkg.workspaces;
1078
- const transformedScripts = transformScriptsForCreatedProject(finalPkg.scripts);
1079
- if (transformedScripts)
1080
- finalPkg.scripts = transformedScripts;
1081
1073
  if (finalPkg.dependencies) {
1082
1074
  const isDevFromRepo = await isDevFromRepoPromise;
1083
1075
  const flowKeys = Object.keys(finalPkg.dependencies).filter((k3) => k3 === "@flow.os" || k3.startsWith("@flow.os/"));
@@ -1105,6 +1097,11 @@ async function main() {
1105
1097
  finalPkg.dependencies = Object.fromEntries(Object.entries(finalPkg.dependencies).filter(([key]) => key !== "@flow.os"));
1106
1098
  }
1107
1099
  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
+ }
1108
1105
  if (!noInstall) {
1109
1106
  const s = _2();
1110
1107
  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.1771777269",
3
+ "version": "0.0.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-flow-os": "bin/index.js"
@@ -19,8 +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",
23
- "release": "bun publish.ts"
22
+ "publish": "bun publish.ts"
24
23
  },
25
24
  "dependencies": {
26
25
  "@clack/prompts": "^0.8.2",
@@ -11,7 +11,6 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
- "version": "bun run --cwd packages/create-flow version",
15
14
  "release": "bun run --cwd packages/create-flow release"
16
15
  },
17
16
  "dependencies": {
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/client",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -40,4 +39,4 @@
40
39
  "default": "./jsx.ts"
41
40
  }
42
41
  }
43
- }
42
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -13,4 +12,4 @@
13
12
  "default": "./index.ts"
14
13
  }
15
14
  }
16
- }
15
+ }
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
8
7
  "exports": {
9
- ".": {
10
- "types": "./index.ts",
11
- "import": "./index.ts",
12
- "default": "./index.ts"
13
- }
8
+ ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
14
9
  }
15
- }
10
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.4",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.1",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -12,4 +11,4 @@
12
11
  "default": "./index.ts"
13
12
  }
14
13
  }
15
- }
14
+ }
@@ -11,7 +11,6 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
- "version": "bun run --cwd packages/create-flow version",
15
14
  "release": "bun run --cwd packages/create-flow release"
16
15
  },
17
16
  "dependencies": {
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/client",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -40,4 +39,4 @@
40
39
  "default": "./jsx.ts"
41
40
  }
42
41
  }
43
- }
42
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -13,4 +12,4 @@
13
12
  "default": "./index.ts"
14
13
  }
15
14
  }
16
- }
15
+ }
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
8
7
  "exports": {
9
- ".": {
10
- "types": "./index.ts",
11
- "import": "./index.ts",
12
- "default": "./index.ts"
13
- }
8
+ ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
14
9
  }
15
- }
10
+ }
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@flow.os/server",
3
- "version": "0.0.4",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.1",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
8
- "bin": {
9
- "server": "./start.ts"
10
- },
7
+ "bin": "./start.ts",
11
8
  "dependencies": {},
12
9
  "peerDependencies": {
13
10
  "vite": ">=5.0.0"
@@ -29,4 +26,4 @@
29
26
  "default": "./production.ts"
30
27
  }
31
28
  }
32
- }
29
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.4",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.1",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -12,4 +11,4 @@
12
11
  "default": "./index.ts"
13
12
  }
14
13
  }
15
- }
14
+ }
@@ -11,7 +11,6 @@
11
11
  "lint": "oxlint .",
12
12
  "fmt": "oxfmt",
13
13
  "fmt:check": "oxfmt --check",
14
- "version": "bun run --cwd packages/create-flow version",
15
14
  "release": "bun run --cwd packages/create-flow release"
16
15
  },
17
16
  "dependencies": {
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/core",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -13,4 +12,4 @@
13
12
  "default": "./index.ts"
14
13
  }
15
14
  }
16
- }
15
+ }
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "name": "@flow.os/router",
3
- "version": "0.0.5",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.2",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
8
7
  "exports": {
9
- ".": {
10
- "types": "./index.ts",
11
- "import": "./index.ts",
12
- "default": "./index.ts"
13
- }
8
+ ".": { "types": "./index.ts", "import": "./index.ts", "default": "./index.ts" }
14
9
  }
15
- }
10
+ }
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@flow.os/server",
3
- "version": "0.0.4",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.1",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
8
- "bin": {
9
- "server": "./start.ts"
10
- },
7
+ "bin": "./start.ts",
11
8
  "dependencies": {},
12
9
  "peerDependencies": {
13
10
  "vite": ">=5.0.0"
@@ -29,4 +26,4 @@
29
26
  "default": "./production.ts"
30
27
  }
31
28
  }
32
- }
29
+ }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@flow.os/style",
3
- "version": "0.0.4",
4
- "license": "PolyForm-Shield-1.0.0",
3
+ "version": "0.0.1",
5
4
  "type": "module",
6
5
  "main": "./index.ts",
7
6
  "types": "./index.ts",
@@ -12,4 +11,4 @@
12
11
  "default": "./index.ts"
13
12
  }
14
13
  }
15
- }
14
+ }
@@ -1,2 +0,0 @@
1
- **Version** `bun run version -- patch` · es. `bun run version -- patch @flow.os/client`
2
- **Release** `bun run release` · es. `bun run release -- @flow.os/client create-flow-os`
@@ -1,2 +0,0 @@
1
- **Version** `bun run version -- patch` · es. `bun run version -- patch @flow.os/client`
2
- **Release** `bun run release` · es. `bun run release -- @flow.os/client create-flow-os`
@@ -1,2 +0,0 @@
1
- **Version** `bun run version -- patch` · es. `bun run version -- patch @flow.os/client`
2
- **Release** `bun run release` · es. `bun run release -- @flow.os/client create-flow-os`