wirejs-deploy-amplify-basic 0.0.8-alpha → 0.0.9-alpha

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.
@@ -6,17 +6,6 @@ import { JSDOM } from 'jsdom';
6
6
  import { useJSDOM } from 'wirejs-dom/v2';
7
7
  import { Context, CookieJar } from 'wirejs-resources';
8
8
 
9
- /**
10
- *
11
- const http = require('http');
12
- const fs = require('fs');
13
- const path = require('path');
14
-
15
- const { JSDOM } = require('jsdom');
16
- const { useJSDOM } = require('wirejs-dom/v2');
17
- const { Context, CookieJar } = require('wirejs-resources');
18
- */
19
-
20
9
  const SSR_ROOT = path.join(path.dirname(module.filename), 'ssr');
21
10
 
22
11
  const logger = {
package/build.js CHANGED
@@ -41,6 +41,18 @@ async function createSkeleton() {
41
41
  // skeleton for hosting assets
42
42
  await copy(path.join(SELF_DIR, 'amplify-hosting-assets'), path.join(HOSTING_DIR));
43
43
  console.log("done creating deployment directories")
44
+
45
+ console.log("building SSR server");
46
+ await esbuild.build({
47
+ entryPoints: [path.join(HOSTING_DIR, 'compute', 'default', 'index.src.js')],
48
+ bundle: true,
49
+ outfile: path.join(HOSTING_DIR, 'compute', 'default', 'index.js'),
50
+ platform: 'node',
51
+ format: 'esm',
52
+ });
53
+
54
+ console.log('removing SSR server sourcefiles');
55
+ await rimraf(path.join(HOSTING_DIR, 'compute', 'default', 'index.src.js'));
44
56
  }
45
57
 
46
58
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.8-alpha",
3
+ "version": "0.0.9-alpha",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "wirejs-deploy-amplify-basic": "./build.js"
@@ -8,8 +8,10 @@
8
8
  "dependencies": {
9
9
  "copy": "^0.3.2",
10
10
  "esbuild": "^0.24.2",
11
+ "jsdom": "^25.0.0",
11
12
  "recursive-copy": "^2.0.14",
12
13
  "rimraf": "^6.0.1",
14
+ "wirejs-dom": "^1.0.34",
13
15
  "wirejs-resources": "^0.1.5-alpha"
14
16
  },
15
17
  "devDependencies": {