create-platformatic 2.22.0 → 2.23.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.
- package/package.json +9 -10
- package/src/index.mjs +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.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/
|
|
38
|
-
"@platformatic/
|
|
39
|
-
"@platformatic/
|
|
36
|
+
"@platformatic/generators": "2.23.0",
|
|
37
|
+
"@platformatic/utils": "2.23.0",
|
|
38
|
+
"@platformatic/config": "2.23.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.
|
|
50
|
+
"neostandard": "^0.12.0",
|
|
52
51
|
"typescript": "~5.7.0",
|
|
53
52
|
"yaml": "^2.4.1",
|
|
54
|
-
"@platformatic/composer": "2.
|
|
55
|
-
"@platformatic/
|
|
56
|
-
"@platformatic/
|
|
57
|
-
"@platformatic/
|
|
53
|
+
"@platformatic/composer": "2.23.0",
|
|
54
|
+
"@platformatic/db": "2.23.0",
|
|
55
|
+
"@platformatic/runtime": "2.23.0",
|
|
56
|
+
"@platformatic/service": "2.23.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 {
|
|
2
|
-
import
|
|
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 {
|
|
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:
|
|
169
|
+
default: generateDashedName(),
|
|
171
170
|
validate: value => {
|
|
172
171
|
if (value.length === 0) {
|
|
173
172
|
return 'Please enter a name'
|