@stacksjs/actions 0.58.62 → 0.58.64
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/src/database/seed.js +0 -3
- package/dist/src/deploy/index.js +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/release.js +5 -2
- package/dist/src/upgrade.js +1 -1
- package/package.json +1 -1
- package/src/action.ts +4 -1
- package/src/copy-types.ts +1 -1
- package/src/database/seed.ts +3 -3
- package/src/deploy/index.ts +1 -1
- package/src/helpers/utils.ts +2 -2
- package/src/database/mydb.sqlite +0 -0
- package/src/database/stacks.sqlite +0 -0
package/dist/src/deploy/index.js
CHANGED
|
@@ -27,5 +27,5 @@ await runCommand("bun zip.ts", {
|
|
|
27
27
|
log.info("Preparing Deployment...");
|
|
28
28
|
var profile = process.env.AWS_PROFILE || "stacks";
|
|
29
29
|
await runCommand(`bunx cdk deploy --require-approval never --profile="${profile}"`, {
|
|
30
|
-
cwd: p.
|
|
30
|
+
cwd: p.frameworkCloudPath()
|
|
31
31
|
});
|
package/dist/src/index.js
CHANGED
|
@@ -515,6 +515,8 @@ export default <Model> {
|
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
// src/action.ts
|
|
518
|
+
import {log as log7} from "@stacksjs/logging";
|
|
519
|
+
|
|
518
520
|
class Action3 {
|
|
519
521
|
name;
|
|
520
522
|
description;
|
|
@@ -524,6 +526,7 @@ class Action3 {
|
|
|
524
526
|
enabled;
|
|
525
527
|
handle;
|
|
526
528
|
constructor({ name, description, handle, rate, tries, backoff, enabled }) {
|
|
529
|
+
log7.info(`Action ${name} created`);
|
|
527
530
|
this.name = name;
|
|
528
531
|
this.description = description;
|
|
529
532
|
this.rate = rate;
|
package/dist/src/release.js
CHANGED
|
@@ -517,6 +517,8 @@ export default <Model> {
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
// src/action.ts
|
|
520
|
+
import {log as log7} from "@stacksjs/logging";
|
|
521
|
+
|
|
520
522
|
class Action3 {
|
|
521
523
|
name;
|
|
522
524
|
description;
|
|
@@ -526,6 +528,7 @@ class Action3 {
|
|
|
526
528
|
enabled;
|
|
527
529
|
handle;
|
|
528
530
|
constructor({ name, description, handle, rate, tries, backoff, enabled }) {
|
|
531
|
+
log7.info(`Action ${name} created`);
|
|
529
532
|
this.name = name;
|
|
530
533
|
this.description = description;
|
|
531
534
|
this.rate = rate;
|
|
@@ -538,7 +541,7 @@ class Action3 {
|
|
|
538
541
|
// src/release.ts
|
|
539
542
|
import {projectPath as projectPath4} from "@stacksjs/path";
|
|
540
543
|
import {Action as Action4} from "@stacksjs/enums";
|
|
541
|
-
import {log as
|
|
544
|
+
import {log as log8} from "@stacksjs/logging";
|
|
542
545
|
import {app} from "@stacksjs/config";
|
|
543
546
|
await runActions([
|
|
544
547
|
Action4.GenerateLibraryEntries,
|
|
@@ -548,4 +551,4 @@ await runActions([
|
|
|
548
551
|
cwd: projectPath4(),
|
|
549
552
|
stdin: "inherit"
|
|
550
553
|
});
|
|
551
|
-
|
|
554
|
+
log8.success(`Successfully released ${app.name}`);
|
package/dist/src/upgrade.js
CHANGED
|
@@ -7,7 +7,7 @@ import {projectPath} from "@stacksjs/path";
|
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
import {NpmScript} from "@stacksjs/enums";
|
|
9
9
|
// package.json
|
|
10
|
-
var version = "0.58.
|
|
10
|
+
var version = "0.58.64";
|
|
11
11
|
|
|
12
12
|
// src/upgrade.ts
|
|
13
13
|
function checkForUncommittedChanges(options) {
|
package/package.json
CHANGED
package/src/action.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { JobOptions } from '@stacksjs/types'
|
|
2
|
+
import { log } from '@stacksjs/logging'
|
|
2
3
|
|
|
3
4
|
interface ActionOptions {
|
|
4
5
|
name?: string
|
|
@@ -16,10 +17,12 @@ export class Action {
|
|
|
16
17
|
rate?: JobOptions['rate']
|
|
17
18
|
tries?: JobOptions['tries']
|
|
18
19
|
backoff?: JobOptions['backoff']
|
|
19
|
-
enabled?:
|
|
20
|
+
enabled?: boolean
|
|
20
21
|
handle: () => Promise<any>
|
|
21
22
|
|
|
22
23
|
constructor({ name, description, handle, rate, tries, backoff, enabled }: ActionOptions) {
|
|
24
|
+
log.info(`Action ${name} created`)
|
|
25
|
+
|
|
23
26
|
this.name = name
|
|
24
27
|
this.description = description
|
|
25
28
|
this.rate = rate
|
package/src/copy-types.ts
CHANGED
package/src/database/seed.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// import { database } from '@stacksjs/config'
|
|
2
|
-
import { seed } from '@stacksjs/database'
|
|
3
|
-
|
|
4
|
-
await seed()
|
|
2
|
+
// import { seed } from '@stacksjs/database'
|
|
3
|
+
//
|
|
4
|
+
// await seed()
|
package/src/deploy/index.ts
CHANGED
|
@@ -42,5 +42,5 @@ const profile = process.env.AWS_PROFILE || 'stacks'
|
|
|
42
42
|
|
|
43
43
|
// TODO: ensure we check whether cdk bootstrap needs to be run
|
|
44
44
|
await runCommand(`bunx cdk deploy --require-approval never --profile="${profile}"`, {
|
|
45
|
-
cwd: p.
|
|
45
|
+
cwd: p.frameworkCloudPath(),
|
|
46
46
|
})
|
package/src/helpers/utils.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as storage from '@stacksjs/storage'
|
|
|
2
2
|
import { buddyOptions, runCommand, runCommands } from '@stacksjs/cli'
|
|
3
3
|
import { log } from '@stacksjs/logging'
|
|
4
4
|
import * as p from '@stacksjs/path'
|
|
5
|
-
import type { ActionOptions,
|
|
5
|
+
import type { ActionOptions, Subprocess } from '@stacksjs/types'
|
|
6
6
|
import type { Result } from '@stacksjs/error-handling'
|
|
7
7
|
import { err, handleError } from '@stacksjs/error-handling'
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ import { err, handleError } from '@stacksjs/error-handling'
|
|
|
13
13
|
* @param options The options to pass to the command.
|
|
14
14
|
* @returns The result of the command.
|
|
15
15
|
*/
|
|
16
|
-
export async function runAction(action: string, options?: ActionOptions): Promise<Result<Subprocess,
|
|
16
|
+
export async function runAction(action: string, options?: ActionOptions): Promise<Result<Subprocess, Error>> {
|
|
17
17
|
const opts = buddyOptions()
|
|
18
18
|
const path = p.relativeActionsPath(`${action}.ts`)
|
|
19
19
|
const cmd = `bun --bun ${path} ${opts}`.trimEnd()
|
package/src/database/mydb.sqlite
DELETED
|
Binary file
|
|
Binary file
|