@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.
@@ -1,4 +1 @@
1
1
  // @bun
2
- // src/database/seed.ts
3
- import {seed} from "@stacksjs/database";
4
- await seed();
@@ -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.cloudPath()
30
+ cwd: p.frameworkCloudPath()
31
31
  });
@@ -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.63";
10
+ var version = "0.58.65";
11
11
 
12
12
  // src/upgrade.ts
13
13
  function checkForUncommittedChanges(options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.58.63",
4
+ "version": "0.58.65",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
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?: JobOptions['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
@@ -18,5 +18,5 @@ destinations.forEach(([src, dest]) => {
18
18
  // const srcPath = resolve(__filename, '..', src)
19
19
  // const destPath = resolve(__filename, '..', dest)
20
20
 
21
- copyFolder(src, dest)
21
+ copyFolder(src!, dest!)
22
22
  })
@@ -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()
@@ -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.cloudPath(),
45
+ cwd: p.frameworkCloudPath(),
46
46
  })
@@ -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, StacksError, Subprocess } from '@stacksjs/types'
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, StacksError>> {
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()
Binary file
Binary file