hazo_auth 3.0.1 → 3.0.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.
@@ -45,7 +45,7 @@ const PAGES = [
45
45
  { name: "verify_email", path: "hazo_auth/verify_email", component_name: "VerifyEmailPage", import_path: "hazo_auth/pages/verify_email" },
46
46
  { name: "my_settings", path: "hazo_auth/my_settings", component_name: "MySettingsPage", import_path: "hazo_auth/pages/my_settings" },
47
47
  ];
48
- // Note: The import_path uses "hazo_auth/pages/*" which maps to dist/page_components/* in package.json exports
48
+ // Note: Using barrel export "hazo_auth/pages" which maps to dist/server_pages/index.js in package.json exports
49
49
  // section: helpers
50
50
  function get_project_root() {
51
51
  return process.cwd();
@@ -90,7 +90,7 @@ ${exports}
90
90
  function generate_page_content(page) {
91
91
  return `// Generated by hazo_auth - do not edit manually
92
92
  // Page: /${page.path}
93
- import { ${page.component_name} } from "${page.import_path}";
93
+ import { ${page.component_name} } from "hazo_auth/pages";
94
94
 
95
95
  export default ${page.component_name};
96
96
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hazo_auth",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -129,7 +129,7 @@
129
129
  "scripts": {
130
130
  "dev": "next dev",
131
131
  "build": "next build",
132
- "build:pkg": "tsc -p tsconfig.build.json",
132
+ "build:pkg": "tsc -p tsconfig.build.json && tsx scripts/copy_assets.ts",
133
133
  "prepublishOnly": "npm run build:pkg",
134
134
  "validate": "tsx scripts/validate_setup.ts",
135
135
  "generate-routes": "tsx scripts/generate_routes.ts",