@onexapis/cli 1.1.6 → 1.1.8
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/dist/cli.js +49 -45
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +49 -45
- package/dist/cli.mjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/default/esbuild.config.js +3 -3
package/dist/index.mjs
CHANGED
|
@@ -713,7 +713,8 @@ export function headers() { return new Headers(); }
|
|
|
713
713
|
};
|
|
714
714
|
return {
|
|
715
715
|
contents: stubs[args.path] || "export default {};",
|
|
716
|
-
loader: "jsx"
|
|
716
|
+
loader: "jsx",
|
|
717
|
+
resolveDir: themePath
|
|
717
718
|
};
|
|
718
719
|
});
|
|
719
720
|
}
|
|
@@ -1285,10 +1286,10 @@ export const manifest: ThemeExport = {
|
|
|
1285
1286
|
author: "${data.author}",
|
|
1286
1287
|
|
|
1287
1288
|
// Theme configuration
|
|
1288
|
-
config: () => import("./
|
|
1289
|
+
config: () => import("./config").then((m) => m.themeConfig),
|
|
1289
1290
|
|
|
1290
1291
|
// Theme layout (header/footer sections)
|
|
1291
|
-
layout: () => import("./
|
|
1292
|
+
layout: () => import("./layout").then((m) => m.themeLayout),
|
|
1292
1293
|
|
|
1293
1294
|
// Available sections in this theme
|
|
1294
1295
|
sections: {
|
|
@@ -1454,9 +1455,9 @@ function generateThemeIndex(data) {
|
|
|
1454
1455
|
* ${data.themeNamePascal} Theme
|
|
1455
1456
|
*/
|
|
1456
1457
|
|
|
1457
|
-
export { manifest as ${data.
|
|
1458
|
-
export { themeConfig as ${data.
|
|
1459
|
-
export { themeLayout as ${data.
|
|
1458
|
+
export { manifest as ${data.themeNamePascal}Manifest } from "./manifest";
|
|
1459
|
+
export { themeConfig as ${data.themeNamePascal}Config } from "./config";
|
|
1460
|
+
export { themeLayout as ${data.themeNamePascal}Layout } from "./layout";
|
|
1460
1461
|
`;
|
|
1461
1462
|
}
|
|
1462
1463
|
function generateHomePage(data) {
|