storyblok 3.10.2 → 3.10.3

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/.travis.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  language: node_js
2
2
  node_js:
3
- - 10
4
- - 12
3
+ - 14
5
4
  after_success:
6
- - npx semantic-release
5
+ - npx semantic-release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyblok",
3
- "version": "3.10.2",
3
+ "version": "3.10.3",
4
4
  "description": "A simple CLI to start Storyblok from your command line.",
5
5
  "keywords": [
6
6
  "storyblok",
package/src/tasks/sync.js CHANGED
@@ -272,7 +272,11 @@ const SyncSpaces = {
272
272
  const sync = (types, options) => {
273
273
  SyncSpaces.init(options)
274
274
 
275
- const tasks = types.map(_type => {
275
+ const tasks = types.sort((a, b) => {
276
+ if (a === 'folders') return -1
277
+ if (b === 'folders') return 1
278
+ return 0
279
+ }).map(_type => {
276
280
  const command = `sync${capitalize(_type)}`
277
281
 
278
282
  return () => SyncSpaces[command]()