@tryghost/mg-jekyll-export 0.3.43 → 0.4.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/README.md CHANGED
@@ -89,7 +89,7 @@ This will process all posts from the zip file, and all authors will have an emai
89
89
 
90
90
  ## Develop
91
91
 
92
- This is a mono repository, managed with [lerna](https://lerna.js.org).
92
+ This is a mono repository, managed with [Nx](https://nx.dev/) and yarn workspaces.
93
93
 
94
94
  Follow the instructions for the top-level repo.
95
95
  1. `git clone` this repo & `cd` into it as usual
package/lib/process.js CHANGED
@@ -16,7 +16,13 @@ export default (input, options = {}) => {
16
16
  };
17
17
 
18
18
  if (input.posts && input.posts.length > 0) {
19
- output.posts = input.posts.map(post => processPost(post.fileName, post.fileContents, globalUser, options));
19
+ output.posts = [];
20
+ for (let i = 0; i < input.posts.length; i++) {
21
+ const post = input.posts[i];
22
+ if (post) {
23
+ output.posts.push(processPost(post.fileName, post.fileContents, globalUser, options));
24
+ }
25
+ }
20
26
  }
21
27
 
22
28
  return output;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-jekyll-export",
3
- "version": "0.3.43",
3
+ "version": "0.4.0",
4
4
  "description": "tbc",
5
5
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-jekyll-export",
6
6
  "author": "Ghost Foundation",
@@ -10,8 +10,8 @@
10
10
  "scripts": {
11
11
  "dev": "echo \"Implement me!\"",
12
12
  "test": "node --test 'test/**/*.test.js'",
13
- "lint": "eslint . --ext .js --cache",
14
- "posttest": "yarn lint"
13
+ "posttest": "yarn lint",
14
+ "lint": "eslint . --ext .js --cache"
15
15
  },
16
16
  "files": [
17
17
  "index.js",
@@ -24,12 +24,11 @@
24
24
  "eslint": "8.57.1"
25
25
  },
26
26
  "dependencies": {
27
- "@tryghost/errors": "3.0.1",
28
- "@tryghost/mg-fs-utils": "0.16.6",
27
+ "@tryghost/errors": "3.0.3",
28
+ "@tryghost/mg-fs-utils": "0.17.0",
29
29
  "@tryghost/string": "0.3.1",
30
30
  "cheerio": "1.2.0",
31
31
  "front-matter": "4.0.2",
32
32
  "markdown-it": "14.1.1"
33
- },
34
- "gitHead": "e1680568191322d738c188f03298910aa3622735"
33
+ }
35
34
  }