@strapi/cloud-cli 5.4.1 → 5.5.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/dist/bin.js +1 -2
- package/dist/bin.js.map +1 -1
- package/dist/index.js +8 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -9
- package/dist/index.mjs.map +1 -1
- package/dist/src/services/token.d.ts.map +1 -1
- package/dist/src/utils/helpers.d.ts.map +1 -1
- package/dist/src/utils/pkg.d.ts.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -80,8 +80,7 @@ const getFiles = async (dirPath, ignorePatterns = [], subfolder = "") => {
|
|
|
80
80
|
const readGitignore = async (folderPath) => {
|
|
81
81
|
const gitignorePath = path.resolve(folderPath, ".gitignore");
|
|
82
82
|
const pathExist = await fse.pathExists(gitignorePath);
|
|
83
|
-
if (!pathExist)
|
|
84
|
-
return [];
|
|
83
|
+
if (!pathExist) return [];
|
|
85
84
|
const gitignoreContent = await fse.readFile(gitignorePath, "utf8");
|
|
86
85
|
return gitignoreContent.split(/\r?\n/).filter((line) => Boolean(line.trim()) && !line.startsWith("#"));
|
|
87
86
|
};
|
|
@@ -136,7 +135,7 @@ async function saveLocalConfig(data) {
|
|
|
136
135
|
await fse__default.writeJson(configFilePath, data, { encoding: "utf8", spaces: 2, mode: 384 });
|
|
137
136
|
}
|
|
138
137
|
const name = "@strapi/cloud-cli";
|
|
139
|
-
const version = "5.4.
|
|
138
|
+
const version = "5.4.2";
|
|
140
139
|
const description = "Commands to interact with the Strapi Cloud";
|
|
141
140
|
const keywords = [
|
|
142
141
|
"strapi",
|
|
@@ -181,7 +180,7 @@ const scripts = {
|
|
|
181
180
|
watch: "pack-up watch"
|
|
182
181
|
};
|
|
183
182
|
const dependencies = {
|
|
184
|
-
"@strapi/utils": "5.4.
|
|
183
|
+
"@strapi/utils": "5.4.2",
|
|
185
184
|
axios: "1.7.4",
|
|
186
185
|
boxen: "5.1.2",
|
|
187
186
|
chalk: "4.1.2",
|
|
@@ -203,12 +202,12 @@ const dependencies = {
|
|
|
203
202
|
yup: "0.32.9"
|
|
204
203
|
};
|
|
205
204
|
const devDependencies = {
|
|
206
|
-
"@strapi/pack-up": "
|
|
205
|
+
"@strapi/pack-up": "5.0.2",
|
|
207
206
|
"@types/cli-progress": "3.11.5",
|
|
208
207
|
"@types/eventsource": "1.1.15",
|
|
209
208
|
"@types/lodash": "^4.14.191",
|
|
210
|
-
"eslint-config-custom": "5.4.
|
|
211
|
-
tsconfig: "5.4.
|
|
209
|
+
"eslint-config-custom": "5.4.2",
|
|
210
|
+
tsconfig: "5.4.2"
|
|
212
211
|
};
|
|
213
212
|
const engines = {
|
|
214
213
|
node: ">=18.0.0 <=22.x.x",
|
|
@@ -526,8 +525,7 @@ async function tokenServiceFactory({ logger }) {
|
|
|
526
525
|
logger.log(
|
|
527
526
|
token ? "Oops! Your token seems expired or invalid. Please login again." : "We couldn't find a valid token. You need to be logged in to use this feature."
|
|
528
527
|
);
|
|
529
|
-
if (!await loginAction2(ctx))
|
|
530
|
-
return null;
|
|
528
|
+
if (!await loginAction2(ctx)) return null;
|
|
531
529
|
token = await retrieveToken();
|
|
532
530
|
}
|
|
533
531
|
return token;
|