@stoker-platform/cli 0.5.112 → 0.5.114
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/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.113",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"main": "./lib/src/main.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@google-cloud/secret-manager": "^6.1.2",
|
|
25
25
|
"@google-cloud/storage": "^7.19.0",
|
|
26
26
|
"@inquirer/prompts": "^8.5.2",
|
|
27
|
-
"@stoker-platform/node-client": "0.5.
|
|
28
|
-
"@stoker-platform/types": "0.5.
|
|
29
|
-
"@stoker-platform/utils": "0.5.
|
|
27
|
+
"@stoker-platform/node-client": "0.5.71",
|
|
28
|
+
"@stoker-platform/types": "0.5.50",
|
|
29
|
+
"@stoker-platform/utils": "0.5.62",
|
|
30
30
|
"algoliasearch": "^5.53.0",
|
|
31
31
|
"commander": "^15.0.0",
|
|
32
32
|
"cross-spawn": "^7.0.6",
|
|
@@ -12,6 +12,10 @@ export const deployProject = async (options) => {
|
|
|
12
12
|
if (options.retry) {
|
|
13
13
|
await runChildProcess("npx", ["stoker", "deployment", "--status", "idle"]);
|
|
14
14
|
}
|
|
15
|
+
await runChildProcess("npx", ["stoker", "generate-types"]);
|
|
16
|
+
await runChildProcess("npm", ["run", "format"]);
|
|
17
|
+
await runChildProcess("npm", ["run", "lint"]);
|
|
18
|
+
await runChildProcess("npm", ["run", "build"]);
|
|
15
19
|
if (!options.initial) {
|
|
16
20
|
const currentSchema = await generateSchema();
|
|
17
21
|
const lastSchema = await fetchCurrentSchema();
|
|
@@ -31,10 +35,6 @@ export const deployProject = async (options) => {
|
|
|
31
35
|
throw new Error("The schema for this project has changed. Maintenance mode cannot be disabled.");
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
|
-
await runChildProcess("npx", ["stoker", "generate-types"]);
|
|
35
|
-
await runChildProcess("npm", ["run", "format"]);
|
|
36
|
-
await runChildProcess("npm", ["run", "lint"]);
|
|
37
|
-
await runChildProcess("npm", ["run", "build"]);
|
|
38
38
|
await runChildProcess("npm", ["run", "test"]);
|
|
39
39
|
await runChildProcess("npx", ["stoker", "build-web-app"]);
|
|
40
40
|
await runChildProcess("npx", ["stoker", "lint-schema"]);
|
|
@@ -384,7 +384,8 @@ export const lintSchema = async (noLog = false) => {
|
|
|
384
384
|
}
|
|
385
385
|
else {
|
|
386
386
|
const fieldSchema = getField(fields, field);
|
|
387
|
-
if (fieldSchema.access
|
|
387
|
+
if (fieldSchema.access &&
|
|
388
|
+
!readRoles.every((role) => preloadCache?.roles.includes(role) || serverReadOnly?.includes(role))) {
|
|
388
389
|
errors.push(`Collection ${collectionName} has a full text search field ${field} with access restrictions`);
|
|
389
390
|
}
|
|
390
391
|
}
|