wirejs-deploy-amplify-basic 0.0.8-alpha → 0.0.10-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 = {
@@ -1,3 +1,8 @@
1
1
  {
2
- "type": "module"
2
+ "type": "module",
3
+ "dependencies": {
4
+ "jsdom": "^25.0.0",
5
+ "wirejs-dom": "^1.0.34",
6
+ "wirejs-resources": "^0.1.5-alpha"
7
+ }
3
8
  }
package/build.js CHANGED
@@ -6,7 +6,7 @@ import fs from 'fs';
6
6
  import { rimraf } from 'rimraf';
7
7
  import copy from 'recursive-copy';
8
8
  import esbuild from 'esbuild';
9
- import { execSync } from 'child_process';
9
+ import { exec, execSync } from 'child_process';
10
10
 
11
11
  const CWD = process.cwd();
12
12
  const __filename = import.meta.url.replace(/^file:/, '');
@@ -41,6 +41,9 @@ 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("installing SSR server deps");
46
+ execSync(`npm install --prefix ${COMPUTE_DIR} --no-hoist`)
44
47
  }
45
48
 
46
49
  /**
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.10-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": {