@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.
Files changed (2) hide show
  1. package/package.json +4 -1
  2. package/src/init.ts +5 -3
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@zappdev/cli",
3
- "version": "0.5.0-alpha.5",
3
+ "version": "0.5.0-alpha.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "zapp": "./src/zapp-cli.ts"
7
7
  },
8
+ "exports": {
9
+ "./config": "./src/config.ts"
10
+ },
8
11
  "files": [
9
12
  "src/",
10
13
  "native/",
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"), `export default {
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