@stacksjs/actions 0.58.63 → 0.58.65
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/upgrade.js +1 -1
- package/package.json +1 -1
- package/src/action.ts +3 -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/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.65";
|
|
11
11
|
|
|
12
12
|
// src/upgrade.ts
|
|
13
13
|
function checkForUncommittedChanges(options) {
|
package/package.json
CHANGED
package/src/action.ts
CHANGED
|
@@ -16,10 +16,12 @@ export class Action {
|
|
|
16
16
|
rate?: JobOptions['rate']
|
|
17
17
|
tries?: JobOptions['tries']
|
|
18
18
|
backoff?: JobOptions['backoff']
|
|
19
|
-
enabled?:
|
|
19
|
+
enabled?: boolean
|
|
20
20
|
handle: () => Promise<any>
|
|
21
21
|
|
|
22
22
|
constructor({ name, description, handle, rate, tries, backoff, enabled }: ActionOptions) {
|
|
23
|
+
// log.debug(`Action ${name} created`) // TODO
|
|
24
|
+
|
|
23
25
|
this.name = name
|
|
24
26
|
this.description = description
|
|
25
27
|
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
|