@cedarjs/prerender 3.0.0-canary.13593 → 3.0.0-canary.13595

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.
@@ -1 +1 @@
1
- {"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../../src/detection/detection.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB;;;;;;;;;GAsBjC,CAAA"}
1
+ {"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../../src/detection/detection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;GAqBjC,CAAA"}
@@ -21,11 +21,9 @@ __export(detection_exports, {
21
21
  detectPrerenderRoutes: () => detectPrerenderRoutes
22
22
  });
23
23
  module.exports = __toCommonJS(detection_exports);
24
- var import_project_config = require("@cedarjs/project-config");
25
24
  var import_structure = require("@cedarjs/structure");
26
25
  const detectPrerenderRoutes = () => {
27
- const rwProject = (0, import_structure.getProject)((0, import_project_config.getPaths)().base);
28
- const routes = rwProject.getRouter().routes;
26
+ const routes = (0, import_structure.getProject)().getRouter().routes;
29
27
  const prerenderRoutes = routes.filter((route) => route.prerender).map((route) => ({
30
28
  name: route.isNotFound ? "404" : route.name,
31
29
  // `path` will be updated/expanded later where route parameters will be
@@ -1 +1 @@
1
- {"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/detection/detection.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB;;;;;;;;;GAsBjC,CAAA"}
1
+ {"version":3,"file":"detection.d.ts","sourceRoot":"","sources":["../../src/detection/detection.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;;;;;;;;GAqBjC,CAAA"}
@@ -1,8 +1,6 @@
1
- import { getPaths } from "@cedarjs/project-config";
2
1
  import { getProject } from "@cedarjs/structure";
3
2
  const detectPrerenderRoutes = () => {
4
- const rwProject = getProject(getPaths().base);
5
- const routes = rwProject.getRouter().routes;
3
+ const routes = getProject().getRouter().routes;
6
4
  const prerenderRoutes = routes.filter((route) => route.prerender).map((route) => ({
7
5
  name: route.isNotFound ? "404" : route.name,
8
6
  // `path` will be updated/expanded later where route parameters will be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/prerender",
3
- "version": "3.0.0-canary.13593+293bde2df",
3
+ "version": "3.0.0-canary.13595+518e859b9",
4
4
  "description": "CedarJS prerender",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,12 +71,12 @@
71
71
  "@babel/generator": "7.29.1",
72
72
  "@babel/parser": "7.29.0",
73
73
  "@babel/traverse": "7.29.0",
74
- "@cedarjs/babel-config": "3.0.0-canary.13593",
75
- "@cedarjs/project-config": "3.0.0-canary.13593",
76
- "@cedarjs/router": "3.0.0-canary.13593",
77
- "@cedarjs/structure": "3.0.0-canary.13593",
78
- "@cedarjs/vite": "3.0.0-canary.13593",
79
- "@cedarjs/web": "3.0.0-canary.13593",
74
+ "@cedarjs/babel-config": "3.0.0-canary.13595",
75
+ "@cedarjs/project-config": "3.0.0-canary.13595",
76
+ "@cedarjs/router": "3.0.0-canary.13595",
77
+ "@cedarjs/structure": "3.0.0-canary.13595",
78
+ "@cedarjs/vite": "3.0.0-canary.13595",
79
+ "@cedarjs/web": "3.0.0-canary.13595",
80
80
  "@rollup/plugin-alias": "5.1.1",
81
81
  "@rollup/plugin-commonjs": "28.0.9",
82
82
  "@rollup/plugin-node-resolve": "16.0.3",
@@ -95,7 +95,7 @@
95
95
  "vite-node": "3.2.4"
96
96
  },
97
97
  "devDependencies": {
98
- "@cedarjs/framework-tools": "3.0.0-canary.13593",
98
+ "@cedarjs/framework-tools": "3.0.0-canary.13595",
99
99
  "@types/mime-types": "2.1.4",
100
100
  "@types/react": "^18.2.55",
101
101
  "babel-plugin-tester": "11.0.4",
@@ -116,5 +116,5 @@
116
116
  "react": "react",
117
117
  "react-dom": "react-dom"
118
118
  },
119
- "gitHead": "293bde2dfef45991bb28ca3b706b480ffd7eb8ee"
119
+ "gitHead": "518e859b962157df25533b15645352e2bdfc7b9a"
120
120
  }