@stacksjs/actions 0.58.51 → 0.58.53

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.
@@ -18,8 +18,8 @@ if (config2.app.docMode !== true) {
18
18
  cwd: p.frameworkPath("views")
19
19
  });
20
20
  }
21
- await runCommand("bun zip/api.ts", {
22
- cwd: p.actionsPath()
21
+ await runCommand("bun build.ts", {
22
+ cwd: p.frameworkPath("server")
23
23
  });
24
24
  await runCommand("bun zip.ts", {
25
25
  cwd: p.cloudPath()
@@ -6,7 +6,7 @@ import {log} from "@stacksjs/logging";
6
6
  import {projectPath} from "@stacksjs/path";
7
7
  import * as storage from "@stacksjs/storage";
8
8
  // package.json
9
- var version = "0.58.51";
9
+ var version = "0.58.53";
10
10
 
11
11
  // src/upgrade.ts
12
12
  function checkForUncommittedChanges(options2) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.58.51",
4
+ "version": "0.58.53",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/build/cli.ts CHANGED
@@ -2,6 +2,6 @@ import { log } from '@stacksjs/cli'
2
2
  import { buddyPath } from '@stacksjs/path'
3
3
  import { $ } from 'bun'
4
4
 
5
- log.info('Building CLI')
5
+ log.info('Building CLI...')
6
6
 
7
7
  await $`bun ${buddyPath('compile.ts')}`
@@ -0,0 +1,9 @@
1
+ import { log } from '@stacksjs/cli'
2
+ import { frameworkPath } from '@stacksjs/path'
3
+ import { $ } from 'bun'
4
+
5
+ log.info('Building Server...')
6
+
7
+ $.cwd(frameworkPath('server'))
8
+
9
+ await $`bun build.ts`
@@ -28,8 +28,8 @@ if (config.app.docMode !== true) { // when in docs mode, we disregard building v
28
28
  // cwd: p.corePath('cloud'),
29
29
  // })
30
30
 
31
- await runCommand('bun zip/api.ts', {
32
- cwd: p.actionsPath(),
31
+ await runCommand('bun build.ts', {
32
+ cwd: p.frameworkPath('server'),
33
33
  })
34
34
 
35
35
  await runCommand('bun zip.ts', {
package/src/zip/api.ts DELETED
@@ -1,22 +0,0 @@
1
- // TODO: we likely won't need this once we use docker images for the runtime
2
- // zip the api for deployment
3
- import { log } from '@stacksjs/logging'
4
- import { path as p } from '@stacksjs/path'
5
- import { zip } from '@stacksjs/storage'
6
-
7
- log.info('zipping your API for Lambda usage...')
8
-
9
- const from = [
10
- 'bootstrap',
11
- 'runtime.ts',
12
- 'server.js',
13
- ]
14
-
15
- const to = p.projectStoragePath('framework/cloud/api.zip')
16
-
17
- // zip all the paths into a single file
18
- await zip(from, to, {
19
- cwd: p.cloudPath('src/runtime'),
20
- })
21
-
22
- log.info('Zipped your API')