@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.
@@ -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
  });
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;
@@ -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 log7} from "@stacksjs/logging";
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
- log7.success(`Successfully released ${app.name}`);
554
+ log8.success(`Successfully released ${app.name}`);
@@ -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.62";
10
+ var version = "0.58.64";
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.62",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
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?: JobOptions['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
@@ -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