aaex-cli 3.1.0 → 3.1.2

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.
@@ -46,7 +46,7 @@ async function createPackageJson() {
46
46
  type: "module",
47
47
  scripts: {
48
48
  dev: "node .aaex/server/server.js",
49
- build:"vite build && node .aaex/Build.js",
49
+ build: "npm build client && npm client-entry && npm build:server",
50
50
  "build:client": "vite build",
51
51
  "build:server": "vite build --config vite.server.config.ts",
52
52
  "client-entry": "node .aaex/Build.js",
@@ -67,7 +67,7 @@ async function createPackageJson() {
67
67
 
68
68
  bcrypt: "^6.0.0",
69
69
  dotenv: "^17.2.3",
70
- aaexjs: "^3.1.0",
70
+ aaexjs: "^3.1.3",
71
71
  },
72
72
  devDependencies: {
73
73
  typescript: "~5.9.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaex-cli",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Command line interface for creating aaexjs app",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -40,6 +40,6 @@
40
40
  "inquirer": "^13.1.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "aaexjs": "^2.1.5"
43
+ "aaexjs": "^3.1.3"
44
44
  }
45
45
  }
@@ -11,6 +11,6 @@
11
11
  <body>
12
12
  <div id="root"><!--app-html--></div>
13
13
  <!--initial-data-->
14
- <script type="module" src="/.aaex/framework/entry-client.tsx"></script>
14
+ <!--app-scripts-->
15
15
  </body>
16
16
  </html>
@@ -1,11 +1,14 @@
1
1
  import { defineConfig } from "vite";
2
2
  import react from "@vitejs/plugin-react";
3
3
  import { aaexServerRouter } from "aaex-file-router/plugin";
4
- import { SSRCss } from "aaexjs";
4
+ import { SSRCss, aliasFromTsConfig } from "aaexjs";
5
5
 
6
6
  export default defineConfig({
7
7
  plugins: [react(), aaexServerRouter(), SSRCss()],
8
8
  root: ".",
9
+ resolve: {
10
+ alias: aliasFromTsConfig(),
11
+ },
9
12
  build: {
10
13
  outDir: "dist/client",
11
14
  emptyOutDir: true,
@@ -1,10 +1,13 @@
1
1
  import fg from "fast-glob";
2
2
  import { defineConfig } from "vite";
3
- import path from "path";
3
+ import { aliasFromTsConfig } from "aaexjs";
4
4
 
5
5
  const apiEntries = await fg("src/api/**/*.ts");
6
6
 
7
7
  export default defineConfig({
8
+ resolve: {
9
+ alias: aliasFromTsConfig(),
10
+ },
8
11
  build: {
9
12
  ssr: true,
10
13
  outDir: "dist/server",