rasengan 1.0.0-beta.16 → 1.0.0-beta.17

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.
@@ -79,7 +79,7 @@ function handleRequest(req, res) {
79
79
  _b.trys.push([0, 8, , 9]);
80
80
  url = req.url;
81
81
  host = req.headers.host;
82
- appPath = process.cwd();
82
+ appPath = (0, node_path_1.join)(process.cwd(), "..");
83
83
  if (!(url === "/robots.txt")) return [3 /*break*/, 4];
84
84
  _b.label = 1;
85
85
  case 1:
@@ -94,15 +94,15 @@ function handleRequest(req, res) {
94
94
  case 4:
95
95
  // ! Sitemap Fix
96
96
  if (url === "/sitemap.xml") {
97
- return [2 /*return*/, res.send(node_path_1.default.resolve((0, node_path_1.join)(appPath, "client/sitemap.xml")))];
97
+ return [2 /*return*/, res.send(node_path_1.default.resolve((0, node_path_1.join)(appPath, "dist/client/sitemap.xml")))];
98
98
  }
99
99
  // ! Manifest Fix
100
100
  if (url === "/manifest.json") {
101
- return [2 /*return*/, res.send(node_path_1.default.resolve((0, node_path_1.join)(appPath, "client/manifest.json")))];
101
+ return [2 /*return*/, res.send(node_path_1.default.resolve((0, node_path_1.join)(appPath, "dist/client/manifest.json")))];
102
102
  }
103
103
  templateHtml = "";
104
- serverFilePath = (0, node_path_1.join)(appPath, "server/entry-server.js");
105
- bootstrapDirPath = (0, node_path_1.join)(appPath, "client/assets");
104
+ serverFilePath = (0, node_path_1.join)(appPath, "dist/server/entry-server.js");
105
+ bootstrapDirPath = (0, node_path_1.join)(appPath, "dist/client/assets");
106
106
  return [4 /*yield*/, Promise.resolve("".concat(serverFilePath)).then(function (s) { return __importStar(require(s)); })];
107
107
  case 5:
108
108
  entry = _b.sent();
@@ -51,7 +51,7 @@ export default function handleRequest(req, res) {
51
51
  _b.trys.push([0, 8, , 9]);
52
52
  url = req.url;
53
53
  host = req.headers.host;
54
- appPath = process.cwd();
54
+ appPath = join(process.cwd(), "..");
55
55
  if (!(url === "/robots.txt")) return [3 /*break*/, 4];
56
56
  _b.label = 1;
57
57
  case 1:
@@ -66,15 +66,15 @@ export default function handleRequest(req, res) {
66
66
  case 4:
67
67
  // ! Sitemap Fix
68
68
  if (url === "/sitemap.xml") {
69
- return [2 /*return*/, res.send(path.resolve(join(appPath, "client/sitemap.xml")))];
69
+ return [2 /*return*/, res.send(path.resolve(join(appPath, "dist/client/sitemap.xml")))];
70
70
  }
71
71
  // ! Manifest Fix
72
72
  if (url === "/manifest.json") {
73
- return [2 /*return*/, res.send(path.resolve(join(appPath, "client/manifest.json")))];
73
+ return [2 /*return*/, res.send(path.resolve(join(appPath, "dist/client/manifest.json")))];
74
74
  }
75
75
  templateHtml = "";
76
- serverFilePath = join(appPath, "server/entry-server.js");
77
- bootstrapDirPath = join(appPath, "client/assets");
76
+ serverFilePath = join(appPath, "dist/server/entry-server.js");
77
+ bootstrapDirPath = join(appPath, "dist/client/assets");
78
78
  return [4 /*yield*/, import(serverFilePath)];
79
79
  case 5:
80
80
  entry = _b.sent();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rasengan",
3
3
  "private": false,
4
- "version": "1.0.0-beta.16",
4
+ "version": "1.0.0-beta.17",
5
5
  "description": "The modern frontend framework for React",
6
6
  "type": "module",
7
7
  "main": "lib/esm/index.js",