create-astrale-domain 0.2.6 → 0.2.7
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/dist/index.js +3 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -967,26 +967,16 @@ function rewriteAstraleDeps(pkg, link) {
|
|
|
967
967
|
}
|
|
968
968
|
return changed;
|
|
969
969
|
}
|
|
970
|
+
var FIRST_PARTY_SCOPES = ["@astrale-domains/*", "@astrale-os/*"];
|
|
970
971
|
async function writeReleaseAgePolicy(dir) {
|
|
971
972
|
const workspace = join(dir, "pnpm-workspace.yaml");
|
|
972
973
|
if (!existsSync(workspace)) return;
|
|
973
|
-
const
|
|
974
|
-
for (const pkgPath of [join(dir, "package.json"), join(dir, "client", "package.json")]) {
|
|
975
|
-
if (!existsSync(pkgPath)) continue;
|
|
976
|
-
const pkg = JSON.parse(await readFile(pkgPath, "utf-8"));
|
|
977
|
-
for (const group of [pkg.dependencies, pkg.devDependencies]) {
|
|
978
|
-
for (const [name, spec] of Object.entries(group ?? {})) {
|
|
979
|
-
if (name.startsWith("@astrale-os/") && !spec.startsWith("link:")) names.add(name);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
if (names.size === 0) return;
|
|
984
|
-
const start = "# create-astrale-domain: exact first-party deps";
|
|
974
|
+
const start = "# create-astrale-domain: first-party scopes";
|
|
985
975
|
const end = "# /create-astrale-domain";
|
|
986
976
|
const block = `
|
|
987
977
|
${start}
|
|
988
978
|
minimumReleaseAgeExclude:
|
|
989
|
-
` +
|
|
979
|
+
` + FIRST_PARTY_SCOPES.map((scope) => ` - '${scope}'`).join("\n") + `
|
|
990
980
|
${end}
|
|
991
981
|
`;
|
|
992
982
|
const text = await readFile(workspace, "utf-8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-astrale-domain",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Scaffold a standalone Astrale domain — npm create astrale-domain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^0.11.0",
|
|
22
22
|
"@astrale-os/adapter-astrale": "^0.4.0",
|
|
23
|
-
"@astrale-os/adapter-cloudflare": "^0.4.
|
|
23
|
+
"@astrale-os/adapter-cloudflare": "^0.4.4"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@astrale-os/ox": ">=0.1.0 <1.0.0",
|