wirejs-deploy-amplify-basic 0.0.53 → 0.0.55

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.
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.38",
6
- "wirejs-resources": "^0.1.21"
6
+ "wirejs-resources": "^0.1.23"
7
7
  }
8
8
  }
package/build.js CHANGED
@@ -133,15 +133,24 @@ async function deployFrontend() {
133
133
  console.log("copying frontend assets");
134
134
  await copy(PROJECT_DIST_DIR, STATIC_DIR);
135
135
 
136
- // ssr will likely have been build as a static asset, but should NOT be
137
- // served as a static resource.
138
- await rimraf(path.join(STATIC_DIR, 'ssr'));
136
+ try {
137
+ // ssr will likely have been build as a static asset, but should NOT be
138
+ // served as a static resource.
139
+ await rimraf(path.join(STATIC_DIR, 'ssr'));
140
+ } catch {
141
+ // doesn't exist. that's ok.
142
+ }
143
+
144
+ try {
145
+ // instead, ssr should be served from the "compute" directory, served by lambda@edge
146
+ await copy(
147
+ path.join(PROJECT_DIST_DIR, 'ssr'),
148
+ path.join(HOSTING_DIR, 'compute', 'default', 'ssr')
149
+ );
150
+ } catch {
151
+ // doesn't exist. that's ok.
152
+ }
139
153
 
140
- // instead, ssr should be served from the "compute" directory, served by lambda@edge
141
- await copy(
142
- path.join(PROJECT_DIST_DIR, 'ssr'),
143
- path.join(HOSTING_DIR, 'compute', 'default', 'ssr')
144
- );
145
154
  console.log('frontend assets copied');
146
155
  }
147
156
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "recursive-copy": "^2.0.14",
31
31
  "rimraf": "^6.0.1",
32
32
  "wirejs-dom": "^1.0.38",
33
- "wirejs-resources": "^0.1.21"
33
+ "wirejs-resources": "^0.1.23"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@aws-amplify/backend": "^1.14.0",