@skafform/create 0.2.3 → 0.2.5
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/next.js +6 -11
- package/package.json +1 -1
package/dist/next.js
CHANGED
|
@@ -140,19 +140,14 @@ function scaffoldNext(name, targetDir) {
|
|
|
140
140
|
"};\n" +
|
|
141
141
|
"\n" +
|
|
142
142
|
"export default nextConfig;\n");
|
|
143
|
-
(0, fs_1.writeFileSync)((0, path_1.join)(
|
|
143
|
+
(0, fs_1.writeFileSync)((0, path_1.join)(skafformDir, "config.ts"), "// Skafform managed — do not edit\n" +
|
|
144
|
+
"export default {} as const\n");
|
|
145
|
+
(0, fs_1.writeFileSync)((0, path_1.join)(targetDir, "config.ts"), "import skafformConfig from \"./.skafform/config\"\n" +
|
|
146
|
+
"\n" +
|
|
147
|
+
"const config = {\n" +
|
|
144
148
|
" appName: \"My App\",\n" +
|
|
145
149
|
" appDescription: \"Built with Skafform\",\n" +
|
|
146
|
-
"
|
|
147
|
-
" name: string\n" +
|
|
148
|
-
" price: number\n" +
|
|
149
|
-
" priceAnchor?: number\n" +
|
|
150
|
-
" planId: string\n" +
|
|
151
|
-
" mode?: \"payment\" | \"subscription\"\n" +
|
|
152
|
-
" description?: string\n" +
|
|
153
|
-
" features: { name: string }[]\n" +
|
|
154
|
-
" isFeatured: boolean\n" +
|
|
155
|
-
" }[],\n" +
|
|
150
|
+
" ...skafformConfig,\n" +
|
|
156
151
|
"}\n" +
|
|
157
152
|
"\n" +
|
|
158
153
|
"export default config\n");
|