@stacksjs/actions 0.70.110 → 0.70.111
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/migrate/fresh.js
CHANGED
|
@@ -16,13 +16,12 @@ if (genResult?.isErr) {
|
|
|
16
16
|
const authResult = await migrateAuthTables();
|
|
17
17
|
if (!authResult.success)
|
|
18
18
|
log.error(`Failed to migrate auth tables: ${authResult.error}`);
|
|
19
|
-
const notifResult = await migrateNotificationTables();
|
|
19
|
+
const migrateResult = await runDatabaseMigration(), notifResult = await migrateNotificationTables();
|
|
20
20
|
if (!notifResult.success)
|
|
21
21
|
log.error(`Failed to migrate notification tables: ${notifResult.error}`);
|
|
22
22
|
const rbacResult = await migrateRbacTables();
|
|
23
23
|
if (!rbacResult.success)
|
|
24
24
|
log.error(`Failed to migrate RBAC tables: ${rbacResult.error}`);
|
|
25
|
-
const migrateResult = await runDatabaseMigration();
|
|
26
25
|
if (migrateResult.isErr) {
|
|
27
26
|
log.error("runDatabaseMigration failed");
|
|
28
27
|
log.error(migrateResult.error);
|
|
@@ -105,8 +105,8 @@ export const MANAGED_PATHS = [
|
|
|
105
105
|
label: "defaults",
|
|
106
106
|
skip: ["node_modules", "dist", ".DS_Store", ".discovered-models.json"]
|
|
107
107
|
},
|
|
108
|
-
{ localPath: "buddy", subPath: "buddy", label: "buddy", isFile: !0 },
|
|
109
|
-
{ localPath: "bootstrap", subPath: "bootstrap", label: "bootstrap", isFile: !0 }
|
|
108
|
+
{ localPath: "buddy", subPath: "buddy", label: "buddy", isFile: !0, executable: !0 },
|
|
109
|
+
{ localPath: "bootstrap", subPath: "bootstrap", label: "bootstrap", isFile: !0, executable: !0 }
|
|
110
110
|
];
|
|
111
111
|
export function detectLocalStacks(projectRoot) {
|
|
112
112
|
const candidates = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { copyFileSync, cpSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
1
|
+
import { chmodSync, copyFileSync, cpSync, existsSync, mkdirSync, readFileSync, rmSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { parseOptions } from "@stacksjs/cli";
|
|
@@ -199,6 +199,8 @@ async function syncFromLocal(stacksRoot, managed, localTarget) {
|
|
|
199
199
|
if (managed.isFile) {
|
|
200
200
|
mkdirSync(dirname(localTarget), { recursive: !0 });
|
|
201
201
|
copyFileSync(src, localTarget);
|
|
202
|
+
if (managed.executable)
|
|
203
|
+
chmodSync(localTarget, 493);
|
|
202
204
|
return;
|
|
203
205
|
}
|
|
204
206
|
mkdirSync(localTarget, { recursive: !0 });
|
|
@@ -237,8 +239,11 @@ async function syncRootFilesFromGitHub(ref) {
|
|
|
237
239
|
continue;
|
|
238
240
|
const src = join(tmpDir, managed.subPath), dest = p.projectPath(managed.localPath);
|
|
239
241
|
try {
|
|
240
|
-
if (existsSync(src) && existsSync(dest))
|
|
242
|
+
if (existsSync(src) && existsSync(dest)) {
|
|
241
243
|
copyFileSync(src, dest);
|
|
244
|
+
if (managed.executable)
|
|
245
|
+
chmodSync(dest, 493);
|
|
246
|
+
}
|
|
242
247
|
} catch {}
|
|
243
248
|
}
|
|
244
249
|
} catch {} finally {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/actions",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.111",
|
|
6
6
|
"description": "The Stacks actions.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -69,23 +69,23 @@
|
|
|
69
69
|
"@stacksjs/ts-md": "^0.1.1"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@stacksjs/api": "0.70.
|
|
73
|
-
"@stacksjs/cli": "0.70.
|
|
74
|
-
"@stacksjs/config": "0.70.
|
|
75
|
-
"@stacksjs/database": "0.70.
|
|
72
|
+
"@stacksjs/api": "0.70.111",
|
|
73
|
+
"@stacksjs/cli": "0.70.111",
|
|
74
|
+
"@stacksjs/config": "0.70.111",
|
|
75
|
+
"@stacksjs/database": "0.70.111",
|
|
76
76
|
"@stacksjs/tlsx": "^0.13.2",
|
|
77
77
|
"better-dx": "^0.2.16",
|
|
78
|
-
"@stacksjs/dns": "0.70.
|
|
79
|
-
"@stacksjs/enums": "0.70.
|
|
80
|
-
"@stacksjs/env": "0.70.
|
|
81
|
-
"@stacksjs/error-handling": "0.70.
|
|
82
|
-
"@stacksjs/logging": "0.70.
|
|
83
|
-
"@stacksjs/path": "0.70.
|
|
84
|
-
"@stacksjs/security": "0.70.
|
|
85
|
-
"@stacksjs/storage": "0.70.
|
|
86
|
-
"@stacksjs/strings": "0.70.
|
|
87
|
-
"@stacksjs/utils": "0.70.
|
|
88
|
-
"@stacksjs/validation": "0.70.
|
|
78
|
+
"@stacksjs/dns": "0.70.111",
|
|
79
|
+
"@stacksjs/enums": "0.70.111",
|
|
80
|
+
"@stacksjs/env": "0.70.111",
|
|
81
|
+
"@stacksjs/error-handling": "0.70.111",
|
|
82
|
+
"@stacksjs/logging": "0.70.111",
|
|
83
|
+
"@stacksjs/path": "0.70.111",
|
|
84
|
+
"@stacksjs/security": "0.70.111",
|
|
85
|
+
"@stacksjs/storage": "0.70.111",
|
|
86
|
+
"@stacksjs/strings": "0.70.111",
|
|
87
|
+
"@stacksjs/utils": "0.70.111",
|
|
88
|
+
"@stacksjs/validation": "0.70.111"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"pickier": "^0.1.28"
|