@logto/cli 1.20.0 → 1.21.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.
|
@@ -27,8 +27,18 @@ export const getAlterationFiles = async () => {
|
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
29
|
// We need to copy alteration files to execute in the CLI context to make `slonik` available
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
// Notice that we don't remove the folder,
|
|
31
|
+
// this ensures that the writabiliy remains (and also allows this to be a separately-mounted directory.
|
|
32
|
+
if (!existsSync(localAlterationDirectory)) {
|
|
33
|
+
await fs.mkdir(localAlterationDirectory, { recursive: true });
|
|
34
|
+
}
|
|
35
|
+
const oldFiles = await fs.readdir(localAlterationDirectory);
|
|
36
|
+
await Promise.all(oldFiles.map(async (file) => fs.rm(path.join(localAlterationDirectory, file), { force: true, recursive: true })));
|
|
37
|
+
const newFiles = await fs.readdir(alterationDirectory);
|
|
38
|
+
await Promise.all(newFiles.map(async (file) => fs.cp(path.join(alterationDirectory, file), path.join(localAlterationDirectory, file), {
|
|
39
|
+
recursive: true,
|
|
40
|
+
preserveTimestamps: true,
|
|
41
|
+
})));
|
|
32
42
|
const directory = await fs.readdir(localAlterationDirectory);
|
|
33
43
|
const files = directory.filter((file) => alterationFilenameRegex.test(file));
|
|
34
44
|
return files
|
package/lib/package-json.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const packageJson = {
|
|
2
2
|
"name": "@logto/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Logto CLI.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -44,8 +44,8 @@ export const packageJson = {
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@logto/connector-kit": "workspace:^4.0.0",
|
|
46
46
|
"@logto/core-kit": "workspace:^2.5.0",
|
|
47
|
-
"@logto/schemas": "workspace:1.
|
|
48
|
-
"@logto/shared": "workspace:^3.1.
|
|
47
|
+
"@logto/schemas": "workspace:1.21.0",
|
|
48
|
+
"@logto/shared": "workspace:^3.1.2",
|
|
49
49
|
"@silverhand/essentials": "^2.9.1",
|
|
50
50
|
"@silverhand/slonik": "31.0.0-beta.2",
|
|
51
51
|
"chalk": "^5.3.0",
|
|
@@ -78,7 +78,7 @@ export const packageJson = {
|
|
|
78
78
|
"eslint": "^8.56.0",
|
|
79
79
|
"lint-staged": "^15.0.0",
|
|
80
80
|
"prettier": "^3.0.0",
|
|
81
|
-
"sinon": "^
|
|
81
|
+
"sinon": "^19.0.0",
|
|
82
82
|
"typescript": "^5.5.3",
|
|
83
83
|
"vitest": "^2.0.0"
|
|
84
84
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"description": "Logto CLI.",
|
|
5
5
|
"author": "Silverhand Inc. <contact@silverhand.io>",
|
|
6
6
|
"homepage": "https://github.com/logto-io/logto#readme",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@logto/connector-kit": "^4.0.0",
|
|
32
32
|
"@logto/core-kit": "^2.5.0",
|
|
33
|
-
"@logto/schemas": "1.
|
|
34
|
-
"@logto/shared": "^3.1.
|
|
33
|
+
"@logto/schemas": "1.21.0",
|
|
34
|
+
"@logto/shared": "^3.1.2",
|
|
35
35
|
"@silverhand/essentials": "^2.9.1",
|
|
36
36
|
"@silverhand/slonik": "31.0.0-beta.2",
|
|
37
37
|
"chalk": "^5.3.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"eslint": "^8.56.0",
|
|
65
65
|
"lint-staged": "^15.0.0",
|
|
66
66
|
"prettier": "^3.0.0",
|
|
67
|
-
"sinon": "^
|
|
67
|
+
"sinon": "^19.0.0",
|
|
68
68
|
"typescript": "^5.5.3",
|
|
69
69
|
"vitest": "^2.0.0"
|
|
70
70
|
},
|