create-platformatic 2.22.0 → 2.24.0

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 +9 -10
  2. package/src/index.mjs +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-platformatic",
3
- "version": "2.22.0",
3
+ "version": "2.24.0",
4
4
  "description": "Create platformatic application interactive tool",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,6 @@
15
15
  "license": "Apache-2.0",
16
16
  "author": "Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)",
17
17
  "dependencies": {
18
- "boring-name-generator": "^1.0.3",
19
18
  "chalk": "^5.3.0",
20
19
  "columnify": "^1.6.0",
21
20
  "commist": "^3.2.0",
@@ -34,9 +33,9 @@
34
33
  "strip-ansi": "^7.1.0",
35
34
  "undici": "^7.0.0",
36
35
  "which": "^3.0.1",
37
- "@platformatic/config": "2.22.0",
38
- "@platformatic/generators": "2.22.0",
39
- "@platformatic/utils": "2.22.0"
36
+ "@platformatic/config": "2.24.0",
37
+ "@platformatic/generators": "2.24.0",
38
+ "@platformatic/utils": "2.24.0"
40
39
  },
41
40
  "devDependencies": {
42
41
  "@types/node": "^22.5.0",
@@ -48,13 +47,13 @@
48
47
  "eslint": "9",
49
48
  "esmock": "^2.6.4",
50
49
  "fastify": "^5.0.0",
51
- "neostandard": "^0.11.1",
50
+ "neostandard": "^0.12.0",
52
51
  "typescript": "~5.7.0",
53
52
  "yaml": "^2.4.1",
54
- "@platformatic/composer": "2.22.0",
55
- "@platformatic/runtime": "2.22.0",
56
- "@platformatic/service": "2.22.0",
57
- "@platformatic/db": "2.22.0"
53
+ "@platformatic/composer": "2.24.0",
54
+ "@platformatic/db": "2.24.0",
55
+ "@platformatic/runtime": "2.24.0",
56
+ "@platformatic/service": "2.24.0"
58
57
  },
59
58
  "scripts": {
60
59
  "test:cli": "borp --pattern \"test/cli/*test.mjs\" --timeout=300000 --concurrency=1",
package/src/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { createDirectory, getPkgManager } from '@platformatic/utils'
2
- import generateName from 'boring-name-generator'
1
+ import { ConfigManager } from '@platformatic/config'
2
+ import { createDirectory, generateDashedName, getPkgManager } from '@platformatic/utils'
3
3
  import { execa } from 'execa'
4
4
  import inquirer from 'inquirer'
5
5
  import parseArgs from 'minimist'
6
- import { writeFile, readFile } from 'node:fs/promises'
6
+ import { readFile, writeFile } from 'node:fs/promises'
7
7
  import path, { basename, join } from 'node:path'
8
8
  import { setTimeout } from 'node:timers/promises'
9
9
  import { pathToFileURL } from 'node:url'
@@ -15,7 +15,6 @@ import { request } from 'undici'
15
15
  import { createGitRepository } from './create-git-repository.mjs'
16
16
  import { say } from './say.mjs'
17
17
  import { getUsername, getVersion } from './utils.mjs'
18
- import { ConfigManager } from '@platformatic/config'
19
18
 
20
19
  const MARKETPLACE_HOST = 'https://marketplace.platformatic.dev'
21
20
  const defaultStackables = ['@platformatic/composer', '@platformatic/db', '@platformatic/service']
@@ -167,7 +166,7 @@ async function createApplication (args, logger, pkgManager) {
167
166
  type: 'input',
168
167
  name: 'serviceName',
169
168
  message: 'What is the name of the service?',
170
- default: generateName().dashed,
169
+ default: generateDashedName(),
171
170
  validate: value => {
172
171
  if (value.length === 0) {
173
172
  return 'Please enter a name'