create-wattpm 3.0.3 → 3.0.4

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/lib/index.js +8 -4
  2. package/package.json +7 -7
package/lib/index.js CHANGED
@@ -189,7 +189,7 @@ export async function wrapApplication (
189
189
  await generator.writeFiles()
190
190
 
191
191
  if (install) {
192
- logger.info(`Installing dependencies for the application using ${packageManager} ...`)
192
+ logger.info(`Installing dependencies for the project using ${packageManager} ...`)
193
193
  await execa(packageManager, ['install'], {
194
194
  cwd: projectDir,
195
195
  stdio: 'inherit',
@@ -213,7 +213,7 @@ export async function createPlatformatic (argv) {
213
213
  const username = await getUsername()
214
214
  const version = await getVersion()
215
215
  const greeting = username ? `Hello ${username},` : 'Hello,'
216
- await say(`${greeting} welcome to ${version ? `Platformatic ${version}!` : 'Platformatic!'}`)
216
+ await say(`${greeting} welcome to ${version ? `Watt ${version}!` : 'Watt!'}`)
217
217
 
218
218
  const logger = pino(
219
219
  pretty({
@@ -224,7 +224,10 @@ export async function createPlatformatic (argv) {
224
224
 
225
225
  const pkgManager = getPkgManager()
226
226
  const modules = Array.isArray(args.module) ? args.module : [args.module]
227
- await createApplication(logger, pkgManager, modules, args['install'])
227
+ await createApplication(logger, pkgManager, modules, args['install'], {
228
+ runtimeConfig: 'watt.json',
229
+ applicationsFolder: 'web'
230
+ })
228
231
  }
229
232
 
230
233
  export async function createApplication (
@@ -248,6 +251,7 @@ export async function createApplication (
248
251
  if (runtimeConfigFile) {
249
252
  shouldChooseProjectDir = false
250
253
  projectDir = dirname(runtimeConfigFile)
254
+ additionalGeneratorOptions.runtimeConfig = basename(runtimeConfigFile)
251
255
  } else {
252
256
  // Check the current directory for suitable config files
253
257
  const applicationRoot = await findApplicationRoot(projectDir)
@@ -503,7 +507,7 @@ export async function createApplication (
503
507
  // add pnpm-workspace.yaml file if needed
504
508
  const content = `packages:
505
509
  # all packages in direct subdirs of packages/
506
- - 'services/*'
510
+ - 'applications/*'
507
511
  - 'services/*'
508
512
  - 'web/*'`
509
513
  await writeFile(join(projectDir, 'pnpm-workspace.yaml'), content)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wattpm",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Create platformatic application interactive tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,8 +24,8 @@
24
24
  "resolve": "^1.22.8",
25
25
  "undici": "^7.0.0",
26
26
  "which": "^3.0.1",
27
- "@platformatic/foundation": "3.0.3",
28
- "@platformatic/generators": "3.0.3"
27
+ "@platformatic/foundation": "3.0.4",
28
+ "@platformatic/generators": "3.0.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^22.5.0",
@@ -39,10 +39,10 @@
39
39
  "semver": "^7.6.0",
40
40
  "typescript": "~5.8.0",
41
41
  "yaml": "^2.4.1",
42
- "@platformatic/gateway": "3.0.3",
43
- "@platformatic/db": "3.0.3",
44
- "@platformatic/runtime": "3.0.3",
45
- "@platformatic/service": "3.0.3"
42
+ "@platformatic/db": "3.0.4",
43
+ "@platformatic/runtime": "3.0.4",
44
+ "@platformatic/gateway": "3.0.4",
45
+ "@platformatic/service": "3.0.4"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.18.0"