create-platformatic 1.13.1 → 1.13.3
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/create-platformatic.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { join } from 'desm'
|
|
|
7
7
|
|
|
8
8
|
const currentVersion = process.versions.node
|
|
9
9
|
const requiredMajorVersion = parseInt(currentVersion.split('.')[0], 10)
|
|
10
|
-
const minimumMajorVersion =
|
|
10
|
+
const minimumMajorVersion = 18
|
|
11
11
|
|
|
12
12
|
if (requiredMajorVersion < minimumMajorVersion) {
|
|
13
13
|
console.error(`Node.js v${currentVersion} is out of date and unsupported!`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-platformatic",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"description": "Create platformatic-db interactive tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"strip-ansi": "^7.1.0",
|
|
37
37
|
"undici": "^5.25.4",
|
|
38
38
|
"which": "^3.0.1",
|
|
39
|
-
"@platformatic/config": "1.13.
|
|
39
|
+
"@platformatic/config": "1.13.3",
|
|
40
|
+
"@platformatic/utils": "1.13.3"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"ajv": "^8.12.0",
|
|
@@ -48,8 +49,8 @@
|
|
|
48
49
|
"standard": "^17.1.0",
|
|
49
50
|
"typescript": "~5.3.0",
|
|
50
51
|
"yaml": "^2.3.2",
|
|
51
|
-
"@platformatic/
|
|
52
|
-
"@platformatic/
|
|
52
|
+
"@platformatic/service": "1.13.3",
|
|
53
|
+
"@platformatic/db": "1.13.3"
|
|
53
54
|
},
|
|
54
55
|
"scripts": {
|
|
55
56
|
"test:cli": "node --test ./test/cli",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersion, getDependencyVersion, safeMkdir } from '../utils.mjs'
|
|
2
2
|
import { createPackageJson } from '../create-package-json.mjs'
|
|
3
3
|
import { createGitignore } from '../create-gitignore.mjs'
|
|
4
|
-
import { getPkgManager } from '
|
|
4
|
+
import { getPkgManager } from '@platformatic/utils'
|
|
5
5
|
import parseArgs from 'minimist'
|
|
6
6
|
import inquirer from 'inquirer'
|
|
7
7
|
import pino from 'pino'
|
package/src/db/create-db-cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersion, getDependencyVersion, safeMkdir } from '../utils.mjs'
|
|
2
2
|
import { createPackageJson } from '../create-package-json.mjs'
|
|
3
3
|
import { createGitignore } from '../create-gitignore.mjs'
|
|
4
|
-
import { getPkgManager } from '
|
|
4
|
+
import { getPkgManager } from '@platformatic/utils'
|
|
5
5
|
import parseArgs from 'minimist'
|
|
6
6
|
import inquirer from 'inquirer'
|
|
7
7
|
import which from 'which'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersion, getDependencyVersion, convertServiceNameToPrefix, safeMkdir } from '../utils.mjs'
|
|
2
2
|
import { createPackageJson } from '../create-package-json.mjs'
|
|
3
3
|
import { createGitignore } from '../create-gitignore.mjs'
|
|
4
|
-
import { getPkgManager } from '
|
|
4
|
+
import { getPkgManager } from '@platformatic/utils'
|
|
5
5
|
import { join, relative, resolve } from 'path'
|
|
6
6
|
import inquirer from 'inquirer'
|
|
7
7
|
import pino from 'pino'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getVersion, getDependencyVersion, safeMkdir } from '../utils.mjs'
|
|
2
2
|
import { createPackageJson } from '../create-package-json.mjs'
|
|
3
3
|
import { createGitignore } from '../create-gitignore.mjs'
|
|
4
|
-
import { getPkgManager } from '
|
|
4
|
+
import { getPkgManager } from '@platformatic/utils'
|
|
5
5
|
import parseArgs from 'minimist'
|
|
6
6
|
import { join } from 'path'
|
|
7
7
|
import inquirer from 'inquirer'
|
package/src/get-pkg-manager.mjs
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export const getPkgManager = () => {
|
|
2
|
-
const userAgent = process.env.npm_config_user_agent
|
|
3
|
-
if (!userAgent) {
|
|
4
|
-
return 'npm'
|
|
5
|
-
}
|
|
6
|
-
const pmSpec = userAgent.split(' ')[0]
|
|
7
|
-
const separatorPos = pmSpec.lastIndexOf('/')
|
|
8
|
-
const name = pmSpec.substring(0, separatorPos)
|
|
9
|
-
return name || 'npm'
|
|
10
|
-
}
|