@zappdev/cli 0.5.0-alpha.5 → 0.5.0-alpha.6
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 +4 -1
- package/src/init.ts +5 -3
package/package.json
CHANGED
package/src/init.ts
CHANGED
|
@@ -102,13 +102,15 @@ fn main() -> int {
|
|
|
102
102
|
}
|
|
103
103
|
`);
|
|
104
104
|
|
|
105
|
-
// 3. Add zapp.config.ts
|
|
105
|
+
// 3. Add zapp.config.ts — typed via defineConfig for autocomplete
|
|
106
106
|
const identifier = `com.zapp.${name.toLowerCase().replace(/[^a-z0-9]/g, "")}`;
|
|
107
|
-
await Bun.write(path.join(projectDir, "zapp.config.ts"), `
|
|
107
|
+
await Bun.write(path.join(projectDir, "zapp.config.ts"), `import { defineConfig } from "@zappdev/cli/config";
|
|
108
|
+
|
|
109
|
+
export default defineConfig({
|
|
108
110
|
name: "${name}",
|
|
109
111
|
identifier: "${identifier}",
|
|
110
112
|
version: "0.1.0",
|
|
111
|
-
};
|
|
113
|
+
});
|
|
112
114
|
`);
|
|
113
115
|
|
|
114
116
|
// 4. Update package.json — add deps and scripts
|