@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.js
CHANGED
|
@@ -750,7 +750,8 @@ export function headers() { return new Headers(); }
|
|
|
750
750
|
};
|
|
751
751
|
return {
|
|
752
752
|
contents: stubs[args.path] || "export default {};",
|
|
753
|
-
loader: "jsx"
|
|
753
|
+
loader: "jsx",
|
|
754
|
+
resolveDir: themePath
|
|
754
755
|
};
|
|
755
756
|
});
|
|
756
757
|
}
|
|
@@ -1322,10 +1323,10 @@ export const manifest: ThemeExport = {
|
|
|
1322
1323
|
author: "${data.author}",
|
|
1323
1324
|
|
|
1324
1325
|
// Theme configuration
|
|
1325
|
-
config: () => import("./
|
|
1326
|
+
config: () => import("./config").then((m) => m.themeConfig),
|
|
1326
1327
|
|
|
1327
1328
|
// Theme layout (header/footer sections)
|
|
1328
|
-
layout: () => import("./
|
|
1329
|
+
layout: () => import("./layout").then((m) => m.themeLayout),
|
|
1329
1330
|
|
|
1330
1331
|
// Available sections in this theme
|
|
1331
1332
|
sections: {
|
|
@@ -1491,9 +1492,9 @@ function generateThemeIndex(data) {
|
|
|
1491
1492
|
* ${data.themeNamePascal} Theme
|
|
1492
1493
|
*/
|
|
1493
1494
|
|
|
1494
|
-
export { manifest as ${data.
|
|
1495
|
-
export { themeConfig as ${data.
|
|
1496
|
-
export { themeLayout as ${data.
|
|
1495
|
+
export { manifest as ${data.themeNamePascal}Manifest } from "./manifest";
|
|
1496
|
+
export { themeConfig as ${data.themeNamePascal}Config } from "./config";
|
|
1497
|
+
export { themeLayout as ${data.themeNamePascal}Layout } from "./layout";
|
|
1497
1498
|
`;
|
|
1498
1499
|
}
|
|
1499
1500
|
function generateHomePage(data) {
|