wirejs-deploy-amplify-basic 0.0.115-realtime → 0.0.116-realtime

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.41",
6
- "wirejs-resources": "^0.1.83-realtime"
6
+ "wirejs-resources": "^0.1.84-realtime"
7
7
  }
8
8
  }
package/build.js CHANGED
@@ -5,7 +5,7 @@ import path from 'path';
5
5
  import fs from 'fs';
6
6
  import { rimraf } from 'rimraf';
7
7
  import copy from 'recursive-copy';
8
- import { exec, execSync } from 'child_process';
8
+ import { execSync } from 'child_process';
9
9
 
10
10
  const CWD = process.cwd();
11
11
  const __filename = import.meta.url.replace(/^file:/, '');
@@ -87,14 +87,13 @@ async function installDeps() {
87
87
  async function discoverResources() {
88
88
  console.log("discovering resources")
89
89
  // exploratory import. resources will emit to globalThis.wirejsResources
90
+ execSync(`cd api && npm run prebuild`);
90
91
  await import(path.join(CWD, 'api', 'dist', 'index.js'));
91
92
  console.log('discovered resources', globalThis.wirejsResources);
92
93
  await fs.promises.writeFile(
93
94
  path.join(BACKEND_DIR, 'generated-resources.ts'),
94
95
  `export default ${JSON.stringify(globalThis.wirejsResources, null, 2)}`
95
96
  );
96
-
97
- return outputPath;
98
97
  }
99
98
 
100
99
  async function deployFrontend() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.115-realtime",
3
+ "version": "0.0.116-realtime",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "recursive-copy": "^2.0.14",
42
42
  "rimraf": "^6.0.1",
43
43
  "wirejs-dom": "^1.0.41",
44
- "wirejs-resources": "^0.1.83-realtime"
44
+ "wirejs-resources": "^0.1.84-realtime"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@aws-amplify/backend": "^1.14.0",