platformatic 0.17.1 → 0.18.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/fixtures/sqlite/db
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platformatic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Platformatic CLI",
|
|
5
5
|
"main": "cli.js",
|
|
6
6
|
"type": "module",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"desm": "^1.3.0",
|
|
43
43
|
"help-me": "^4.2.0",
|
|
44
44
|
"minimist": "^1.2.8",
|
|
45
|
-
"@platformatic/db": "0.
|
|
46
|
-
"@platformatic/authenticate": "0.
|
|
47
|
-
"@platformatic/service": "0.
|
|
48
|
-
"@platformatic/metaconfig": "0.
|
|
45
|
+
"@platformatic/db": "0.18.0",
|
|
46
|
+
"@platformatic/authenticate": "0.18.0",
|
|
47
|
+
"@platformatic/service": "0.18.0",
|
|
48
|
+
"@platformatic/metaconfig": "0.18.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"test": "standard | snazzy && c8 --100 tap --no-coverage test/*.test.js",
|
package/test/upgrade.test.js
CHANGED
|
@@ -6,10 +6,10 @@ import { cliPath } from './helper.js'
|
|
|
6
6
|
import { fileURLToPath } from 'url'
|
|
7
7
|
import { dirname, join } from 'path'
|
|
8
8
|
|
|
9
|
-
const pkg = JSON.parse(await readFile(join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json'), 'utf8'))
|
|
10
|
-
|
|
11
9
|
let count = 0
|
|
12
10
|
|
|
11
|
+
/* eslint-disable prefer-regex-literals */
|
|
12
|
+
|
|
13
13
|
test('writes a config file', async (t) => {
|
|
14
14
|
const dest = join(tmpdir(), `test-cli-${process.pid}-${count++}`)
|
|
15
15
|
|
|
@@ -23,7 +23,7 @@ test('writes a config file', async (t) => {
|
|
|
23
23
|
|
|
24
24
|
const config = JSON.parse(await readFile(join(dest, 'platformatic.db.json'), 'utf8'))
|
|
25
25
|
|
|
26
|
-
t.
|
|
26
|
+
t.match(config.$schema, new RegExp('https://platformatic.dev/schemas/v\\d+.\\d+.\\d+/db'))
|
|
27
27
|
})
|
|
28
28
|
|
|
29
29
|
test('writes a config file with a config option', async (t) => {
|
|
@@ -37,7 +37,7 @@ test('writes a config file with a config option', async (t) => {
|
|
|
37
37
|
|
|
38
38
|
const config = JSON.parse(await readFile(join(dest, 'platformatic.db.json'), 'utf8'))
|
|
39
39
|
|
|
40
|
-
t.
|
|
40
|
+
t.match(config.$schema, new RegExp('https://platformatic.dev/schemas/v\\d+.\\d+.\\d+/db'))
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
test('no config file no party', async (t) => {
|