@strapi/cloud-cli 5.4.2 → 5.5.1

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/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.1";
138
+ const version = "5.5.0";
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.1",
183
+ "@strapi/utils": "workspace:*",
185
184
  axios: "1.7.4",
186
185
  boxen: "5.1.2",
187
186
  chalk: "4.1.2",
@@ -203,18 +202,17 @@ const dependencies = {
203
202
  yup: "0.32.9"
204
203
  };
205
204
  const devDependencies = {
206
- "@strapi/pack-up": "4.23.0",
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.1",
211
- tsconfig: "5.4.1"
209
+ "eslint-config-custom": "workspace:*",
210
+ tsconfig: "workspace:*"
212
211
  };
213
212
  const engines = {
214
213
  node: ">=18.0.0 <=22.x.x",
215
214
  npm: ">=6.0.0"
216
215
  };
217
- const gitHead = "7d785703f52464577d077c4618cbe68b44f8a9cd";
218
216
  const packageJson = {
219
217
  name,
220
218
  version,
@@ -235,8 +233,7 @@ const packageJson = {
235
233
  scripts,
236
234
  dependencies,
237
235
  devDependencies,
238
- engines,
239
- gitHead
236
+ engines
240
237
  };
241
238
  const VERSION = "v1";
242
239
  async function cloudApiFactory({ logger }, token) {
@@ -526,8 +523,7 @@ async function tokenServiceFactory({ logger }) {
526
523
  logger.log(
527
524
  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
525
  );
529
- if (!await loginAction2(ctx))
530
- return null;
526
+ if (!await loginAction2(ctx)) return null;
531
527
  token = await retrieveToken();
532
528
  }
533
529
  return token;