create-ponder 0.0.6 → 0.0.7
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/index.js +6 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -213,6 +213,8 @@ module.exports = ponderConfig;`;
|
|
|
213
213
|
generated/`
|
|
214
214
|
);
|
|
215
215
|
const packageManager = await (0, import_detectPackageManager.detect)();
|
|
216
|
+
const runCommand =
|
|
217
|
+
packageManager === "npm" ? `${packageManager} run` : packageManager;
|
|
216
218
|
const renderYaml = `
|
|
217
219
|
# This file was generated by \`create-ponder\`. You can deploy your Ponder app
|
|
218
220
|
# by signing in to https://render.com, connecting this repository, and clicking Deploy.
|
|
@@ -222,7 +224,7 @@ services:
|
|
|
222
224
|
name: ponder-app
|
|
223
225
|
env: node
|
|
224
226
|
buildCommand: ${packageManager} install
|
|
225
|
-
startCommand: ${
|
|
227
|
+
startCommand: ${runCommand} start
|
|
226
228
|
envVars:
|
|
227
229
|
- key: POSTGRES_URL
|
|
228
230
|
fromDatabase:
|
|
@@ -255,7 +257,7 @@ databases:
|
|
|
255
257
|
import_picocolors.default.cyan("[create-ponder] ") + `Generating types`
|
|
256
258
|
);
|
|
257
259
|
(0, import_node_child_process.execSync)(
|
|
258
|
-
`${
|
|
260
|
+
`${runCommand} --silent codegen --silent`,
|
|
259
261
|
{
|
|
260
262
|
cwd: ponderRootDir,
|
|
261
263
|
stdio: "inherit",
|
|
@@ -264,11 +266,8 @@ databases:
|
|
|
264
266
|
console.log(
|
|
265
267
|
import_picocolors.default.cyan("[create-ponder] ") +
|
|
266
268
|
import_picocolors.default.green("Done! ") +
|
|
267
|
-
`To get started
|
|
268
|
-
`
|
|
269
|
-
".",
|
|
270
|
-
ponderRootDir
|
|
271
|
-
)} && ${packageManager} run dev`
|
|
269
|
+
`To get started run ${import_picocolors.default.yellow(
|
|
270
|
+
`${runCommand} dev`
|
|
272
271
|
)}`
|
|
273
272
|
);
|
|
274
273
|
};
|