@akinon/next 1.34.0-rc.8 → 1.34.0-rc.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.34.0-rc.9
4
+
5
+ ### Minor Changes
6
+
7
+ - beb499e: ZERO-2551: Add new tsconfig paths
8
+
3
9
  ## 1.34.0-rc.8
4
10
 
5
11
  ### Minor Changes
@@ -3,4 +3,4 @@
3
3
  const runScript = require('./run-script');
4
4
 
5
5
  runScript('pz-install-theme.js');
6
- runScript('pz-pre-check-dist.js');
6
+ // runScript('pz-pre-check-dist.js');
@@ -198,8 +198,10 @@ const withPzDefault =
198
198
  pathname.pop(),
199
199
  'pz-not-found'
200
200
  );
201
-
202
- if(Settings.usePrettyUrlRoute &&
201
+ }
202
+
203
+ if (
204
+ Settings.usePrettyUrlRoute &&
203
205
  url.searchParams.toString().length > 0
204
206
  ) {
205
207
  url.pathname =
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.34.0-rc.8",
4
+ "version": "1.34.0-rc.9",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -35,7 +35,7 @@
35
35
  "@typescript-eslint/eslint-plugin": "6.7.4",
36
36
  "@typescript-eslint/parser": "6.7.4",
37
37
  "eslint": "^8.14.0",
38
- "@akinon/eslint-plugin-projectzero": "1.34.0-rc.8",
38
+ "@akinon/eslint-plugin-projectzero": "1.34.0-rc.9",
39
39
  "eslint-config-prettier": "8.5.0"
40
40
  }
41
41
  }
@@ -89,31 +89,31 @@ export async function generateMetadata({ params }: PageProps) {
89
89
 
90
90
  try {
91
91
  if (prettyUrlResult.path.startsWith('/product/')) {
92
- await import('@root/product/[pk]/page').then(async (module) => {
92
+ await import('@product/[pk]/page').then(async (module) => {
93
93
  result = await module['generateMetadata']?.(commonProps);
94
94
  });
95
95
  }
96
96
 
97
97
  if (prettyUrlResult.path.startsWith('/group-product/')) {
98
- await import('@root/group-product/[pk]/page').then(async (module) => {
98
+ await import('@group-product/[pk]/page').then(async (module) => {
99
99
  result = await module['generateMetadata']?.(commonProps);
100
100
  });
101
101
  }
102
102
 
103
103
  if (prettyUrlResult.path.startsWith('/category/')) {
104
- await import('@root/category/[pk]/page').then(async (module) => {
104
+ await import('@category/[pk]/page').then(async (module) => {
105
105
  result = await module['generateMetadata']?.(commonProps);
106
106
  });
107
107
  }
108
108
 
109
109
  if (prettyUrlResult.path.startsWith('/special-page/')) {
110
- await import('@root/special-page/[pk]/page').then(async (module) => {
110
+ await import('@special-page/[pk]/page').then(async (module) => {
111
111
  result = await module['generateMetadata']?.(commonProps);
112
112
  });
113
113
  }
114
114
 
115
115
  if (prettyUrlResult.path.startsWith('/flat-page/')) {
116
- await import('@root/flat-page/[pk]/page').then(async (module) => {
116
+ await import('@flat-page/[pk]/page').then(async (module) => {
117
117
  result = await module['generateMetadata']?.(commonProps);
118
118
  });
119
119
  }
@@ -166,28 +166,27 @@ export default async function Page({ params }) {
166
166
  };
167
167
 
168
168
  if (result.path.startsWith('/category/')) {
169
- const CategoryPage = (await import('@root/category/[pk]/page')).default;
169
+ const CategoryPage = (await import('@category/[pk]/page')).default;
170
170
  return <CategoryPage {...commonProps} />;
171
171
  }
172
172
 
173
173
  if (result.path.startsWith('/product/')) {
174
- const ProductPage = (await import('@root/product/[pk]/page')).default;
174
+ const ProductPage = (await import('@product/[pk]/page')).default;
175
175
  return <ProductPage {...commonProps} />;
176
176
  }
177
177
 
178
178
  if (result.path.startsWith('/group-product/')) {
179
- const GroupProduct = (await import('@root/group-product/[pk]/page'))
180
- .default;
179
+ const GroupProduct = (await import('@group-product/[pk]/page')).default;
181
180
  return <GroupProduct {...commonProps} />;
182
181
  }
183
182
 
184
183
  if (result.path.startsWith('/special-page/')) {
185
- const SpecialPage = (await import('@root/special-page/[pk]/page')).default;
184
+ const SpecialPage = (await import('@special-page/[pk]/page')).default;
186
185
  return <SpecialPage {...commonProps} />;
187
186
  }
188
187
 
189
188
  if (result.path.startsWith('/flat-page/')) {
190
- const FlatPage = (await import('@root/flat-page/[pk]/page')).default;
189
+ const FlatPage = (await import('@flat-page/[pk]/page')).default;
191
190
  return <FlatPage {...commonProps} />;
192
191
  }
193
192