@solidstarters/create-solid-app 1.2.14 → 1.2.15

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/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@solidstarters/create-solid-app",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "main": "index.js",
5
5
  "private": false,
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1"
10
+ "test": "echo \"Error: no test specified\" && exit 1",
11
+ "publish:patch": "node publish.js patch",
12
+ "publish:minor": "node publish.js minor",
13
+ "publish:major": "node publish.js major"
11
14
  },
12
15
  "keywords": [],
13
16
  "author": "",
package/publish.js ADDED
@@ -0,0 +1,16 @@
1
+ import { execSync } from "child_process";
2
+
3
+ const versionType = process.argv[2] || "patch"; // Default to patch if not specified
4
+
5
+ try {
6
+ console.log(`🔄 Updating package version (${versionType})...`);
7
+ execSync(`npm version ${versionType}`, { stdio: "inherit" });
8
+
9
+ console.log("📦 Publishing package...");
10
+ execSync("npm publish", { stdio: "inherit" });
11
+
12
+ console.log("✅ Published successfully!");
13
+ } catch (error) {
14
+ console.error("❌ Error:", error.message);
15
+ process.exit(1);
16
+ }
@@ -0,0 +1,8 @@
1
+ export default function ModuleHome() {
2
+ return (
3
+ <div>
4
+ <h1>Module Home Page</h1>
5
+ <p>Welcome to the module home page.</p>
6
+ </div>
7
+ );
8
+ }
@@ -1,19 +0,0 @@
1
- "use client"
2
-
3
- import { useLazyGetSolidSettingsQuery } from "@solidstarters/solid-core-ui"
4
- import { useEffect } from "react"
5
- import { GeneralSettings } from "@solidstarters/solid-core-ui"
6
-
7
- const Page = () => {
8
- const [trigger, { data: solidSettingsData }] = useLazyGetSolidSettingsQuery()
9
-
10
- useEffect(() => {
11
- trigger("") // Fetch settings on mount
12
- }, [trigger])
13
-
14
- return (
15
- <GeneralSettings solidSettingsData={solidSettingsData}/>
16
- )
17
- }
18
-
19
- export default Page