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 +12 -15
- package/package.json +2 -3
- package/profiles/client/package.json +0 -1
- package/profiles/client/packages/client/package.json +2 -3
- package/profiles/client/packages/core/package.json +2 -3
- package/profiles/client/packages/router/package.json +3 -8
- package/profiles/client/packages/style/package.json +2 -3
- package/profiles/full/package.json +0 -1
- package/profiles/full/packages/client/package.json +2 -3
- package/profiles/full/packages/core/package.json +2 -3
- package/profiles/full/packages/router/package.json +3 -8
- package/profiles/full/packages/server/package.json +3 -6
- package/profiles/full/packages/style/package.json +2 -3
- package/profiles/server/package.json +0 -1
- package/profiles/server/packages/core/package.json +2 -3
- package/profiles/server/packages/router/package.json +3 -8
- package/profiles/server/packages/server/package.json +3 -6
- package/profiles/server/packages/style/package.json +2 -3
- package/profiles/client/README.md +0 -2
- package/profiles/full/README.md +0 -2
- package/profiles/server/README.md +0 -2
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"
|
|
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
|
|
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
|
-
"
|
|
23
|
-
"release": "bun publish.ts"
|
|
22
|
+
"publish": "bun publish.ts"
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
25
|
"@clack/prompts": "^0.8.2",
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow.os/router",
|
|
3
|
-
"version": "0.0.
|
|
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,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow.os/router",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"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,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow.os/router",
|
|
3
|
-
"version": "0.0.
|
|
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
|
-
"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
|
+
}
|
package/profiles/full/README.md
DELETED